users@jax-ws.java.net

Re: class not found in WSServletContextListener

From: jm <jmuguruza_at_gmail.com>
Date: Tue, 18 Jul 2006 11:27:30 +0200

ok, problem solved, an exception class thrown by our ws was outside
that package and was being obfuscated...everything has an explanation
:)

thanks

On 7/17/06, jm <jmuguruza_at_gmail.com> wrote:
> yes, I also think its a result of the obfuscation, just trying to
> pinpoint where exactly.
>
> I obfuscate only part of my app code. I have some rules to select some
> of my app classes that dont get obfuscated, and all the rest are
> obfuscated.
>
> The package com.galeon.mig.external and everything below it are not
> obfuscated, and in this hierarchy is everything jaxws related in my
> project. That's why I thought it should work....
>
> On 7/17/06, Sameer Tyagi <Sameer.Tyagi_at_sun.com> wrote:
> > This is obviously a result of the obfuscater you are using. What exactly
> > are you
> > obfuscating ? Your description seemed to indicate that you are not
> > obfuscating
> > your application code (which is what you probably want too ?) ?
> >
> > /s
> >
> >
> > jm wrote:
> >
> > > Hello,
> > >
> > > I am preparing my app for deployment, and I am encountering an error
> > > when tomcat starts. My env is jax-ws2.0.1, tomcat 5.5.16, and jdk1.5
> > >
> > > When I dont obfuscate my code everything starts ok, but when I
> > > obfuscate my code (leaving the needed classes untouched, such as
> > > com.galeon.mig.external.* and below), I get the following:
> > >
> > > 07/17 15:38:28,297 ( ?:?) DEBUG StartupListener done.
> > > 07/17 15:38:30,172 (StandardContext.java:3733) ERROR Excepción
> > > enviando evento inicializado de contexto a instancia de escuchador de
> > > clase com.sun.xml.ws.transport.http.servlet.WSServletContextListener
> > > WSSERVLET11: failed to parse runtime descriptor: class:
> > > com.galeon.mig.external.jaxws.hBean could not be found
> > > at
> > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:128)
> > >
> > > at
> > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> > >
> > > at
> > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
> > > at
> > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> > >
> > > at
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > > at
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > > at
> > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
> > >
> > > at
> > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
> > >
> > > at
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> > > at
> > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> > >
> > > at
> > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > >
> > > at
> > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> > > at
> > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> > > at
> > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> > > at
> > > org.apache.catalina.core.StandardService.start(StandardService.java:450)
> > > at
> > > org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> > > 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:585)
> > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
> > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> > > Caused by: class: com.galeon.mig.external.jaxws.hBean could not be found
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.getClass(RuntimeModeler.java:269)
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.processExceptions(RuntimeModeler.java:982)
> > >
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:720)
> > >
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.processMethod(RuntimeModeler.java:505)
> > >
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:353)
> > >
> > > at
> > > com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:249)
> > >
> > > at
> > > com.sun.xml.ws.server.RuntimeEndpointInfo.createSEIModel(RuntimeEndpointInfo.java:168)
> > >
> > > at
> > > com.sun.xml.ws.server.RuntimeEndpointInfo.init(RuntimeEndpointInfo.java:315)
> > >
> > > at
> > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener.createModelAndMetadata(WSServletContextListener.java:197)
> > >
> > > at
> > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:117)
> > >
> > > ... 24 more
> > >
> > >
> > > Of course, I dont have any com.galeon.mig.external.jaxws.hBean, any idea?
> > >
> > >
> > > My sun-jaxws.xml file looks like this:
> > >
> > > <endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime'
> > > version='2.0'>
> > > <endpoint
> > > name='wsoutlook'
> > > implementation='com.galeon.mig.external.WsOutlook'
> > > url-pattern='/ws/wsoutlook'/>
> > > <endpoint
> > > name='wsexternal'
> > > implementation='com.galeon.mig.external.WsExternal'
> > > url-pattern='/ws/wsexternal'/>
> > > </endpoints>
> > >
> > > thanks a lot
> > > javi
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> > For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
> >
> >
>