• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Tomcat errors while developing web services using Eclipse 3.5, Tomcat 6.0, Axis2 1.4

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Greetings to you all.

I am new in eclipse. I am trying to create a web service with eclipse 3.5. I am following steps mentioned in the page http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html.

I am using the following:

Tomcat 6.0
Eclipse 3.5 galileo
Axis2 1.4

But after all the steps are completed, tomcat server attached with eclipse, when restarted to deploy the service, is printing lines in red text in the IDE console. I think these are errors and the service is not being deployed.

Also the IDE is not being able to display tomcat and axis2 home page in its internal browser.

I tried running tomcat from command prompt and running tomcat and axis2 home pages from Mozilla. Its is working fine.

Can anyone please tell me what is going wrong with the IDE.

-Kumarjit
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kumarjit, welcome to javaranch.

Can you post the error here for people to see. That way it would be easier to track the problem...
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kumarjit, try to install Eclipse 3.5 (IDE for java EE developers) again, without adding any other plugins.

http://www.eclipse.org/downloads/ (the first download link)

And use Axis2 1.4.1... Might work.

http://ws.apache.org/axis2/download/1_4_1/download.cgi
 
Kumarjit Chakraborty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
//Ankit: Sorry for replying so late.

Mean while I have explored further. Now the web service is not getting deployed and following error is generated in a pop up box in eclipse,

IWAB0489E Error when deploying Web service to Axis runtime
axis-admin failed with {http://schemas.xmlsoap.org/soap/envelope/}Client The service cannot be found for the endpoint reference (EPR) http://localhost:8080/Axis2WSTest/services/AdminService

Also the following lines are printed in eclipse console when tomcat is started. The error is displayed again again

Aug 11, 2009 5:39:19 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Axis2WSTest' did not find a matching property.
Aug 11, 2009 5:39:19 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_01\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.6.0_01/bin/client;C:/Program Files/Java/jre1.6.0_01/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\PROGRA~1\XRay;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Tomcat 5.5\common\lib;C:\Program Files\Tomcat 5.5\bin;E:\My R&D Java\UDComm;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
Aug 11, 2009 5:39:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 11, 2009 5:39:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 895 ms
Aug 11, 2009 5:39:19 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 11, 2009 5:39:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
[ERROR] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
[INFO] Deploying module: addressing-1.4 - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/addressing-1.4.mar
[INFO] Deploying module: metadataExchange-1.4 - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/mex-1.4.mar
[INFO] Deploying module: ping-1.4 - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/ping-1.4.mar
[INFO] Deploying module: script-1.4 - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/scripting-1.4.mar
[INFO] Deploying module: smtpfault - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/smtpfault.mar
[INFO] Deploying module: soapmonitor-1.4 - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/soapmonitor-1.4.mar
[INFO] Deploying Web service: Converter - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/services/Converter/
[INFO] Deploying Web service: version.aar - file:/E:/My R&D Java/WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/services/version.aar
Aug 11, 2009 5:39:22 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 11, 2009 5:39:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 11, 2009 5:39:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/109 config=null
Aug 11, 2009 5:39:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2952 ms
[ERROR] The service cannot be found for the endpoint reference (EPR) http://localhost:8080/Axis2WSTest/services/AdminService
org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) http://localhost:8080/Axis2WSTest/services/AdminService
at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:64)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)

//Zeng: I will definitely try the versions you mentioned. It will really be helpful if you can provide me a document containing the steps to develop a web service using those.

 
Meng Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Kumarjit :-)

I used the same tutorial, and something similar also happened at the very first. And i finally found that the problem was caused by these two plugins "axis2 eclipse codegen wizard" and "axis2 eclipse service archiver wizard". So I reinstalled Eclipse (fresh and without any other Plugins), and everything works pretty fine now.

Hope it would help.

Meng
 
Kumarjit Chakraborty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Meng,

I think I dont have that plugins installed. Anyways I am going to try the new eclipse and axis today. Lets see whats there in my luck.

 
Kumarjit Chakraborty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Meng,

I tried using the versions of Eclipse and Asix2

This eclipse is also printing some redlines in the console when tomcat is restarted. I have noticed some points and those are listed down:
1. Eclipse browser is not being able to display the tomcat homepage at http://localhost:8080/, event the tomcat is started.
2. No WSDl file is generated in the project.

Lines printed in eclipse are something as follows

