Using Axis2 webservices in WebLogic 10.3 - weblogic.xml

Hi,
I am facing an issue while trying the following:
I am using a webservices webapp in WebLogic 10.3. The web-app uses Axis2 for the webservices. To fix a logging issue, I had to add the following to my weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
After adding this change to the weblogic.xml- I am now getting an error in weblogic server log files, which is as follows -
]] Root cause of ServletException.
java.lang.LinkageError: loader constraint violation: when resolving interface method "org.apache.xmlbeans.SchemaTypeLoader.parse(Ljavax/xml/stream/XMLStreamReader;Lorg/apache/xmlbeans/SchemaType;Lorg/apache/xmlbeans/XmlOptions;)Lorg/apache/xmlbeans/XmlObject;"
the class loader (instance of org/apache/axis2/deployment/DeploymentClassLoader) of the current class, com/arcot/schemas/regfort/v2/types/GetArcotIdDocument$Factory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for resolved class, org/apache/xmlbeans/SchemaTypeLoader, have different Class objects for the type javax/xml/stream/XMLStreamReader used in the signature
I have tried over 6 hours of debugging but to no avail. If there are any suggestions anyone came make- as to the possible cause of this problem, it would be much appreciated!
thank you,
ronak

hi david,
thank you for the suggestion. The interesting thing is the error goes away as soon as I remove the weblogic.xml entry- and everything works fine. Except, when I dont have the prefer-web-inf-classes I get a log4j issue where my logs from different apps merge into a single file. That problem got resolved by adding the weblogic.xml change, but now it is this error.
Do you think there is anything that can be done in the weblogic-application.xml <prefer-application-packages> that might help in solving this problem?
thank you

