Project Clean Errors - Web Service [message #112138] |
Thu, 16 June 2005 16:49  |
Eclipse User |
|
|
|
I have been researching an error that I receive after running the Clean
build for all projects on my Web Service. The Web Services ran fine until
I did the clean build and then I started getting a message "Axis engine
could not find a target service". My resarch has led me in circles and
I'm somewhat more confused now than ever before. I have the following
questions:
1) Do you have to do a Clean build in order to build a Web Services and if
so why would this break a working Web Services that was beeing accessed
through Eclipse before?
2) I have tried Axis 1_1 and 1_2_1 to see if I could resolve this problem.
I have looked at a number of tutorials. I can't seem to figure out the
relationship between Axis, Tomcat, and Eclipse in order to run the service
after I have performed the clean build. It would appear to me that after
the build another step is being added to the process. I can't figure out
what this step is though. Some of the tutorials make it look like I need
to copy files to the Axis directory within the Apache Tomcat server.
Which files I'm not sure and where those files come from I'm not sure.
3) What does the build.xml file have to do with this process? I created a
couple using the Ant wizard and then modified them looking at the
tutorials and now matter what I did nothing seemed to work.
4) What is the deploy.wsdd used for? How do I make it work?
5) One other confusing thing. When generate my Web Services from my WSDL
document, I watch the status down below. It parses the file, then
registers to Tomcat,..., but one of the last steps it registers something
to Axis. I know that before I run the Clean that my Web Service works.
Is the clean messing up what ever was registered to Axis during the
initial Web Service deploy? If so, how do I fix it?
I really need help on this badly. I am working on a project that I
thought was going along fine until this problem. I have now spent more
than 2 days trying to resolve it and understand all these other aspects
only to get more confused. I would appreciate any help that I can get.
Thanks,
Ben
|
|
|
Re: Project Clean Errors - Web Service (possible solution) [message #112813 is a reply to message #112138] |
Mon, 20 June 2005 10:44   |
Eclipse User |
|
|
|
I have some additional and intersting information regarding this error. A
quick refresh, I created a top down Web Service from a WSDL document, test
it and it works perfectly. I then run a Clean (project->clean) on the
project, with no error message, and it then won't run. I get an error
message that the method couldn't be found on Axis. The only way
(possible work around) that I can recover is to recreate the Web Service
from the WSDL document which overlays my changes that I have made when it
recreates the schedule.
I will get to the possible cause of the problem and solutino in a minute
but I want to cover some of my research for verificaiton.
Within the project where my Web Service had existed before, I recreated
the Web Service from the WSDL file and recorded the files that were
updated (by change date).
Under the .deployables directory and sub directories the following files
were updated:
a) server-config.wsdd
b) deploy.wsdd
c) undeploy.wsdd
d) *.class (all the class files were updated)
e) *.jar (all my jar files that are really reference files were updated)
f) *.wsdl (the new Soap wsdl was updated)
Under the Mod directory and sub directories (files typically displayed in
Eclipse) the following files were updated:
a) *.java (all java files)
b) deploy.wsdd
c) undeploy.wsdd
d) *.jar (all my jar files that are really reference files were updated)
e) *.wsdl (the new Soap wsdl was updated)
I then run a Clean (project->clean) on my proejct and check to see which
files were updated and I noticed the following:
Under .deployables directory and subdirectory:
a) The server-config.wsdd file no longer exists - did not expect)
b) *.class (all the class files were updated - would expect)
Since I had tried to redeploy the project and many other different things
to resolve the issue, I assumed that my problem must exist in one of the
two areas that changed after the Clean. Since I expect the *.class files
to be updated I focused on the server-config.wsdd file which no longer
appeard.
I recreated the Web Service again from the WSDL, verified that it was
functioning again, and then made a copy of the server-config.wsdd file. I
then performed the Clean, and verified that the Web Service was broken
again. I then pasted a copy of the original server-config.wsdd file back
into the directory and ran the Web Service again. When I did this the Web
Service corrected itself and worked fine. Therefore, I am concluding
that the problem is the fact that the Clean deletes and never recreates
the server-config.wsdd file. For a temporary solution until it is
corrected I recommend that the server-config.wsdd file be copied and
backed up somewhere. If a clean is performed this file can be pased into
the appropriate directory and the Web Service can be corrected without
having to overlay all your work with a complete rebuild of the Web Service.
I would appreciate any feedback or comments related to this.
Thanks,
Ben
|
|
|
Re: Project Clean Errors - Web Service (possible solution) [message #112844 is a reply to message #112813] |
Mon, 20 June 2005 12:48  |
Eclipse User |
|
|
|
Hi Ben,
Thanks for the excellent description and research you put into this
potential bug. Could you pls open a bugzilla bug report for this issue,
and include the steps you mentioned to reproduce it? A cut and paste of
your text should be sufficient.
https://bugs.eclipse.org/bugs/
Since this is Web service related, we could start by opening the bug
against the Web tools "jst.ws" component.
-Seng
Ben wrote:
> I have some additional and intersting information regarding this error.
> A quick refresh, I created a top down Web Service from a WSDL document,
> test it and it works perfectly. I then run a Clean (project->clean) on
> the project, with no error message, and it then won't run. I get an
> error message that the method couldn't be found on Axis. The only way
> (possible work around) that I can recover is to recreate the Web Service
> from the WSDL document which overlays my changes that I have made when
> it recreates the schedule.
> I will get to the possible cause of the problem and solutino in a minute
> but I want to cover some of my research for verificaiton.
>
> Within the project where my Web Service had existed before, I recreated
> the Web Service from the WSDL file and recorded the files that were
> updated (by change date).
>
> Under the .deployables directory and sub directories the following files
> were updated:
> a) server-config.wsdd
> b) deploy.wsdd
> c) undeploy.wsdd
> d) *.class (all the class files were updated)
> e) *.jar (all my jar files that are really reference files were updated)
> f) *.wsdl (the new Soap wsdl was updated)
>
> Under the Mod directory and sub directories (files typically displayed
> in Eclipse) the following files were updated:
> a) *.java (all java files)
> b) deploy.wsdd
> c) undeploy.wsdd
> d) *.jar (all my jar files that are really reference files were updated)
> e) *.wsdl (the new Soap wsdl was updated)
>
> I then run a Clean (project->clean) on my proejct and check to see which
> files were updated and I noticed the following:
>
> Under .deployables directory and subdirectory:
> a) The server-config.wsdd file no longer exists - did not expect)
> b) *.class (all the class files were updated - would expect)
> Since I had tried to redeploy the project and many other different
> things to resolve the issue, I assumed that my problem must exist in one
> of the two areas that changed after the Clean. Since I expect the
> *.class files to be updated I focused on the server-config.wsdd file
> which no longer appeard.
> I recreated the Web Service again from the WSDL, verified that it was
> functioning again, and then made a copy of the server-config.wsdd file.
> I then performed the Clean, and verified that the Web Service was broken
> again. I then pasted a copy of the original server-config.wsdd file
> back into the directory and ran the Web Service again. When I did this
> the Web Service corrected itself and worked fine. Therefore, I am
> concluding that the problem is the fact that the Clean deletes and never
> recreates the server-config.wsdd file. For a temporary solution until
> it is corrected I recommend that the server-config.wsdd file be copied
> and backed up somewhere. If a clean is performed this file can be pased
> into the appropriate directory and the Web Service can be corrected
> without having to overlay all your work with a complete rebuild of the
> Web Service.
>
> I would appreciate any feedback or comments related to this.
>
> Thanks,
> Ben
>
|
|
|
Powered by
FUDForum. Page generated in 0.03641 seconds