Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Apache Geronimo - Eclipse Indigo- JAXWS deployment problem(Apache Geronimo - Eclipse Indigo- JAXWS deployment problem)
Apache Geronimo - Eclipse Indigo- JAXWS deployment problem [message #787817] Tue, 31 January 2012 21:13 Go to next message
Arun Adiththan is currently offline Arun Adiththan
Messages: 2
Registered: January 2012
Junior Member
I use Eclipse Indigo and Apache geronimo server. "Developing a JAX-WS POJO Web Service" following the tutorial from cwiki.apache.org - developing-a-jax-ws-pojo-web-service throws the following error on deployment. The geronimo server starts fine but could not deploy the service.


I double checked to confirm that JDK (1.6.0_30) has been installed.

The path is:
C:\Program Files\Java
(jdk1.6.0_31 folder)
(jre6 folder)

The lib folder mentioned in this path "C:\Program Files\Java\lib" as appear in the below given error does not exist on my machine


Geronimo Application Server started
2012-01-31 22:58:54,312 WARN [JAXWSTools] Missing C:\Program Files\Java\lib. This may be required for wsgen to run.
Process output: {}java.lang.NoClassDefFoundError: Adiththan\geronimo-tomcat7-javaee6-3/0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2/2_spec\1/1;E:\Arun
Caused by: java.lang.ClassNotFoundException: Adiththan\geronimo-tomcat7-javaee6-3.0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2.2_spec\1.1;E:\Arun
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Adiththan\geronimo-tomcat7-javaee6-3.0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2.2_spec\1.1;E:\Arun. Program will exit.
Exception in thread "main"

--------------

WSDL generation failed
org.apache.geronimo.common.DeploymentException: WSDL generation failed
at org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:176)
at org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGenerator.java:34)
at org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:153)
at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(JAXWSServiceBuilder.java:321)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:637)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I have checked the "geronimo-tomcat7-javaee6-3/0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2/2_spec\" directory and found a jaxws jar with version 2.1. Is the difference in the version of jaxws jar (2.1) and geronimo server (3.0) introduces such problem and preventing the service from getting deployed.

Please help me in fixing the problem.

Regards,
Arun


Re: Apache Geronimo - Eclipse Indigo- JAXWS deployment problem [message #788215 is a reply to message #787817] Wed, 01 February 2012 08:58 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 1/31/2012 9:13 PM, Arun Adiththan wrote:
> I use Eclipse Indigo and Apache geronimo server. "Developing a JAX-WS
> POJO Web Service" following the tutorial from cwiki.apache.org -
> developing-a-jax-ws-pojo-web-service throws the following error on
> deployment. The geronimo server starts fine but could not deploy the
> service.
>
>
> I double checked to confirm that JDK (1.6.0_30) has been installed.
>
> The path is:
> C:\Program Files\Java
> (jdk1.6.0_31 folder)
> (jre6 folder)
>
> The lib folder mentioned in this path "C:\Program Files\Java\lib" as
> appear in the below given error does not exist on my machine
>
>
> Geronimo Application Server started
> 2012-01-31 22:58:54,312 WARN [JAXWSTools] Missing C:\Program
> Files\Java\lib. This may be required for wsgen to run.
> Process output: {}java.lang.NoClassDefFoundError:
> Adiththan\geronimo-tomcat7-javaee6-3/0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2/2_spec\1/1;E:\Arun
>
> Caused by: java.lang.ClassNotFoundException:
> Adiththan\geronimo-tomcat7-javaee6-3.0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2.2_spec\1.1;E:\Arun
>
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class:
> Adiththan\geronimo-tomcat7-javaee6-3.0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2.2_spec\1.1;E:\Arun.
> Program will exit.

Trying to use
"Adiththan\geronimo-tomcat7-javaee6-3.0-beta-1\repository\org\apache\geronimo\specs\geronimo-jaxws_2.2_spec\1.1;E:\Arun"
as if it were a fully qualified Java class name indicates something is
having trouble dealing with spaces in the paths to your software. I'm
not familiar with Geronimo and its WSDL generation, so I don't know of a
workaround other than avoiding spaces in the path names when installing
the software. For which software this really matters, I also don't
know. Certainly it would appear that installing Geronimo at a path
without spaces might help. You might also check Geronimo Forums or
mailing lists to see if this is a known issue and what other workarounds
might be available.

Cheers,
Larry

> Exception in thread "main"
>

<snip/>
Re: Apache Geronimo - Eclipse Indigo- JAXWS deployment problem [message #995014 is a reply to message #787817] Fri, 28 December 2012 16:58 Go to previous messageGo to next message
Vrajendra Mandloi is currently offline Vrajendra Mandloi
Messages: 1
Registered: December 2012
Junior Member
hi
This is a very Old Post and.. recently while working on Webservices i also got the same error message. please could you tell me were you able to resolve the issue.

i am having the same issue .. Geronima server is starting good but it is giving some error while deploying the project on the same..

Console ::

2012-12-29 03:16:27,197 WARN [JAXWSTools] Missing C:\Program Files\Java\lib. This may be required for wsgen to run.
2012-12-29 03:16:29,201 ERROR [WsdlGeneratorUtils] Process failed: JDK's tools.jar was not found in C:\Program Files\Java\lib\tools.jar. Usually this means you are running JRE, not JDK. Please use the java command in JDK 5.0 or later (not JRE.)

please help me with this.. how to sort this issue.

Regards,
Vrajendra
Re: Apache Geronimo - Eclipse Indigo- JAXWS deployment problem [message #1009945 is a reply to message #995014] Fri, 15 February 2013 22:43 Go to previous message
Geoffrey MALAFSKY is currently offline Geoffrey MALAFSKY
Messages: 1
Registered: February 2013
Junior Member
BION, the error is exactly as stated: the WSDL generator needs the tools.jar file and is looking for it in a specific location which does not exist. This location is not created on my machines with either JDK 1.7 installed nor JRE 1.7. If JDK is installed and the JAVA_HOME is set to this folder (usually like C:\Program Files\Java\jdk1.7.0_03) then there should not be any problems (as in my case). However, if you are using a JRE (as I attempted to do on a deployment machine for Geronimo), then neither the JDK folder nor the ..Java\lib\ folder exist. Needless to say, this was not clearly articulated anywhere that I could find in Geronimo documentation nor CXF web services nor..... I solved it by creating the folder in question (...Java\lib\) and copying the file tools.jar from a JDK installation on a different machine into that folder. I did have to restart Geronimo but then it deployed the WAR file and started the web application OK.

(As an aside of possible interest: this is similar to the poorly documented problems deploying web services in .Net up to VS2008 although VS2010 is better and cleaner)
Previous Topic:Publish to server does not build
Next Topic:launch configurations in java ee project can't be saved in the project
Goto Forum:
  


Current Time: Sat Aug 30 10:37:27 EDT 2014

Powered by FUDForum. Page generated in 0.02086 seconds