Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » error in using wtp (xdoclet related)
error in using wtp (xdoclet related) [message #77581] Sun, 27 February 2005 08:56 Go to next message
Emerson Cargnin is currently offline Emerson CargninFriend
Messages: 125
Registered: July 2009
Senior Member
I installed wtp with m5 as instructed, with all dependences (web services
and xdoclet), and at first , when I tried to use annotation, it didn't work,
giving me an error, don't remember now :) (can post it again other time,
it's 5:49 morning), and after following servlet tutorial (without
anottation) it worked fine, except for debuging, a very strange thing.
I can watch the response variable, but when i try to watch request variable
(HttpServletRequest arg0), it gives me arg0 cannot be resolved. With arg1 it
works fine.

By the way, some suggestions:
- when creating a new servlet the parameters could be req ans res.
- when clicking on the servlet logic icon (or chossing open from the menu),
it could open the servlet not the xml file.
- I was able to use the tutorial just after installing all webservices zips,
what are indicated as optional, so it could be indicated at download page.
The same goes to xdoclet install.

keep going with this excellent work
Emerson Cargnin
floripa/brazil
Re: error in using wtp (xdoclet related) [message #78359 is a reply to message #77581] Mon, 28 February 2005 23:01 Go to previous messageGo to next message
Patrick Coray is currently offline Patrick CorayFriend
Messages: 4
Registered: July 2009
Junior Member
Had the same problem with the following error:
D:\Daten\workspace_315\.metadata\.plugins\org.eclipse.jst.co mmon.launcher.ant\tempAnt.xml:56:
taskdef class xdoclet.modules.web.WebDocletTask cannot be found

Seems that the temporary tempAnt.xml is not correct.
WebDocletTask uses the project.class.path, where xdoclet seems to be
included
in a fileset:
<fileset dir="${xdoclet.home}">
<include name="*/**/*.jar"/>
</fileset>
As this file is generated each time, you can only fake it if you copy again
all jars in a subdirectory of your xdoclet.home....
This hack worked for me :-)

Regards,
Patrick

