Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Can't get Annotated HelloWorld to generate Servlet
Can't get Annotated HelloWorld to generate Servlet [message #119012] Sun, 10 July 2005 14:25 Go to next message
Eclipse UserFriend
I'm new to this environment so bear with me.

I installed a clean build of:
eclipse-SDK-3.1-win32
emf-sdo-xsd-SDK-I20050623
GEF-SDK-3.1RC4
JEM-SDK-I20050623
wtp-1.05M5


on XP SP2. XDoclet-1.2.3 is in its own directory.

I attempted the WTP Tutorials - Testing the creation of Annotated and
Non-Annotated Servlets in the Web Tools Project. I configured the server
(Tomcat 5.5) and the J2EE annotations.

When I follow the tutorial, the non-annotated HelloWorld servlet builds and
deploys just fine. When I create the annotated servlet, the java source
appears, but I am never able to get servlet mappings to show up and even
with a clean build, there is never any xml generated for the
/XDocletHelloWorld.

If I try just creating the annotated servlet and attempt to run on server, I
get the message box "Did not find anything to deploy". I have tried this
with XDoclet-1.2.2 as well. No matter what I've tried, I never seem to get
servlet mappings

There must be something obvious that I am missing - what is it ?

North
Re: Can't get Annotated HelloWorld to generate Servlet [message #119053 is a reply to message #119012] Sun, 10 July 2005 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Dug a little deeper and ran into this in the .Metadata/.log
"!MESSAGE Launch configuration tempAnt.xml [webdoclet] at E:\Documents and
Settings\Administrator.HOMEOFFICE.000\My
Documents\Workspace\.metadata\.plugins\org.eclipse.debug.cor e\.launches\Documents
and Settings\Administrator.HOMEOFFICE.000\My
Documents\Workspace\.metadata\.plugins\org.eclipse.jst.j2ee. ejb.annotations.xdoclet\tempAnt.xml
[webdoclet].launch does not exist."
"North" <nhinkle@optonline.net> wrote in message
news:darp7f$qvb$1@news.eclipse.org...
> I'm new to this environment so bear with me.
>
> I installed a clean build of:
> eclipse-SDK-3.1-win32
> emf-sdo-xsd-SDK-I20050623
> GEF-SDK-3.1RC4
> JEM-SDK-I20050623
> wtp-1.05M5
>
>
> on XP SP2. XDoclet-1.2.3 is in its own directory.
>
> I attempted the WTP Tutorials - Testing the creation of Annotated and
> Non-Annotated Servlets in the Web Tools Project. I configured the server
> (Tomcat 5.5) and the J2EE annotations.
>
> When I follow the tutorial, the non-annotated HelloWorld servlet builds
> and deploys just fine. When I create the annotated servlet, the java
> source appears, but I am never able to get servlet mappings to show up and
> even with a clean build, there is never any xml generated for the
> /XDocletHelloWorld.
>
> If I try just creating the annotated servlet and attempt to run on server,
> I get the message box "Did not find anything to deploy". I have tried
> this with XDoclet-1.2.2 as well. No matter what I've tried, I never seem
> to get servlet mappings
>
> There must be something obvious that I am missing - what is it ?
>
> North
>
Re: Can't get Annotated HelloWorld to generate Servlet [message #119066 is a reply to message #119053] Sun, 10 July 2005 19:26 Go to previous messageGo to next message
Eclipse UserFriend
OK. I've got it working (almost).

I changed my workspace to one right off the root of the drive (i.e.
E:\\Workspace) and now
the ant build works. It replaces the application name with
XDocletHelloWorld with <web-app>
in the GUI, but I can deploy and run on the server and the autobuild
correctly adds the
Servlet and Servlet mappings.

Thanks for your patience, maybe this will help another neophyte.

North

