« Return to Thread: Deploying to Weblogic 10.3.1
How do you deploy a web application / service that uses
Metro to Weblogic 10.3.1?
Do you guys have someone that tests this and has documented
it?
Reason I am asking is that I have spent the better part of
today trying this and can’t deploy my test application that was running
fine on tomcat.
I tried some of the suggestions out there but no luck:
1- Tried
deploying the war and Weblogic would not respond.
2 – Tried creating an ear and
including the war and also including this file:
earName\META-INF\weblogic-application.xml
<?xml
version='1.0' encoding='UTF-8'?>
<weblogic-application
xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application
http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
<application-param>
<param-name>webapp.encoding.default</param-name>
<param-value>UTF-8</param-value>
</application-param>
<prefer-application-packages>
<package-name>javax.jws.*</package-name>
<package-name>javax.xml.soap.*</package-name>
</prefer-application-packages>
</weblogic-application>
The deployment process in Weblogic then
complains that my service implementation class does not have @WebService or
@WebServiceProvider annotation, but it does:
Here are my annotations:
@WebService(endpointInterface="com.oracle.webservices.documentservice.DocumentServicePortType")
@SchemaValidation(handler=com.oracle.webservices.documentservice.schema.validation.SchemaValidationErrorHandler.class)
@HandlerChain(file="handlers.xml")
@StreamingAttachment(parseEagerly=false,
memoryThreshold=2000000L)
@MTOM
3 – Tried also including a warName\WEB-INF\weblogic.xml
file:
<?xml version="1.0"
encoding="UTF-8" ?>
<weblogic-web-app
xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<context-root>DocumentServiceSoap11</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
I then get a different error during
deployment (I did include Sun’s Saaj-impl-1.3.jar file under WEB-INF\lib
of the war file)
<Jul 9, 2009 2:37:16 PM EDT>
<Warning> <Deployer> <BEA-149078> <Stack trace for
message 149004
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
a:1376)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
Truncated. see log file for complete stacktrace
java.lang.IllegalArgumentException:
com.sun.xml.internal.messaging.saaj.soap.LocalStrings !=
com.sun.xml.messaging.saaj.soap.LocalStrings
at java.util.logging.Logger.getLogger(Logger.java:328)
at com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit>(SAAJMeta
FactoryImpl.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
Truncated. see log file for complete stacktrace
>
« Return to Thread: Deploying to Weblogic 10.3.1
| Free embeddable forum powered by Nabble | Forum Help |