"Emerson Cargnin" <echofloripa@bol.com.br> schrieb im Newsbeitrag
news:cvs23g$v66$1@www.eclipse.org...
>I installed wtp with m5 as instructed, with all dependences (web services
> and xdoclet), and at first , when I tried to use annotation, it didn't
> work,
> giving me an error, don't remember now :) (can post it again other time,
> it's 5:49 morning), and after following servlet tutorial (without
> anottation) it worked fine, except for debuging, a very strange thing.
> I can watch the response variable, but when i try to watch request
> variable
> (HttpServletRequest arg0), it gives me arg0 cannot be resolved. With arg1
> it
> works fine.
>
> By the way, some suggestions:
> - when creating a new servlet the parameters could be req ans res.
> - when clicking on the servlet logic icon (or chossing open from the
> menu),
> it could open the servlet not the xml file.
> - I was able to use the tutorial just after installing all webservices
> zips,
> what are indicated as optional, so it could be indicated at download page.
> The same goes to xdoclet install.
>
> keep going with this excellent work
> Emerson Cargnin
> floripa/brazil
>
>
Re: error in using wtp (xdoclet related) [message #78389 is a reply to message #78359] Tue, 01 March 2005 00:04 Go to previous messageGo to next message
Patrick Coray is currently offline Patrick CorayFriend
Messages: 4
Registered: July 2009
Junior Member
By the way. To modify the ant-script you will find it under
<eclipseM5a> \plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet_1.0.0\ templates\builder

So you can directly modify that it matches the right path...

"Patrick Coray" <p_coray@bluewin.ch> schrieb im Newsbeitrag
news:d007t6$b0n$1@www.eclipse.org...
> Had the same problem with the following error:
> D:\Daten\workspace_315\.metadata\.plugins\org.eclipse.jst.co mmon.launcher.ant\tempAnt.xml:56:
> taskdef class xdoclet.modules.web.WebDocletTask cannot be found
>
> Seems that the temporary tempAnt.xml is not correct.
> WebDocletTask uses the project.class.path, where xdoclet seems to be
> included
> in a fileset:
> <fileset dir="${xdoclet.home}">
> <include name="*/**/*.jar"/>
> </fileset>
> As this file is generated each time, you can only fake it if you copy
> again all jars in a subdirectory of your xdoclet.home....
> This hack worked for me :-)
>
> Regards,
> Patrick
>
> "Emerson Cargnin" <echofloripa@bol.com.br> schrieb im Newsbeitrag
> news:cvs23g$v66$1@www.eclipse.org...
>>I installed wtp with m5 as instructed, with all dependences (web services
>> and xdoclet), and at first , when I tried to use annotation, it didn't
>> work,
>> giving me an error, don't remember now :) (can post it again other time,
>> it's 5:49 morning), and after following servlet tutorial (without
>> anottation) it worked fine, except for debuging, a very strange thing.
>> I can watch the response variable, but when i try to watch request
>> variable
>> (HttpServletRequest arg0), it gives me arg0 cannot be resolved. With arg1
>> it
>> works fine.
>>
>> By the way, some suggestions:
>> - when creating a new servlet the parameters could be req ans res.
>> - when clicking on the servlet logic icon (or chossing open from the
>> menu),
>> it could open the servlet not the xml file.
>> - I was able to use the tutorial just after installing all webservices
>> zips,
>> what are indicated as optional, so it could be indicated at download
>> page.
>> The same goes to xdoclet install.
>>
>> keep going with this excellent work
>> Emerson Cargnin
>> floripa/brazil
>>
>>
>
>
Re: error in using wtp (xdoclet related) [message #87842 is a reply to message #78359] Mon, 28 March 2005 22:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.ronald.vankuijk.net

Patrick Coray wrote:
> Had the same problem with the following error:
> D:\Daten\workspace_315\.metadata\.plugins\org.eclipse.jst.co mmon.launcher.ant\tempAnt.xml:56:
> taskdef class xdoclet.modules.web.WebDocletTask cannot be found
>

I get this same error, but I cannot see when xdoclet runs. But if it runs, it generates the right file, regardles of
this error (assuming the error occurs when xdoclet runs, it only ran once)

I cannot get the right changes from your next post, so could you give the fragment of the
<eclipseM5a> \plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet_1.0.0\ templates\builder that needs changing

TIA,

Ronald
Re: error in using wtp (xdoclet related) [message #89609 is a reply to message #87842] Sat, 02 April 2005 00:07 Go to previous messageGo to next message
Patrick Coray is currently offline Patrick CorayFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Ronald

The simplest solution is still that you define a subdirectory in your
xdoclet installation.
e.g
xdoclet/lib and move the jars into there...

If you want to change the build files you can do it the following way:
Change the files under
<eclipseM5> \plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet_1.0.0\ templates\builder
xdoclet.xml (has the same problem when used annotations with ejb, as uses
same reference)
xdocletweb.xml

fragment:
<fileset dir="${xdoclet.home}">
<include name="*/**/*.jar"/>
</fileset>
to
<fileset dir="${xdoclet.home}">
<include name="*.jar"/>
</fileset>

XDoclet runs when you build your annotated java file.
To check if the XDocletBuilder runs you can change something in the
annotations and check if it is written to the web.xml

As I can see, the following happens when the builder starts:
It creates a build.properties and a tempAnt.xml in the folder
<yourWorkspace>\.metadata\.plugins\org.eclipse.jst.common.launcher.ant and
then runs the ant file.

As said I prefer the first way with creating a subdirectory.

Regards,
Patrick


"Ronald van Kuijk" <news@ronald.vankuijk.net> schrieb im Newsbeitrag
news:4248896B.1090801@ronald.vankuijk.net...
> Patrick Coray wrote:
>> Had the same problem with the following error:
>> D:\Daten\workspace_315\.metadata\.plugins\org.eclipse.jst.co mmon.launcher.ant\tempAnt.xml:56:
>> taskdef class xdoclet.modules.web.WebDocletTask cannot be found
>>
>
> I get this same error, but I cannot see when xdoclet runs. But if it runs,
> it generates the right file, regardles of this error (assuming the error
> occurs when xdoclet runs, it only ran once)
>
> I cannot get the right changes from your next post, so could you give the
> fragment of the
> <eclipseM5a> \plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet_1.0.0\ templates\builder
> that needs changing
>
> TIA,
>
> Ronald
Re: error in using wtp (xdoclet related) [message #89702 is a reply to message #89609] Sat, 02 April 2005 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.ronald.vankuijk.net

Hi Patrick

Patrick wrote:
> Hi Ronald
>
> The simplest solution is still that you define a subdirectory in your
> xdoclet installation.
> e.g
> xdoclet/lib and move the jars into there...
>

There is already such a lib dir in my xdoclet installdir (and I did not create it, so should be fine), or do you mean
the xdoclet plugin dir?

>
> XDoclet runs when you build your annotated java file.
> To check if the XDocletBuilder runs you can change something in the
> annotations and check if it is written to the web.xml
>

Only when I do a build clean manually, I see that the xdoclet builder runs. But the web.xml does not get (re)created.
Strange....Since under some undefined circumstances it *does* get created. I'll look further.

Thanks

Ronald
Re: error in using wtp (xdoclet related) [message #89732 is a reply to message #89609] Sat, 02 April 2005 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.ronald.vankuijk.net

Patrick wrote:
> Hi Ronald
>
> The simplest solution is still that you define a subdirectory in your
> xdoclet installation.
> e.g
> xdoclet/lib and move the jars into there...
>

Hmmm it seems my xdoclet.home in build.properties was empty and looking into the config in eclipse, it was empty...
weird, I'm 1000% sure I set it before.

So now xdoclet runs, but it gives me another error.

!MESSAGE /home/rku/eclipse3/workspace/.metadata/.plugins/org.eclipse. jst.common.launcher.ant/tempAnt.xml:67:
${servlet.spec.version} is not a legal value for this attribute

When creating a new web project, I do not get this error and xdoclet works out of the box. But I created this project
the same way. Where can I 'reconfigure' the servlet version?

TIA

Ronald
Re: error in using wtp (xdoclet related) [message #89835 is a reply to message #89732] Sun, 03 April 2005 20:00 Go to previous message
Patrick Coray is currently offline Patrick CorayFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Roland

> !MESSAGE
> /home/rku/eclipse3/workspace/.metadata/.plugins/org.eclipse. jst.common.launcher.ant/tempAnt.xml:67:
> ${servlet.spec.version} is not a legal value for this attribute
Check your build.properties in the same directory. There should be a line
with
servlet.spec.version=2.4
or depending what version you use.

> When creating a new web project, I do not get this error and xdoclet works
> out of the box. But I created this project the same way. Where can I
> 'reconfigure' the servlet version?
There does not exists a proper way... or at least I don't know of it.
(You maybe can hack this, when you change the header of web.xml (Doctype for
2.3 or in web-app for 2.4) and change the <moduleversion> in file .j2ee)
I would recommend to create a new project with the new servlet version and
copy/move your files...

from your previous post:
>There is already such a lib dir in my xdoclet installdir (and I did not
>create it, so should be fine), or do you mean the xdoclet plugin dir?
Have only downloaded "xdoclet-lib". So there was no lib directory... so my
problem came from that point.
You must not define in your plugin dir this directory so it should be fine.

>Only when I do a build clean manually, I see that the xdoclet builder runs.
>But the web.xml does not get (re)created. Strange....Since under some
>undefined circumstances it *does* get created. I'll look further.
I have defined that my sources do not get "Build automatically". So they
only get build when I changed the
files and say build. In this scenario I haven't found any problems.

Greets
Patrick

"Ronald van Kuijk" <news@ronald.vankuijk.net> schrieb im Newsbeitrag
news:424EC907.9030408@ronald.vankuijk.net...
> Patrick wrote:
>> Hi Ronald
>>
>> The simplest solution is still that you define a subdirectory in your
>> xdoclet installation.
>> e.g
>> xdoclet/lib and move the jars into there...
>>
>
> Hmmm it seems my xdoclet.home in build.properties was empty and looking
> into the config in eclipse, it was empty... weird, I'm 1000% sure I set it
> before.
>
> So now xdoclet runs, but it gives me another error.
>
> !MESSAGE
> /home/rku/eclipse3/workspace/.metadata/.plugins/org.eclipse. jst.common.launcher.ant/tempAnt.xml:67:
> ${servlet.spec.version} is not a legal value for this attribute
>
> When creating a new web project, I do not get this error and xdoclet works
> out of the box. But I created this project the same way. Where can I
> 'reconfigure' the servlet version?
>
> TIA
>
> Ronald
Previous Topic:M3 and M6
Next Topic:Adding server support
Goto Forum:
  


Current Time: Wed Jul 03 13:22:38 GMT 2024

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

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

Back to the top