"North" <nhinkle@optonline.net> wrote in message
news:das9s4$a9j$1@news.eclipse.org...
> Dug a little deeper and ran into this in the .Metadata/.log
> "!MESSAGE Launch configuration tempAnt.xml [webdoclet] at E:\Documents and
> Settings\Administrator.HOMEOFFICE.000\My
> Documents\Workspace\.metadata\.plugins\org.eclipse.debug.cor e\.launches\Documents
> and Settings\Administrator.HOMEOFFICE.000\My
> Documents\Workspace\.metadata\.plugins\org.eclipse.jst.j2ee. ejb.annotations.xdoclet\tempAnt.xml
> [webdoclet].launch does not exist."
> "North" <nhinkle@optonline.net> wrote in message
> news:darp7f$qvb$1@news.eclipse.org...
>> I'm new to this environment so bear with me.
>>
>> I installed a clean build of:
>> eclipse-SDK-3.1-win32
>> emf-sdo-xsd-SDK-I20050623
>> GEF-SDK-3.1RC4
>> JEM-SDK-I20050623
>> wtp-1.05M5
>>
>>
>> on XP SP2. XDoclet-1.2.3 is in its own directory.
>>
>> I attempted the WTP Tutorials - Testing the creation of Annotated and
>> Non-Annotated Servlets in the Web Tools Project. I configured the server
>> (Tomcat 5.5) and the J2EE annotations.
>>
>> When I follow the tutorial, the non-annotated HelloWorld servlet builds
>> and deploys just fine. When I create the annotated servlet, the java
>> source appears, but I am never able to get servlet mappings to show up
>> and even with a clean build, there is never any xml generated for the
>> /XDocletHelloWorld.
>>
>> If I try just creating the annotated servlet and attempt to run on
>> server, I get the message box "Did not find anything to deploy". I have
>> tried this with XDoclet-1.2.2 as well. No matter what I've tried, I
>> never seem to get servlet mappings
>>
>> There must be something obvious that I am missing - what is it ?
>>
>> North
>>
>
>
Re: Can't get Annotated HelloWorld to generate Servlet [message #119106 is a reply to message #119066] Sun, 10 July 2005 20:15 Go to previous message
Eclipse UserFriend
Finally have it working, but in a way that makes the "annotated" version
more of bother to use
then the non-annotated. When mixing the annotated and non-annotated, I had
to cut and paste
the non-annotated XML out of the web.xml and paste its servlets information
into servlets.xml
and its servlet-mappings into servlet-mappings.xml. Not exactly what I call
user or time friendly.

n.

"North" <nhinkle@optonline.net> wrote in message
news:dasarl$b89$1@news.eclipse.org...
> OK. I've got it working (almost).
>
> I changed my workspace to one right off the root of the drive (i.e.
> E:\\Workspace) and now
> the ant build works. It replaces the application name with
> XDocletHelloWorld with <web-app>
> in the GUI, but I can deploy and run on the server and the autobuild
> correctly adds the
> Servlet and Servlet mappings.
>
> Thanks for your patience, maybe this will help another neophyte.
>
> North
>
> "North" <nhinkle@optonline.net> wrote in message
> news:das9s4$a9j$1@news.eclipse.org...
>> Dug a little deeper and ran into this in the .Metadata/.log
>> "!MESSAGE Launch configuration tempAnt.xml [webdoclet] at E:\Documents
>> and Settings\Administrator.HOMEOFFICE.000\My
>> Documents\Workspace\.metadata\.plugins\org.eclipse.debug.cor e\.launches\Documents
>> and Settings\Administrator.HOMEOFFICE.000\My
>> Documents\Workspace\.metadata\.plugins\org.eclipse.jst.j2ee. ejb.annotations.xdoclet\tempAnt.xml
>> [webdoclet].launch does not exist."
>> "North" <nhinkle@optonline.net> wrote in message
>> news:darp7f$qvb$1@news.eclipse.org...
>>> I'm new to this environment so bear with me.
>>>
>>> I installed a clean build of:
>>> eclipse-SDK-3.1-win32
>>> emf-sdo-xsd-SDK-I20050623
>>> GEF-SDK-3.1RC4
>>> JEM-SDK-I20050623
>>> wtp-1.05M5
>>>
>>>
>>> on XP SP2. XDoclet-1.2.3 is in its own directory.
>>>
>>> I attempted the WTP Tutorials - Testing the creation of Annotated and
>>> Non-Annotated Servlets in the Web Tools Project. I configured the
>>> server (Tomcat 5.5) and the J2EE annotations.
>>>
>>> When I follow the tutorial, the non-annotated HelloWorld servlet builds
>>> and deploys just fine. When I create the annotated servlet, the java
>>> source appears, but I am never able to get servlet mappings to show up
>>> and even with a clean build, there is never any xml generated for the
>>> /XDocletHelloWorld.
>>>
>>> If I try just creating the annotated servlet and attempt to run on
>>> server, I get the message box "Did not find anything to deploy". I have
>>> tried this with XDoclet-1.2.2 as well. No matter what I've tried, I
>>> never seem to get servlet mappings
>>>
>>> There must be something obvious that I am missing - what is it ?
>>>
>>> North
>>>
>>
>>
>
>
Previous Topic:Source folder path must be absolute ?
Next Topic:can't edit jsp with wtp-i20050708 ?
Goto Forum:
  


Current Time: Wed Apr 30 03:21:10 EDT 2025

Powered by FUDForum. Page generated in 0.31196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top