« Return to Thread: Deploying to Weblogic 10.3.1
Hi Harold,
Thanks for your reply. I did look
for a solution in the history and older emails but couldn’t find
one. I have also just tried going back to removing weblogic.xml from
warName\WEB-INF\ and just using earName\META-INF\weblogic-application.xml and
by also copying the webservices-*.jar files from metro 2.0 to
earName\APP-INF\lib but I am back to the error I mentioned in #2 below:
Message icon - Error An error occurred
during activation of changes, please see the log for details.
Message icon - Error
weblogic.application.ModuleException:
Message icon - Error class
com.oracle.webservices.documentservice.server.DocumentServiceImpl has neither
@WebSerivce nor @WebServiceProvider annotation.
I don’t understand why it complains
about the missing annotation since my class has @WebService:
@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
Hopefully some kind soul out there will be
able to help me with this…J
Hello Carl,
> 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?
The Metro team only tests
against GlassFish v2 and v3 - and against Tomcat.
We do know that a number of
Metro users deploy Metro on Weblogic (not sure what version). Hopefully
one of them will speak up and help you.
Also, look through previous
mails - it has been discussed in the past.
Regards,
Harold
From: Carl Roberts
[mailto:carl.roberts@...]
Sent: Thursday, July 09, 2009 2:49
PM
To: 'users@...'
Subject: 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 |