[INFO] Deploying module: addressing-1.41 - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/addressing-1.41.mar
[INFO] Deploying module: metadataExchange-1.41 - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/mex-1.41.mar
[INFO] Deploying module: ping-1.41 - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/ping-1.41.mar
[INFO] Deploying module: script-1.41 - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/scripting-1.41.mar
[INFO] Deploying module: smtpfault - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/smtpfault.mar
[INFO] Deploying module: soapmonitor-1.41 - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/soapmonitor-1.41.mar
[INFO] Deploying Web service: Converter - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/services/Converter/
[INFO] Deploying Web service: version.aar - file:/C:/Documents and Settings/kumarjitc/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/services/version.aar
Aug 12, 2009 11:01:33 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Axis2WSTest' did not find a matching property.
Aug 12, 2009 11:01:33 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_01\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.6.0_01/bin/client;C:/Program Files/Java/jre1.6.0_01/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\PROGRA~1\XRay;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Tomcat 5.5\common\lib;C:\Program Files\Tomcat 5.5\bin;E:\My R&D Java\UDComm;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
Aug 12, 2009 11:01:33 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 12, 2009 11:01:33 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 833 ms
Aug 12, 2009 11:01:33 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 12, 2009 11:01:33 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Aug 12, 2009 11:01:35 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 12, 2009 11:01:36 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 12, 2009 11:01:36 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/110 config=null
Aug 12, 2009 11:01:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2346 ms

 
Meng Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kumarjit

Redlines would be OK without "[ERROR]" printed. They are just some kind of infos or warnings.
You don't have to start tomcat server manually from tomcat monitor, the tomcat server will be started automatically by your project.
Try to use this link to check your services: http://localhost:8080/Axis2WSTest/services/listServices
"Axis2WSTest" is your dynamic web project name in this case.



Meng
 
Kumarjit Chakraborty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Meng,

Thanks a lot.

I am doing the following:

1. Right click on the project name
2. Run As-> Run On Server

The page displayed in the Eclipse browser is http://localhost:8080/Axis2WSTest/

But this is displaying 404 error. I tried using the link http://localhost:8080/Axis2WSTest/services/listServices . But the same result.

I tried to display the link http://localhost:8080/ . Same result here as well.

I think something is missing tomcat configuration in Eclipse.

 
Meng Wang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kumarjit,

try to right click on the *.java file (converter.java in the tutorial), and choose "Web Service"-> "Create Web Service".
 
Kumarjit Chakraborty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Meng,

Same result. And the main thing is the WSDL file is not getting created.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kumarjit Chakraborty wrote:Meng,

Same result. And the main thing is the WSDL file is not getting created.



Hikumarjit,

From all your postings looks like you have cleaned up all the mess, except the following warning that i found from your logs...

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Axis2WSTest' did not find a matching property.



I will redirect you to one link it may helpful, hope this will fix your problem, its problem with the tomcat setting this link will point you what to do..
http://www.albeesonline.com/blog/2008/11/29/warning-setpropertiesruleserverserviceenginehostcontext-setting-property/

Regards
Vikash...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you pointing at the Axis2 server?

http://dev.eclipse.org/newslists/news.eclipse.webtools/msg15658.html

That at least got me the right screen in step 11.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am also facing the same issue. I am not even using web service too. I have 3 install of eclipse 3.3, 3.5 and 3.6. In eclipse 3.3 (Europa) I created a simple Hello World Dynamic Web Application and try to run against tomcat 6 it work But in 3.5 (Galileo) and 3.6(Helios) I tried to create simple hello wold jsp web app and try to run it in tomcat 6 server.... I got the following err ......



Jul 28, 2010 4:52:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Jul
blah blah ... ..classpaht
28, 2010 4:52:04 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:DemoApp' did not find a matching property.
Jul 28, 2010 4:52:14 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-7070
Jul 28, 2010 4:52:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 9856 ms
Jul 28, 2010 4:52:14 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 28, 2010 4:52:14 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Jul 28, 2010 4:52:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-7070
Jul 28, 2010 4:52:14 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 28, 2010 4:52:14 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Jul 28, 2010 4:52:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 348 ms



It says the server is start up but still i am getting the 404 error. It is not even giving me the tomcat home page ( http://localhost:7070/ )

Note: I have change my port no from 8080 to 7070.

Your helps will be highly appreciate




 
Squanch that. And squanch this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic