geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <webe...@gmail.com>
Subject Re: NameNotFoundException: greeting
Date Wed, 15 Oct 2008 15:19:50 GMT


Donald Woods-2 wrote:
> 
> Looks like you're using the Geronimo Jetty + CXF assembly below, while 
> WASCE only provides a Tomcat +Axis2 assembly.  Can you try the Geronimo 
> Tomcat + Axis2 assembly instead, so you are comparing like runtimes?
> 

OK, I tried geronimo-tomcat6-javaee5-2.1.3.

Then I get the Stacktrace below. What business has Geronimo with wsdl? My
.war is just a plain servlet, no web service.
Then I tried with IBM Java 1.5 instead of Sun 1.6. Now I get the second
stacktrace below.
This looks like the Jetty exception, with NameNotFoundException: greeting

Seems something has changed between the Wasce Version and current Geronimo.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
	<servlet>
		<servlet-name>ConnectorServlet</servlet-name>
		<servlet-class>kw.web.ConnectorServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>ConnectorServlet</servlet-name>
		<url-pattern>/ConnectorServlet</url-pattern>
	</servlet-mapping>
	<resource-ref>
		<res-ref-name>MyU320ConnectionFactory</res-ref-name>
		<res-type>javax.resource.cci.ConnectionFactory</res-type>
	    <res-auth>Container</res-auth>
    </resource-ref>  
</web-app>



Deployment failed:
Unable to find the service wsdl file

Unable to generate the wsdl file using wsgen.
org.apache.geronimo.common.DeploymentException: Unable to generate the wsdl
file using wsgen.
	at
org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerator.java:351)
	at
org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:222)
	at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(JAXWSServiceBuilder.java:175)
	at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:447)
	at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
	at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
	at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:199)
	at org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:188)
	at
org.apache.geronimo.jaxws.builder.JAXWSTools.invokeWsgen(JAXWSTools.java:170)
	at
org.apache.geronimo.jaxws.builder.WsdlGenerator.invokeWsgen(WsdlGenerator.java:357)
	at
org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerator.java:331)
	... 18 more
Caused by: java.lang.OutOfMemoryError: PermGen space
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at
com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:199)
	at org.apache.geronimo.jaxws.builder.JAXWSTools.invoke(JAXWSTools.java:188)
	at
org.apache.geronimo.jaxws.builder.JAXWSTools.invokeWsgen(JAXWSTools.java:170)
	at
org.apache.geronimo.jaxws.builder.WsdlGenerator.invokeWsgen(WsdlGenerator.java:357)
	at
org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerator.java:331)
	at
org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:222)
	at
org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(JAXWSServiceBuilder.java:175)
	at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:447)
	at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)


=============================================

17:16:22,795 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="geronimo/TXWEBClient/1.1/war?J2EEApplication=null,j2eeType=WebModule,name=geronimo/TXWEBClient/1.1/war"
java.lang.RuntimeException: Failure initializing web service containter
        at
org.apache.geronimo.axis2.pojo.POJOWebServiceContainerFactoryGBean.getWebServiceContainer(POJOWebServiceContainerFactoryGBean.java:96)
        at
org.apache.geronimo.tomcat.TomcatWebAppContext.createWebServices(TomcatWebAppContext.java:281)
        at
org.apache.geronimo.tomcat.TomcatWebAppContext.<init>(TomcatWebAppContext.java:255)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
        at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
        at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
        at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
        at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
        at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
        at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
        at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
        at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
        at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$a92a46b2.startConfiguration(<generated>)
        at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
        at java.lang.Thread.run(Thread.java:801)
Caused by:
javax.xml.ws.WebServiceException: Error configuring handlers
        at
org.apache.geronimo.axis2.pojo.POJOWebServiceContainer.init(POJOWebServiceContainer.java:103)
        at
org.apache.geronimo.axis2.pojo.POJOWebServiceContainerFactoryGBean.getWebServiceContainer(POJOWebServiceContainerFactoryGBean.java:94)
        ... 38 more
Caused by:
javax.xml.ws.WebServiceException: Handler annotation failed
        at
org.apache.geronimo.axis2.Axis2WebServiceContainer.injectHandlers(Axis2WebServiceContainer.java:482)
        at
org.apache.geronimo.axis2.pojo.POJOWebServiceContainer.init(POJOWebServiceContainer.java:101)
        ... 39 more
Caused by:
org.apache.geronimo.jaxws.annotations.InjectionException: JNDI injection
failed for resource 'greeting'
        at
org.apache.geronimo.jaxws.JAXWSAnnotationProcessor.lookupJNDI(JAXWSAnnotationProcessor.java:51)
        at
org.apache.geronimo.jaxws.JAXWSAnnotationProcessor.access$400(JAXWSAnnotationProcessor.java:29)
        at
org.apache.geronimo.jaxws.JAXWSAnnotationProcessor$JAXWSResourceAnnotationHandler.getAnnotationValue(JAXWSAnnotationProcessor.java:65)
        at
org.apache.geronimo.jaxws.annotations.InjectingAnnotationHandler.injectField(InjectingAnnotationHandler.java:75)
        at
org.apache.geronimo.jaxws.annotations.ResourceAnnotationHandler.processFieldAnnotation(ResourceAnnotationHandler.java:36)
        at
org.apache.geronimo.jaxws.annotations.AnnotationProcessor.processAnnotations(AnnotationProcessor.java:76)
        at
org.apache.geronimo.axis2.Axis2WebServiceContainer.injectResources(Axis2WebServiceContainer.java:497)
        at
org.apache.geronimo.axis2.Axis2WebServiceContainer.injectHandlers(Axis2WebServiceContainer.java:479)
        ... 40 more
Caused by:
javax.naming.NameNotFoundException: greeting
        at
org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:169)
        at
org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:603)
        at
org.apache.geronimo.jaxws.JNDIResolver.resolve(JNDIResolver.java:37)
        at
org.apache.geronimo.jaxws.ServerJNDIResolver.resolve(ServerJNDIResolver.java:36)
        at
org.apache.geronimo.jaxws.JAXWSAnnotationProcessor.lookupJNDI(JAXWSAnnotationProcessor.java:49)
        ... 47 more



-- 
View this message in context: http://www.nabble.com/NameNotFoundException%3A-greeting-tp19990125s134p19995763.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message