Similar Messages

  • WLS 7.0 SP2 - deploy error using security-permission in weblogic.xml on Win NT (jdk1.3.1)

    I am trying to use this in my weblogic.xml and this is the error that I get:
    weblogic-web-app>
    <description>Test Web App</description>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/TestDSRef</res-ref-name>
    <jndi-name>TestJdbc</jndi-name>
    </resource-description>
    </reference-descriptor>
    <security-permission>
    <security-permission-spec>
         // grant ability to read any file
         grant codeBase "http://server/virtual_directory/-"
         permission java.io.FilePermission "<<ALL FILES>>", "read";
         </security-permission-spec>
    </security-permission>
    </weblogic-web-app>
    Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
    [Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
    Any ideas on what I might be doing wrong? When I remove the security-permissions,
    the application deploys fine.

    I am trying to use this in my weblogic.xml and this is the error that I get:
    weblogic-web-app>
    <description>Test Web App</description>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/TestDSRef</res-ref-name>
    <jndi-name>TestJdbc</jndi-name>
    </resource-description>
    </reference-descriptor>
    <security-permission>
    <security-permission-spec>
         // grant ability to read any file
         grant codeBase "http://server/virtual_directory/-"
         permission java.io.FilePermission "<<ALL FILES>>", "read";
         </security-permission-spec>
    </security-permission>
    </weblogic-web-app>
    Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
    [Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
    Any ideas on what I might be doing wrong? When I remove the security-permissions,
    the application deploys fine.

  • Where to put my sessions.xml using Axis2 webservices

    Hi,
    We want to use TopLink for persistency layer and ORM for webservices using the Axis2 framework. It's all running on a standalone OC4J 10.1.3. The problem I'm facing is that Toplink can't find the sessions.xml. The TOPLINK-7095 message that lots of people ran into.
    But in our specific situation I've got no idea where sessions.xml should be located. I guess I'm a little confused by the frameworks I'm using. The Axis2 framework has it's own web-app whereon webservices are deployed in separate .aar files. I don't think the sessions.xml should be part of that deployment. Than I'm mixing up the webservice and TopLink layer. Besides I don't think TopLink can find it there.
    I expect the sessions.xml file somewhere in a TopLink or OC4J config directory. That way all services can use the same config. But where?
    Or should I deploy my persistency-layer (sessions.xml, project.xml, POJO's) from the TopLink workbench as a separate web-app on OC4J. How can I access it then?
    Grtz,
    Roel

    Basically you want to put your sessions.xml file i the same jar/deployment unit as your persistent model classes. Either put it in the root or meta-inf directory in this jar, or put it in a subdirectory and provide the path to it when loading.
    When you load your sessions.xml from the SessionManager provide the class loader of one of your persistent model classes.

  • Where i will get weblogic.xml.om.ElementEnumeration package in weblogic9.2

    The application was previously using classes in the weblogic.xml.om package, which no longer appears to exist in Weblogic 9.2
    Were these classes (such as weblogic.xml.om.ElementEnumeration and weblogic.xml.om.Document) moved to another package with this weblogic9.2 release, is there an additonal jar that would provide this functionality

    Hi Praveen,
    I tried this but still it is not working.
    One more thing:
    Say if I deploy application in exploded format(MyLibrary, MyWebApp) then it is working fine but when make these as .war files then it is not working.
    Thanks for looking into this....
    Regards,
    Sharath.

  • Is able to run two webservices in Weblogic 7.0 trial version ?

    Hi all:
    I caught a webservice problem in weblogic7.0 (trial version).
    I have built an Session Bean example (examples\webservices\complex\statelessSession)
    in Weblogic 7.0 Examples Service, it works as expected.
    However, when I create another session bean following the above example with different
    Service Name and JNDI Name, the new session bean cannot work as expected(No WSDL
    URL is found).
    Is able to run two webservices in Weblogic 7.0 trial version?
    How can I run two and more webservices in Weblogic 7.0 trial version?
    If anyone know how to solve it, please reply me as soon as possible.

    Hi Kelvin,
    Could you check your server log file for any errors. If there are errors, would you post them here. It sounds like the second webservice is simply not being
    deployed for some reason.
    In the application.xml, make sure you have given each webservice a different <context-root>
    As a suggestion, make the <display-name> and the <context-root> the same, for example using: "TreeClock" then you should be able to find the webservice:
    http://<host>:<port>/TreeClock/TreeClock
    Bruce
    Kelvin wrote:
    Bruce:
    Thanks your help !!! Sorry to confuse you as we are actually using the GA version
    (download form BWA for evaluation).
    The problem is like this, when we developed two web service and deploy both.
    Only one of them can show up by quene the ?wsdl.
    Any additional info that we can provide ???
    Many thanks !!!
    Regards
    Kelvin
    Bruce Stephens <[email protected]> wrote:
    Hi Kelvin,
    By "trial version" if you mean the WLS 7.0 Beta program, thanks for giving
    this a spin
    however the final version of WLS 7.0 was Generally Available as of 4/30/02
    and the Beta
    program closed.
    We have an example that illustrates how to build a client that invokes two
    webservices.
    You can get a copy from the dev2dev center:
    http://dev2dev.bea.com/managed_content/direct/webservice/simple2.zip
    Hope this helps,
    Bruce
    Kelvin wrote:
    Hi all:
    I caught a webservice problem in weblogic7.0 (trial version).
    I have built an Session Bean example (examples\webservices\complex\statelessSession)
    in Weblogic 7.0 Examples Service, it works as expected.
    However, when I create another session bean following the above examplewith different
    Service Name and JNDI Name, the new session bean cannot work as expected(NoWSDL
    URL is found).
    Is able to run two webservices in Weblogic 7.0 trial version?
    How can I run two and more webservices in Weblogic 7.0 trial version?
    If anyone know how to solve it, please reply me as soon as possible.<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    Hi Kelvin,
    <p>By "trial version" if you mean the WLS 7.0 Beta program, thanks for
    giving this a spin however the final version of WLS 7.0 was Generally Available
    as of 4/30/02 and the Beta program closed.
    <p>We have an example that illustrates how to build a client that invokes
    two webservices. You can get a copy from the dev2dev
    center:
    <p>http://dev2dev.bea.com/managed_content/direct/webservice/simple2.zip
    <br>
    <p>Hope this helps,
    <br>Bruce
    <br>
    <p>Kelvin wrote:
    <blockquote TYPE=CITE>Hi all:
    <p>I caught a webservice problem in weblogic7.0 (trial version).
    <p>I have built an Session Bean example (examples\webservices\complex\statelessSession)
    <br>in Weblogic 7.0 Examples Service, it works as expected.
    <br>However, when I create another session bean following the above example
    with different
    <br>Service Name and JNDI Name, the new session bean cannot work as expected(No
    WSDL
    <br>URL is found).
    <p>Is able to run two webservices in Weblogic 7.0 trial version?
    <br>How can I run two and more webservices in Weblogic 7.0 trial
    version?
    <p>If anyone know how to solve it, please reply me as soon as possible.</blockquote>
    </html>

  • How to migrate .war archived webservice to WebLogic 10.0.3

    Hi everyone.
    I have been requested to deploy a War file as Webservice on Weblogic Server 10.0.3 (installed on Redhat EL 5.0, I used Sun jdk 1.0.6 distributed along with installer bin file). This file
    was run well on TOMCAT 5.0.28 server.When hacking into this WAR file I know it use Xfire(1.2.2) as a base to construct Webservice, hibernate(3.0) to mapping with database (it use only a
    services.xml putting on META_INF to describe service as far as I know). Firstly, I use Adminstration Console, go to deployment link and deploy as this tool say, the result in Adminstration
    Console tell me I had deployed succedfully but when I digged into exploded directory of WAR file, I can not see any .class file under WEB_INF directory and my client actually can not access provided services. I thought there is problem when use Application Console to deploy so I switch to use other tool like wlst or ant task but result is the same. Finally, I had to upload WAR file, use jar to extract WAR file to a directory and use Adminstration Console to deploy the whole directory as a Web Application. All class file are under WEB_INF directory. But when I use a client to access services I got exception as below on WebBrowser
    Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Fault: java.lang.NullPointerException
    and no more detail (or I do not known where to get log file). Because I am just a system maintainer and do not know much a bout J2EE Webservice specification, I just read some materials
    and know that WebLogic support Web Services 2.1 (JAX-WS) and XML-Based RPC 1.1 (JAX-RPC). So I desire to know some thing below:
    1) What kind of Webservice in WAR file do I have (Web Services 2.1 (JAX-WS) and XML-Based RPC 1.1 (JAX-RPC) or something WebLogic do not support?
    2) How to migrate my WAR file to Weblogic by a very common way?
    3) How to get log to make more detail about exception above on WebLogic (does log4j archive this work?) ?
    Thank you so much
    Edited by: user10407314 on Oct 30, 2008 1:41 AM

    Hi all,
    May be I found the problem. The compatibility between Weblogic and hibernate 3.0 relating to antlr-2.7.5H3.jar library. Although I include all application's jar file in CLASSPATH when start server
    but Weblogic seem not to see my antlr-2.7.5H3.jar and use its default antlr library instead. So I set my antlr-2.7.5H3.jar directly into PRE_CLASSPATH variable on $DOMAIN_HOME/lib/setDomainEnv.sh
    file like below:
    PRE_CLASSPATH="$DOMAIN_HOME/lib/antlr-2.7.5H3.jar"
    export PRE_CLASSPATH
    By now my application use the desired lib and Webservice work fine.
    But I wonder if this is a good solution, is there any other good practice to set CLASSPATH for this situation? setting PRE_CLASSPATH is correct point and having no affection to the whole domain
    in the case there are more application reside in the domain?
    Thank all.
    Edited by: user10407314 on Oct 30, 2008 9:56 PM
    Edited by: user10407314 on Oct 30, 2008 9:57 PM

  • How to secure webservice in weblogic server?

    Hi,
    How many ways to secure a webservice in weblogic server? and what is the purpose of SSL ?

    How to run JSP and EJB program using weblogic server

  • Error in  holder-of-key  : calling a secure webservice from weblogic instan

    Hi,
    I am getting following error . Can somebody decrypt this for me ?
    ava.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Failed to add Signature.] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Failed to add Signature.
         at services.SSOTestHelloWorld_Stub.hello(Unknown Source)
         at deloitte.iit.webservices.CallWebService.callService(CallWebService.java:31)
         at jsp_servlet.__clienttest._jspService(__clienttest.java:82)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Failed to add Signature.
         at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
         at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
         ... 18 more
    Caused by: weblogic.xml.crypto.wss.WSSecurityException: Failed to add Signature.
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processIntegrity(SecurityPolicyDriver.java:240)
         at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:74)
         at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
         at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
         at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
         ... 20 more

    Hi Stephen,
    Using a registry, for example UDDI [1], would be one solution. WLS has
    a complete UDDI implementation builtin [2] for this purpose.
    You are correct, you need to pass the service address location found in
    the <service> section of the WSDL.
    Hope this helps,
    Bruce
    [1]
    http://www.uddi.org/
    [2]
    http://e-docs.bea.com/wls/docs81/webserv/uddi.html
    Stephen Kurlow wrote:
    >
    I am not sure what I need to do to be able to call a remote webservice (runs on
    another weblogic server instance running on another machine in the same network)
    from within a webservice. I have 2 wsdl files and I have created webservice controls
    from them. I have successfully written code in the first webservice to instantiate
    the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
    are deployed to the same weblogic server instance. So i can see the params being
    marshalled and unmarshalled in the test browser.
    Now how do I install the 2nd webservice on another weblogic server instance and
    instruct the 1st web service to call the 2nd webservice residing on another weblogic
    server instance? I presume some kind of lookup (url?) is needed and is it via
    what is contained in the wsdl file?
    Thanks in advance,
    Stephen Kurlow

  • Problem faced deploying apache cxf restful webservice in weblogic 12c(12.1.3)

    Hi All,
    I am trying deploying my apache restful webservice in Weblogic12c application server and I am facing below issue:
    <Sep 9, 2014 2:56:52 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "Jersey" failed to preload on startup in Web application: "app.war". 
    com.sun.jersey.spi.inject.Errors$ErrorMessagesException
            at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
            at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
            at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:795)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:790)
            Truncated. see log file for complete stacktrace
    In my initial research I have found that with servlet version 3.0 in web.xml JAX-RS scanning is a key feature of Javaee 6. And weblogic uses jersey for it.
    Is there any way to tell weblogic to not look for Jersey jars that are already in its modules folder.
    Note: I have following weblogic.xml present in war file:
    <weblogic-web-app>
      <container-descriptor>
      <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
      </container-descriptor>
    </weblogic-web-app>
    Please suggest!!
    Thanks, Puneet.

    Hi All,
    I am trying deploying my apache restful webservice in Weblogic12c application server and I am facing below issue:
    <Sep 9, 2014 2:56:52 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "Jersey" failed to preload on startup in Web application: "app.war". 
    com.sun.jersey.spi.inject.Errors$ErrorMessagesException
            at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
            at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
            at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:795)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:790)
            Truncated. see log file for complete stacktrace
    In my initial research I have found that with servlet version 3.0 in web.xml JAX-RS scanning is a key feature of Javaee 6. And weblogic uses jersey for it.
    Is there any way to tell weblogic to not look for Jersey jars that are already in its modules folder.
    Note: I have following weblogic.xml present in war file:
    <weblogic-web-app>
      <container-descriptor>
      <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
      </container-descriptor>
    </weblogic-web-app>
    Please suggest!!
    Thanks, Puneet.

  • Getting following error while deploying my webservice on weblogic 10.3

    hi
    I am tring to deploy a webservice (spring + cxf ) in weblogic 10.3
    applicationContext.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
    http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    <!-- Scan for both Jersey Rest Annotations a -->
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
    <context:component-scan base-package="com.persistent.rest"/>
    <context:annotation-config />
    <jaxws:endpoint
    id="accountProcess"
    implementor="com.persistent.rest.GetAccountListImpl"
    address="/"
    bindingUri="http://apache.org/cxf/binding/http" >
    <jaxws:serviceFactory>
    <bean class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
    <property name="wrapped" value="false" />
    </bean>
    </jaxws:serviceFactory>
    </jaxws:endpoint>
    <bean>...........</bean>
    </beans>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>springCXFWeb</display-name>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>WEB-INF/applicationContext.xml</param-value>
    </context-param>
    <listener>
    <listener-class>
    org.springframework.web.context.ContextLoaderListener
    </listener-class>
    </listener>
    <servlet>
    <servlet-name>CXFServlet</servlet-name>
    <servlet-class>
    org.apache.cxf.transport.servlet.CXFServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Getting following error while deploying my webservice on weblogic 10.3
    <Dec 4, 2009 2:04:04 PM PST> <Error> <org.springframework.web.context.ContextLoader> <BEA-000000> <Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    Truncated. see log file for complete stacktrace
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    Truncated. see log file for complete stacktrace
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1259964185054' for task '2'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'springCXFApp'.>
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'springCXFApp'.>
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    thanks

    hi
    I am tring to deploy a webservice (spring + cxf ) in weblogic 10.3
    applicationContext.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
    http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    <!-- Scan for both Jersey Rest Annotations a -->
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
    <context:component-scan base-package="com.persistent.rest"/>
    <context:annotation-config />
    <jaxws:endpoint
    id="accountProcess"
    implementor="com.persistent.rest.GetAccountListImpl"
    address="/"
    bindingUri="http://apache.org/cxf/binding/http" >
    <jaxws:serviceFactory>
    <bean class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
    <property name="wrapped" value="false" />
    </bean>
    </jaxws:serviceFactory>
    </jaxws:endpoint>
    <bean>...........</bean>
    </beans>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>springCXFWeb</display-name>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>WEB-INF/applicationContext.xml</param-value>
    </context-param>
    <listener>
    <listener-class>
    org.springframework.web.context.ContextLoaderListener
    </listener-class>
    </listener>
    <servlet>
    <servlet-name>CXFServlet</servlet-name>
    <servlet-class>
    org.apache.cxf.transport.servlet.CXFServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    </web-app>
    Getting following error while deploying my webservice on weblogic 10.3
    <Dec 4, 2009 2:04:04 PM PST> <Error> <org.springframework.web.context.ContextLoader> <BEA-000000> <Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    Truncated. see log file for complete stacktrace
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource http://META-INF/cxf/cxf.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    Truncated. see log file for complete stacktrace
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class http://org.apache.cxf.wsdl11.WSDLManagerImpl: Constructor threw exception; nested exception is java.lang.InternalError: erroneous handlers
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1259964185054' for task '2'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    <Dec 4, 2009 2:04:04 PM PST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'springCXFApp'.>
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'springCXFApp'.>
    <Dec 4, 2009 2:04:04 PM PST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: erroneous handlers
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
    Truncated. see log file for complete stacktrace
    thanks

  • Using MySQL DB on Weblogic 10.3.2 for JMS Store and etc.

    Hi,
    I am planning to use MySQL DB w Weblogic 10.3.2 server.
    I am planning to use Persistent JMS Destinations and planning to use MySQL Datasource for JMS store.
    Can anyone please help me understand any serious issues or considerations of this combination?
    Thanks
    Sagar

    Hi,
    I am planning to use MySQL DB w Weblogic 10.3.2 server.
    I am planning to use Persistent JMS Destinations and planning to use MySQL Datasource for JMS store.
    Can anyone please help me understand any serious issues or considerations of this combination?
    Thanks
    Sagar

  • How can I use EJB component on Weblogic 8.1 server ?

    hi,dear sir:
    How can I use EJB component on Weblogic 8.1 server ?
    It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
    If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
    thank you...

    Hi,
    This forum is exclusively for Creator. please post this on appropriate forum
    regards
    CreatorTeam

  • Error in using tag library uri='weblogic.tld'

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

    Hmmm...
    I'm trying to config my userprofile by creating it in the tools application (myserver/tools/index.jsp),
    but when I try to access the Unified Profile Types I get an Error 500 Internal
    Server Error in my webbrowser. The weblogic.log prints out an errormessage that
    sounds something like this:
    ####<30-Aug-01 16:30:14 CEST> <Error> <HTTP> <Ast-WT01> <server01> <ExecuteThread:
    '14' for queue: 'default'> <system> <> <101020> <[WebAppServletContext(3530676,tools)]
    Servlet failed with Exception>
    weblogic.servlet.jsp.JspException: (line 24): Error in using tag library uri='weblogic.tld'
    prefix='wl': For tag 'repeat', cannot load extra info class 'weblogicx.jsp.tags.RepeatTagInfo'
    I'm running weblogic 6.0 and wlcs 3.5. I'm sure of that the tag libraries are
    correct and they are located under tools/web-inf.

  • Error while generating ear using ant script in weblogic workshop 10

    In my application I have to create a ear file which should have the war file inside.
    I have created the build.xml for both ear application and web application, workshop.xml using weblogic workshop option
    File->export->WorkshopAntScripts
    I have been using the following command to execute the build.xml in EARApp(ear application)
    set the environment variables by running
    D:\bea\wlserver_10.0\common\bin\commEnv.cmd
    then
    D:\Source_Code\EARApp>ant clean build archive -Dworkspace="D:\Source_Code"
    I am getting the following error,
    Buildfile: build.xml
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    [delete] Deleting 53 files from D:\Source_Code\WebApp\.apt_src
    [delete] Deleted 14 directories from D:\Source_Code\WebApp\.apt_src
    [delete] Deleting 218 files from D:\Source_Code\WebApp\build\classes
    [delete] Deleted 42 directories from D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\assembly\.src
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings, org.apache.be
    ehive.controls.system.jdbc.JdbcControl.ConnectionDataSource, org.apache.beehive.controls.system.jdbc
    .JdbcControl.SQL, com.bea.control.annotations.TransactionAttribute]
    [apt] 1 warning
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [javac] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    [delete] Deleting directory D:\Source_Code\EARApp\.staging
    [mkdir] Created dir: D:\Source_Code\EARApp\.staging
    [copy] Copying 7 files to D:\Source_Code\EARApp\.staging
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage.to.ear:
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    init.env:
    check.versions:
    init.typedefs:
    init:
    generated.root.init:
    assembly:
    [mkdir] Created dir: D:\Source_Code\WebApp\build\assembly\.src
    [assemble] Assembly failed - Control Assembly process failed
    [assemble] Caused by: info
    BUILD FAILED
    D:\Source_Code\EARApp\build.xml:189: The following error occurred while executing t
    his line:
    jar:file:/D:/bea/WLSERV%7e1.0/workshop/lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antl
    ib.xml:92: The following error occurred while executing this line:
    D:\Source_Code\EARApp\build.xml:201: The following error occurred while executing t
    his line:
    D:\Source_Code\WebApp\build.xml:351: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:177: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:424: Assembly failed.
    Some one help me solve this problem.
    Thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Consume Axis2 webservice in a JSP using Tomcat

    Hey,
    I desperately try to consume a Netbeans created Axis2 web service in a jsp.
    i am able to consume the web service in a Java test class as well as in j2me using the created stubs from WTK.
    But now I would like to consume the webservice in a jsp.
    First i tried to use the netbeans client generator (which does work out in a regular test class), As soon as i try to invoke the webservice in the jsp, i get an exception (i currently don't have access to the exact message, i will append that asap) . It stated, my part tag needed a type value (currently there's an element attribute included as i am using document style). I tried the same using a hello world class generated by netbeans using netbeans stubs...same error.
    Then I switched to java2wsdl, when using those stubs, i got another exception "axis2 webservice could not be generated".
    Then i tried using a soap call with the axis service class for preventing auto generated stubs. all of the 3 ways did work out in a java test class.
    But now i get the following exception:
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.test_jsp._jspService(test_jsp.java:102)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803).
    The thing is: i did include the common-logging.jar in the project lib and it seems to work out smoothly when compiling. but at runtime i always get the same exception.
    i also put the library in the tomcat lib folder (after that in the lib/common folder) - same result. i tried downloading a new jar. still no changes (all of those folder arse included in my classpath).
    then i included the logging jar in my java/lib/ext folder.
    After that a new jar was missing (mail.jar). but my axis2 engine doesn't run anymore (apparently some conflict with other libraries).
    Now i dunno what to do anymore. even the simpelst hrllo world web service doesn't work in jsp.
    If i tried to invoke non axis2 webservices in a jsp - it does work out. but that's not an option for me

    There is a folder for shared packages
    tomcat_root\lib; or
    tomcat_root\common
    also most versions have a lib or common folder for each webapp for packages that are not to be shared.
    tomcat_root\webapps\appname\web-inf\lib
    Agreed that it is strange to allow servlets to import from the classes foler but not JSPs. It should make no difference but it is convension to place single classes in the same folder as the app's directory and packages (especially jar's) in the lib directory.

Maybe you are looking for

  • 11i to R12 upgrade : Unable to merge patch 9179588:R12.AD.B with 9477107:R12.AD.B and patch 7461070:R12.AD.B.1

    Hello Sir, As per readme for Patch 9179588, I am trying to merge patch (9179588:R12.AD.B) with 9477107:R12.AD.B and R12.AD.B.1 (patch 7461070). When I run admrgpch without -admode option, admrgpch completes successfully. However, when I just add -adm

  • Using a Mac Pro keyboard with OS 9?

    I've acquired a couple of Pro Keyboards (model a1048) that come with the disclaimer that they require v10.2 or later. Well they actually sort of work with OS 9 - with the glaring exception of the CD Eject key. THAT key is totally non-functional which

  • Is 4:3 dead?

    Is there a rationale for doing projects in 4:3 anymore? As I begin work on my 2nd paid pro gig (yeah!), and am planning to advise the client to go 16:9. It won't matter either way in this case, but I am wondering about this in general terms. Maybe th

  • Unknown Error 1418 when restoring ipod

    I hope someone can help me fix my Ipod problem. I have the first edition of the U2 Ipod and when I was in Ireland it malfunctioned. I took it to an Apple Store today and they restored it to factory setting using a mac. Well I brought it home, I did w

  • Mass transfer for AUC to Fixed assets

    Hi, I would like to do a mass transfer from AUC assets to fixed assets. 900 new fixed assets have been created. However, the AUC settlement to 900 assets are very tedious. Are there any batch processing available for this ? Or can I use via LSMW ? Th