Deployment on WebSphere 6.1 Fails - Please help!

View: New views
7 Messages — Rating Filter:   Alert me  

Deployment on WebSphere 6.1 Fails - Please help!

by oakridge () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I've followed the documentation here:

http://cwiki.apache.org/confluence/display/CXF20DOC/Application+Server+Specific+Configuration+Guide#ApplicationServerSpecificConfigurationGuide-Websphere

But I continue to get the following error:

"java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlSeeAlso not present"

I've tried both approaches (add customer class loader with wsdl4j and with a series of jars) outlined in the above link both with and without the Web Service Feature Pack.  Has anyone had luck with deploying on WS 6.1 or am I missing something?  I'm happy to provide more details if more are needed.

Thanks!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by oakridge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I updated to 6.1.0.27 and updated to JAXB 2.1 which got rid of the XmlSeeAlso error, but am still running into problems.  I have attempted the fixes in the link as I previously mentioned.  I currently have a share lib mapped to my app server's classloader that contains:

geronimo-jaxws_2.1_spec-1.0.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
jaxp-ri-1.4.2.jar
jsr173_api-1.0.jar
saaj-impl-1.3.2.jar
wsdl4j-1.6.2.jar

I have tried using just wsdl4j, but that didn't work.  With the above classes attached to the classloader, I am seeing the following stack which doesn't make sense to me.  

[10/29/09 23:25:50:076 GMT-05:00] 00000026 DefaultRemote W org.directwebremoting.util.CommonsLoggingOutput warn Method execution failed:
                                 java.lang.TypeNotPresentException: Type javax.jws.WebService not present
        at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
        at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
        at java.lang.Class.getDeclaredAnnotations(Class.java:1648)
        at java.lang.Class.getAnnotations(Class.java:1615)
        at java.lang.Class.getAnnotation(Class.java:1589)
        at com.google.inject.InjectorImpl.getImplicitBinding(InjectorImpl.java:879)
        at com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:308)
        at com.google.inject.BindingBuilderImpl$FactoryProxy$1.run(BindingBuilderImpl.java:293)
        at com.google.inject.InjectorImpl.withDefaultSource(InjectorImpl.java:142)
        at com.google.inject.BindingBuilderImpl$FactoryProxy.notify(BindingBuilderImpl.java:291)
        at com.google.inject.BinderImpl.createInjector(BinderImpl.java:264)
        at com.google.inject.Guice.createInjector(Guice.java:79)
        at com.google.inject.Guice.createInjector(Guice.java:53)
        at com.google.inject.Guice.createInjector(Guice.java:43)
        at com.mysoftware.services.di.AbstractFoundationModule$1.get(AbstractFoundationModule.java:34)
        at com.mysoftware.services.di.AbstractFoundationModule$1.get(AbstractFoundationModule.java:32)
        at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:37)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:756)
        at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:35)
        at com.google.inject.Scopes$1$1.get(Scopes.java:53)
        at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.InjectorImpl$9$1.call(InjectorImpl.java:708)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:747)
        at com.google.inject.InjectorImpl$9.get(InjectorImpl.java:702)
        at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:728)
        at com.mycompany.weblink.services.RuleRunner.<init>(RuleRunner.java:93)
        at java.lang.Class.newInstanceImpl(Native Method)
        at java.lang.Class.newInstance(Class.java:1328)
        at org.directwebremoting.create.NewCreator.getInstance(NewCreator.java:65)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:348)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
        at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
        at com.mysoftware.services.security.realm.SecurityFilter._DoFilter(SecurityFilter.java:213)
        at com.mysoftware.services.security.realm.SecurityFilter.doFilter(SecurityFilter.java:115)
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
        at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
        at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
        at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: java.lang.ClassNotFoundException: javax.jws.WebService
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:163)
        at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)
        ... 64 more

Any help is appreciated!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by easternwahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We got it working with some differences described in this thread: http://www.nabble.com/Re%3A-CXF-and-WAS-6.1%28.0.19%29-p26119183.html

We did not include the metadata jar in the shared lib - this jar is only in web-inf/lib.



oakridge wrote:
So I've followed the documentation here:

http://cwiki.apache.org/confluence/display/CXF20DOC/Application+Server+Specific+Configuration+Guide#ApplicationServerSpecificConfigurationGuide-Websphere

But I continue to get the following error:

"java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlSeeAlso not present"

I've tried both approaches (add customer class loader with wsdl4j and with a series of jars) outlined in the above link both with and without the Web Service Feature Pack.  Has anyone had luck with deploying on WS 6.1 or am I missing something?  I'm happy to provide more details if more are needed.

Thanks!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by easternwahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We got it working with some differences described in this thread: http://www.nabble.com/Re%3A-CXF-and-WAS-6.1%28.0.19%29-p26119183.html

We did not include the metadata jar in the shared lib - this jar is only in web-inf/lib.



oakridge wrote:
So I've followed the documentation here:

http://cwiki.apache.org/confluence/display/CXF20DOC/Application+Server+Specific+Configuration+Guide#ApplicationServerSpecificConfigurationGuide-Websphere

But I continue to get the following error:

"java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.XmlSeeAlso not present"

I've tried both approaches (add customer class loader with wsdl4j and with a series of jars) outlined in the above link both with and without the Web Service Feature Pack.  Has anyone had luck with deploying on WS 6.1 or am I missing something?  I'm happy to provide more details if more are needed.

Thanks!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by oakridge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've managed to get this working by including the needed JAXWS Geronimo JARs and not including the web services feature pack or a custom class loader.  I don't have all the CXF required JARs due to internal conflicts, but in the end no special configuration was needed outside adding the Geronimo JARs which enabled the javax.jws.* stuff.

Thanks all!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by easternwahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cool.  What did your web-inf/lib end up including?


oakridge wrote:
I've managed to get this working by including the needed JAXWS Geronimo JARs and not including the web services feature pack or a custom class loader.  I don't have all the CXF required JARs due to internal conflicts, but in the end no special configuration was needed outside adding the Geronimo JARs which enabled the javax.jws.* stuff.

Thanks all!

Re: Deployment on WebSphere 6.1 Fails - Please help!

by oakridge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's quite a bit in my WEB-INF/lib, but for the most part I have the following JARs from the list CXF claims to need:

XmlSchema-1.4.5.jar
cxf-2.2.3.jar (the latest GA all JAR)
wsdl4j-1.6.2.jar
commons-logging-1.0.4.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar (JSR 181; not needed in Tomcat)
commons-logging-1.1.1.jar

I have some old JARs from Axis, so there are the ones I was able to uniquely identify as newly added.  I imagine that JAXB was required as well since that is my default binding mechanism.  Also, I am not using Spring.  Finally, I did not install the Web Services Feature Pack.  I hope that helps!  

Sorry for the delay in getting back to you.

Thanks again!