Deploying .WAR archive gives classNotFound:FacesServlet error

Hi all,
I am using ANT scripts to build a .war archive of an ADF project, I am then using the .war archive to manually deploy to a weblogic server.
However, when I do this, I get the following error message:
[09 October 2012 09:30:27 o'clock BST] Initiating deploy operation ...
[09 October 2012 09:30:27 o'clock BST] Validating deployment plan...
[09 October 2012 09:30:28 o'clock BST] Deployment plan validated.
[09 October 2012 09:30:28 o'clock BST] Archive: C:\MIDDLE~2\USER_P~1\domains\SOASUI~1\sysman\upload\deploy\otn\archive\otn.war
[09 October 2012 09:30:28 o'clock BST] Deployment plan: C:\MIDDLE~2\USER_P~1\domains\SOASUI~1\sysman\upload\deploy\otn\config\plan.xml
[09 October 2012 09:30:29 o'clock BST] [Deployer:149193]Operation 'deploy' on application 'otn' has failed on 'AdminServer'
[09 October 2012 09:30:29 o'clock BST] java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
[09 October 2012 09:30:29 o'clock BST] javax.faces.webapp.FacesServlet
[09 October 2012 09:30:29 o'clock BST] Deploy operation failed.
Can anyone offer a solution to this problem?
Thanks
Onkar

The problem was that the weblogic.xml specified a non-existent directory for "workingDir" parameter for jsp-descriptor.
          <jsp-descriptor>
          <jsp-param>
          <param-name>compileCommand</param-name>
          <param-value>javac</param-value>
          </jsp-param>
          <jsp-param>
          <param-name>workingDir</param-name>
          <param-value>d:\foo</param-value>
          </jsp-param>
          <jsp-param>
          <param-name>keepgenerated</param-name>
          <param-value>true</param-value>
          </jsp-param>
          </jsp-descriptor>
          please check your jsp-descriptor attribute.
          - Navaneeth

Similar Messages

  • Images and js files within a deployed war file are generating 404 errors.

    Greetings,
    I have an odd situation in that image files and js files that are part of a deployed war file are generating 404 (not found) errors when accessed via https but ARE found when accessed via http.
    Unfortunately we are required to use https.
    I have verified via jar -tf that the files are indeed part of the war file. So, it is not that they are missing as is evident when accessed via http. (they appear as expected)
    A work around is to create the sub directories under the document root, on the ohs, and populate the sub directories with the images and js files that were used as part of the war file build. While this works, it doesn't explain why they would generate a 404 error when referenced from within the war via https.
    The war file works correctly on our 10g installation.
    I also have a very simple deployed war file and it too seems to have an issue finding direcotries/files that are part of the war file when referenced via https but not http.
    We are using Oracle 11g OHS and using the WLS Admin Console to do the deploying. We also are using the OSSO for the performing the required authentication.
    I have an SR in with oracle and have been working with them but I thought I would post here too.
    Suggestions?
    Thanks in advance.
    Edited by: emmett on Jan 5, 2011 2:47 PM

    Don't crosspost. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5251627

  • Error on deploying war to Tomcat

    Hi,
    I am a new bie trying to develop a Web application.
    I have deployed a war to tomcat 5.0.25, when I try to access the ContextRoot (there is a default.jsp file in the war, that should be invoked on eneterinh the COntextRoot in the browser address bar) it gives me an error saying:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:519)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.io.FileNotFoundException: /usr/local/tomcat/work/Catalina/localhost/FTPSchedulerWeb/org/apache/jsp/default_jsp.java
         java.io.FileOutputStream.open(Native Method)
         java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         java.io.FileOutputStream.<init>(FileOutputStream.java:70)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)I developed the application using eclipse3.1 and created a WAR file using the same. Now I do not know if you can generate a WAR file using eclipse and deploy it on Tomcat5.0.25.
    Also, should I include the JDK 1.4 lib/jar files in the war file? Is that causing this error?
    Please help me. Thanks in advance.

    Hi,
    Thank you for your suggestion. your point about the folders could be right.
    Because for some reason, the folders org, org/apache, org/apache/grp under:
    /usr/local/tomcat/work/Catalina/localhost/FTPSchedulerWeb/
    were not getting created. And so we manually created them and attached them to the necessary group, to get proper file permissions.
    But my doubt still remains as to why those folders were not created. Well there is one point I want to ask here, in teh Tomcat server web.xml file, the following code is not present:
    <webapp>
    �����������
    ���.
    ���.
    <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>jsp</servlet-name>
            <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
            <servlet-name>jsp</servlet-name>
            <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    ����..
    ���.
    ���.
    </webapp>Could that be a possible reason as to why the server is unable to create those folders? Well, I do not know the actual reason. Please let me know what possibly could be the reason for this problem.
    Thanks a lot for your help!!

  • Error deploying WAR - timeout

    I developed an application in Jdev9i Rel.2(W2K) and tried to deploy WAR file on Oracle9iAS Rel.2 (Linux). I am getting the error
    "Failed to deploy the application. Failed to save changes to one or more instances..instance1.......... Message: The send operation has been waited too long and reached the specified timeout value in the debug log, increase timeout or check opmn connection"
    But my files were copied to applications directory, not to default-web-apps, so how to access it from Browser?
    After this, now my OC4J_home is down, when I try to start it, it gives oracle.sysman.emSDK.util.jdk.EMException. I restarted the server also.
    My Internet Directory is working. Is it related to memory problem? The OC4J_Portal which was working is also not starting up now.

    Reeya -- In general, deployment / EM problems associated with 9iAS will probably get better responses on the General iAS forum at:
    http://forums.oracle.com/forums/forum.jsp?id=466592
    You might want to post your query there.
    Thanks -- Jeff

  • Error while deploying war file using JRUN JMC

    Hi,
    I am getting "Deployment service failed to deploy war file" Error
    while trying to deploy a war file using JRUN Mgmt console.
    If anyone has any idea about it, please help.
    Thanks
    Jit

    Check the logs. There might be a detailed exception in it. My guess is that it might have something to do with the deployment descriptors.
    If you could post the deployment descriptors and the exception stack trace, it would be easier to figure out.

  • I need help installing my adobe premiere element 13. the soft ware is 3.5 GB and I have a 654.4GB space is this enought space to dowload the software. It appears the software is downloading , but when it gets to the end it gives me the error summary messa

    I need help installing my adobe premiere element 13. the soft ware is 3.5 GB and I have a 654.4GB space is this enought space to dowload the software. It appears the software is downloading , but when it gets to the end it gives me the error summary message. I have been on the phone for hours being transfered from from person to the next with no results.

    reesep
    This is not Adobe. Rather user to user. The Adobe Staff and PRE_help presence in this forum is undefined.
    The replies from here are not instantaneous. But, your fellow users all try to respond as timely as possible.
    What is your computer operating system?
    From where are you downloading Premiere Elements 13....direct from Adobe as the tryout or the purchased product? If the purchased product, do you now have a purchased serial number to go with the installation files?
    Where are you stopped in the installation....at the Sign In or before? Is the faulting module cited in any messages? What are the error messages?
    The usual questions:
    1. Are you working with the antivirus and firewall(s) disabled?
    2. Are you running the computer programs as administrator?
    3. Are you working with a pen and tablet device instead of mouse?
    4. Is your video card/graphics card up to date according to the web site of the manufacturer of the card?
    5. Are you installing the program to the default location on the Local Disc C (if Windows).
    Let us start here and then decide what next based on the details that you post. Subsequent troubleshooting may include:
    deletion of the Adobe Premiere Elements Prefs file and/or uninstall, free ccleaner run through, reinstall with antivirus and firewall(s) disabled.
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Error while deploying war

    While deploying war application into oc4j instance i got this eroor:
    Failed to deploy web application "banners". Failed to deploy web application "banners". . TaskMaster evaluate phase failed.
    Root Cause: org/apache/commons/logging/LogFactory
    Resolution: Check the related Adapter evaluate logic and base exception in the log file.. org/apache/commons/logging/LogFactory
    What does it mean? Thanx

    You probably want to post this question over in the OC4J forum or in one of the 9iAS forums. ODBC is a Windows C++ & VB client API, so it doesn't have a lot to do with the Oracle application server or OC4J.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Deploying war file on iplanet application server 6.5

    Hi ,
    We are trying to deploy WebObjects application on Iplanet Application server server 6.5.
    Steps we tried for deployment :
    1) War file generated by WebObjects.
    2) Started IPlanet Application server.
    3) Opened the War file in the deployment tool.
    4) Verified that the WAR file to be deployed using the verify option in the deployment tool(Verified successfully)
    5) We tried to save the archive, then it throws an error saying "
    "Invalid entry compressed size (expected 52 bytes but got 51 bytes)".
    We ignored this message and proceeded further by clicking on OK.
    6) Deployed the WAR file using the deploy option
    7) In the deploy message box, it diplays that the application was deployed successfully.
    Then we tried to access the application by trying the following url : " http://localhost/NASApp/<CONTEXT NAME>/WebObjects/<APPLICATION NAME>"
    (eg : http://localhost/NASApp/SampleApplication/WebObjects/SampleApplication.woa>)
    We are getting the error saying that " GXError". We are not sure whether the the above mentioned url is the correct way to access the application !
    What we think the problem in deployment is
    i) because of error while saving the WAR file (Invalid entry compressed size (expected 52 bytes but got 51 bytes)
    ii) URL not appropriate
    Other observations :
    We tried to deploy to deploy sample application on Iplanet Application server. All these sample applications are deployed properly without the above mentioned error message. All these application are accessed by typing following url : " http:localhost/NASApp/<CONTEXT NAME>/<APPLICATION NAME>". IN all the sample application, url contains "NASApp" . We are not sure what this stand for and maps to. What we assumed is that it maps to the the iplanet app document root i.e "installedroot/ias6/ias/App"
    The exception throw while saving the WAR file is " com.iplanet.ias.tools.buzz.util.ArchiveHandlerException"
    Has any body who has tried this can help us?
    Thanks,
    Raju and Venkatesh

    Hi,
    First of all the application you are trying is from a WebObjects application server. I don't know how they package the modules and what is the format/file structure. I just went to their site, though they say that the WebObjects applications can be deploy on any J2EE Application server but still how they package and how they write the xml descriptors is not known.
    Looking at your exception it seem that first it is something to do the war/jar archive file compression thing (as the deployment tool is not able to read the complete file) then comes the deployment descriptors.
    I tried to get a few sample application from their site but I couldn't fine any, it will be great help if you can provide a WebObjects sample app to me (mail it to [email protected]).
    Regarding the NASApp string in URL, it has nothing to do with document root of iAS and also installedroot/ias6/ias/APPS dir is not the document root of iPlanet app server, this is the place where it save/explodes all the archives (ear).
    See iPlanet App server don't have any HTTP daemon to listen to the HTTP requests, so it needs a web server with a plugin (web connector) to forward the HTTP requests meant for iAS, and this NASApp string in the URL is the key to that.
    All the URLs are first send to the iAS plugin (as configured in web server's obj.conf file) and plugin look for this NASApp string (configurable), if it is there in the URL then it converts the HTTP request and send it to iAS over a proprietary protocol (KCP), otherwise it gives the request as it is to web server to process it.
    The NASApp string is a iAS registry parameter which you can change any time. And generally the context root part of the URL is the war file name (by default). So the typical URL for any web application (MyWeb.war) will be:
    http://<host>:<port>/NASApp/MyWeb/<Servlet_name>.
    I don't know why that extension "*.woa" is there. So if you send me a sample war file, I will be able to try it out.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • Deploying Enterprise Archive into weblogic 10.3.4.0 application server

    Hi All,
    I am trying to deploy enterprise archive into web-logic application server. This ear contains two modules. web service module and web application module.
    This application was previously running on Apache tomcat server and now i am migrating to web-logic application server.
    I am getting following error when deploying to the web-logic application server. Below exception.
    For web service and web application, I am using Hibernate and Spring frameworks. Following are the dependencies of web service
    [INFO] ------------------------------------------------------------------------
    [INFO] Building WebServiceModule Maven Webapp 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ MavenWebAppModule ---
    [INFO] com.packt.maven:MavenWebAppModule:war:1.0-SNAPSHOT
    [INFO] +- com.packt.maven:BusinessLogicModule:jar:1.0-SNAPSHOT:compile
    [INFO] | +- com.packet.maven:DataPersistanceModule:jar:1.0-SNAPSHOT:compile
    [INFO] | \- com.packt.maven:DataModelModule:jar:1.0-SNAPSHOT:compile
    [INFO] +- com.packt.maven:WebServiceClientModule:jar:1.0-SNAPSHOT:compile
    [INFO] +- org.apache.struts:struts2-core:jar:2.1.8:compile
    [INFO] | +- com.opensymphony:xwork-core:jar:2.1.6:compile
    [INFO] | | \- org.springframework:spring-test:jar:2.5.6:compile
    [INFO] | +- org.freemarker:freemarker:jar:2.3.15:compile
    [INFO] | +- ognl:ognl:jar:2.7.3:compile
    [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
    [INFO] | \- commons-io:commons-io:jar:1.3.2:compile
    [INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.1.8:compile
    [INFO] | +- org.springframework:spring-beans:jar:2.5.6:compile
    [INFO] | +- org.springframework:spring-core:jar:2.5.6:compile
    [INFO] | \- org.springframework:spring-context:jar:2.5.6:compile
    [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
    [INFO] +- xml-apis:xml-apis:jar:1.0.b2:provided (scope not updated to compile)
    [INFO] +- javassist:javassist:jar:3.12.1.GA:compile
    [INFO] +- com.oracle:ojdbc6:jar:11.2.0:compile
    [INFO] +- org.springframework:spring:jar:2.5.6:compile
    [INFO] +- org.springframework:spring-web:jar:2.5.6:compile
    [INFO] +- org.hibernate:hibernate:jar:3.2.7.ga:compile
    [INFO] | +- net.sf.ehcache:ehcache:jar:1.2.3:compile
    [INFO] | +- javax.transaction:jta:jar:1.0.1B:compile
    [INFO] | \- asm:asm-attrs:jar:1.5.3:compile
    [INFO] +- dom4j:dom4j:jar:1.6.1:compile
    [INFO] +- commons-logging:commons-logging:jar:1.1.1:compile
    [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
    [INFO] +- cglib:cglib:jar:2.2:compile
    [INFO] +- antlr:antlr:jar:2.7.7:compile
    [INFO] +- asm:asm:jar:3.3:compile
    [INFO] +- javax.xml.soap:saaj-api:jar:1.3.3:compile
    [INFO] | \- javax.activation:activation:jar:1.1:compile
    [INFO] +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.4:compile
    [INFO] | \- org.jvnet:mimepull:jar:1.4:compile
    [INFO] \- junit:junit:jar:3.8.1:test (scope not updated to compile)
    [INFO]
    Following are the dependencies of maven web app module
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MavenWebAppModule Maven Webapp 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ WebServiceModule ---
    [INFO] com.packt.maven:WebServiceModule:war:1.0-SNAPSHOT
    [INFO] +- org.springframework:spring:jar:2.5.6:compile
    [INFO] +- org.springframework:spring-web:jar:2.5.6:compile
    [INFO] | +- org.springframework:spring-beans:jar:2.5.6:compile
    [INFO] | +- org.springframework:spring-context:jar:2.5.6:compile
    [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
    [INFO] | \- org.springframework:spring-core:jar:2.5.6:compile
    [INFO] +- xml-apis:xml-apis:jar:1.0.b2:provided (scope not updated to compile)
    [INFO] +- javax:javaee-api:jar:6.0:provided
    [INFO] +- junit:junit:jar:3.8.1:test (scope not updated to compile)
    [INFO] +- com.oracle:ojdbc6:jar:11.2.0:compile
    [INFO] +- org.hibernate:hibernate:jar:3.2.7.ga:compile
    [INFO] | +- net.sf.ehcache:ehcache:jar:1.2.3:compile
    [INFO] | +- javax.transaction:jta:jar:1.0.1B:compile
    [INFO] | \- asm:asm-attrs:jar:1.5.3:compile
    [INFO] +- dom4j:dom4j:jar:1.6.1:compile
    [INFO] +- commons-logging:commons-logging:jar:1.1.1:compile
    [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
    [INFO] +- cglib:cglib:jar:2.2:compile
    [INFO] +- antlr:antlr:jar:2.7.7:compile
    [INFO] +- com.sun.xml.ws:jaxws-rt:jar:2.2.3:compile
    [INFO] | +- javax.xml.ws:jaxws-api:jar:2.2.3:compile
    [INFO] | | +- javax.xml.bind:jaxb-api:jar:2.2.2:compile
    [INFO] | | \- org.glassfish:javax.annotation:jar:3.1-b35:compile
    [INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
    [INFO] | +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.8:compile
    [INFO] | +- com.sun.xml.stream.buffer:streambuffer:jar:1.2:compile
    [INFO] | +- org.codehaus.woodstox:wstx-asl:jar:3.2.1:compile
    [INFO] | | \- stax:stax-api:jar:1.0.1:compile
    [INFO] | +- org.jvnet.staxex:stax-ex:jar:1.4:compile
    [INFO] | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
    [INFO] | +- com.sun.org.apache.xml.internal:resolver:jar:20050927:compile
    [INFO] | +- org.jvnet:mimepull:jar:1.5:compile
    [INFO] | +- com.sun.xml.ws:policy:jar:2.2.2:compile
    [INFO] | | +- com.sun.xml.txw2:txw2:jar:20090102:compile
    [INFO] | | \- com.sun.istack:istack-commons-runtime:jar:2.2.1:compile
    [INFO] | +- org.glassfish.gmbal:gmbal-api-only:jar:3.1.0-b001:compile
    [INFO] | | \- org.glassfish.external:management-api:jar:3.0.0-b012:compile
    [INFO] | \- org.glassfish.ha:ha-api:jar:3.1.8:compile
    [INFO] +- asm:asm:jar:3.3:compile
    [INFO] \- org.jvnet.jax-ws-commons.spring:jaxws-spring:jar:1.8:compile
    [INFO] +- javax.servlet:servlet-api:jar:2.5:compile
    [INFO] +- org.apache.xbean:xbean-spring:jar:2.7:compile
    [INFO] +- javax.jws:jsr181-api:jar:1.0-MR1:compile
    [INFO] +- javax.xml.soap:saaj-api:jar:1.3:compile
    [INFO] +- com.sun.xml.stream:sjsxp:jar:1.0:compile
    [INFO] +- javax.annotation:jsr250-api:jar:1.0:compile
    [INFO] \- javax.activation:activation:jar:1.1:compile
    [INFO]
    In my weblogic application configuration i have provided following configuration to load java from my applications first. Could anybody help me on this issue. Thanks in advance for anyhelp
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application
         xmlns:wls="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 http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd">
         <!--weblogic-version:10.3.1 -->
         <wls:application-param>
              <wls:param-name>webapp.encoding.default</wls:param-name>
              <wls:param-value>UTF-8</wls:param-value>
         </wls:application-param>
         <wls:prefer-application-packages>
              <wls:package-name>antlr.*</wls:package-name>
         </wls:prefer-application-packages>
    </wls:weblogic-application>
    Exception.......
    SEVERE: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.sun.xml.ws.transport.http.servlet.SpringBinding#0' defined in ServletContext resourcepring/config/SpringBeans.xml]: Cannot create inner bean '(inner bean)' of type [org.jvnet.jax_ws_commons.spring.SpringService] while setting bean property 'service'; nested exceramework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.Linkageaint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class, javax/xml/datatype/Datahe class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exceptiogeError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class, jtatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
    Edited by: user8643895 on Apr 14, 2013 3:42 AM

    This forum is about iAS. For weblogic go to: WebLogic Server - General

  • Deploying war files to weblogic 10.3.4

    I have a weblogic domain 10.3.4 and a war file (smap.war). I can deploy this war file using weblogic console (10.3.4).
    However, I cannot using ant (wldeploy 11.1.1.4) to deploy this war file. It shows error as follow.
    This war file and weblogic domain is in the same machine.
    ------------------error---------------------------
    [wldeploy] Task 27 failed: [Deployer:149026]deploy application smap.war on AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    [wldeploy] problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/javaee' instead of 'description@http://www.w3.org/2001/XMLSchema-instance' here in element servlet@http://java.sun.com/xml/ns/javaee:<null>
    [wldeploy] problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/javaee' instead of 'display-name@http://www.w3.org/2001/XMLSchema-instance' here in element servlet@http://java.sun.com/xml/ns/javaee:<null>
    [wldeploy]      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
    [wldeploy]      at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
    ---------------------------build.xml------------------------
    <?xml version="1.0" encoding="UTF-8" ?>
    <!--Ant buildfile generated by Oracle JDeveloper-->
    <!--Generated Mar 11, 2011 3:52:31 PM-->
    <project default="init">
    <target name="init">
    <tstamp/>
    </target>
    <property name="wls.username" value="weblogic" />
    <property name="wls.password" value="welcome1" />
    <property name="wls.hostname" value="localhost" />
    <property name="wls.port" value="7001" />
    <property name="admin.server.name" value="AdminServer" />
    <property name="deploy.target" value="AdminServer" />
    <!-- Here you can specify Either ClusterName, IndividualServerName Like "ManagedOne" or comma Seperated List of Managed/AdminServer -->
    <property name="deploy.name" value="smap.war" />
    <property name="deploy.source" value="E:\SVN_Root\smap_Build" />
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="szmap" depends="init" >
    <war destfile="${deploy.source}\smap.war"
    webxml="${deploy.source}\smap\WebContent\WEB-INF\web.xml" >
    <fileset dir="${deploy.source}\smap\WebContent"/>
    <classes dir="${deploy.source}\smap\build\classes"/>
    </war>
    </target>
    <target name="deployX" depends="init">
    <echo message="27 deploy.source=${deploy.source}"/>
    <echo message="28 deploy.name=${deploy.name}"/>
    <wldeploy action="deploy"
    name="${deploy.name}"
    source="${deploy.source}\${deploy.name}"
    user="${wls.username}"
    nostage="true"
    password="${wls.password}"
    verbose="true"
    adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}"
    debug="true"
    />
    </target>
    <!-- Redeploying Applications -->
    <target name="redeploy">
    <wldeploy action="redeploy"
    name="${deploy.name}"
    user="${wls.username}"
    nostage="true"
    password="${wls.password}"
    verbose="true"
    adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}" />
    </target>
    <!-- Uneploying Applications -->
    <target name="undeployX">
    <wldeploy action="undeploy"
    name="szmap"
    failonerror="false"
    user="${wls.username}"
    password="${wls.password}"
    verbose="true"
    adminurl="t3://${wls.hostname}:${wls.port}" targets="${deploy.target}" />
    </target>
    <target name="all" depends="init, deployX"/>
    </project>

    In szmap.war\WEB-INF\lib, I can find spring-beans-2.0.8.jar, spring-context-2.0.8.jar, spring-core-2.0.8.jar, spring-web-2.0.8.jar.
    I change weblogic.xml as follows. Then, I get new errors.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd"
    xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <library-ref>
    <library-name>spring-beans-2.0.8.jar</library-name>
    </library-ref>
    <library-ref>
    <library-name>spring-context-2.0.8.jar</library-name>
    </library-ref>
    <library-ref>
    <library-name>spring-core-2.0.8.jar</library-name>
    </library-ref>
    <library-ref>
    <library-name>spring-web-2.0.8.jar</library-name>
    </library-ref>
    <library-ref>
    <library-name>cxf-2.2.5.jar</library-name>
    </library-ref>
    <library-ref>
    <library-name>wsdl4j-1.6.2.jar</library-name>
    </library-ref>
    </weblogic-web-app>
    ----------------------------error-------------------------------------
    Buildfile: E:\CI_Build\szmap\ANT\ANTszmap\ANT_szmap\build_szmap.xml
    init:
    deployX:
    [echo] 27 deploy.source=E:\SVN_Root\szmap_Build
    [echo] 28 deploy.name=szmap.war
    [wldeploy] weblogic.Deployer -debug -nostage -verbose -noexit -name szmap.war -source E:\SVN_Root\szmap_Build\szmap.war -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [wldeploy] weblogic.Deployer invoked with options: -debug -nostage -verbose -noexit -name szmap.war -source E:\SVN_Root\szmap_Build\szmap.war -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -deploy
    [wldeploy] [WebLogicDeploymentManagerImpl.<init>():115] : Constructing DeploymentManager for J2EE version V1_4 deployments
    [wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():158] : Connecting to admin server at localhost:7001, as user weblogic
    [wldeploy] [ServerConnectionImpl.getEnvironment():286] : setting environment
    [wldeploy] [ServerConnectionImpl.getEnvironment():289] : getting context using t3://localhost:7001
    [wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.domainruntime
    [wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime
    [wldeploy] [DomainManager.resetDomain():36] : Getting new domain
    [wldeploy] [DomainManager.resetDomain():39] : Using pending domain: true
    [wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@4406cef4
    [wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@4406cef4
    [wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@8429c19
    [wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@8429c19
    [wldeploy] [ServerConnectionImpl.initialize():169] : Connected to WLS domain: sunzmap_domain
    [wldeploy] [ServerConnectionImpl.init():159] : Initializing ServerConnection : [email protected]3969
    [wldeploy] [BasicOperation.dumpTmids():713] : Incoming tmids:
    [wldeploy] [BasicOperation.dumpTmids():715] : {Target=AdminServer, WebLogicTargetType=server, Name=szmap.war}, targeted=true
    [wldeploy] [BasicOperation.deriveAppName():141] : appname established as: szmap.war
    [wldeploy] <2011-3-15 下午03时48分03秒 CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, szmap.war [archive: E:\SVN_Root\szmap_Build\szmap.war], to AdminServer .>
    [wldeploy] [BasicOperation.dumpTmids():713] : Incoming tmids:
    [wldeploy] [BasicOperation.dumpTmids():715] : {Target=AdminServer, WebLogicTargetType=server, Name=szmap.war}, targeted=true
    [wldeploy] [BasicOperation.loadGeneralOptions():628] : Delete Files:false
    [wldeploy] Timeout :3600000
    [wldeploy] Targets:
    [wldeploy] AdminServer
    [wldeploy] ModuleTargets={}
    [wldeploy] SubModuleTargets={}
    [wldeploy] }
    [wldeploy] Files:
    [wldeploy] null
    [wldeploy] Deployment Plan: null
    [wldeploy] App root: C:\Users\ADMINI~1\AppData\Local\Temp\2\Administrator\.\config\deployments\szmap.war
    [wldeploy] App config: C:\Users\ADMINI~1\AppData\Local\Temp\2\Administrator\.\config\deployments\szmap.war\plan
    [wldeploy] Deployment Options: {isRetireGracefully=true,isGracefulProductionToAdmin=false,isGracefulIgnoreSessions=false,rmiGracePeriod=-1,retireTimeoutSecs=-1,undeployAllVersions=false,archiveVersion=null,planVersion=null,isLibrary=false,libSpecVersion=null,libImplVersion=null,stageMode=nostage,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=szmap.war,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0,deploymentPrincipalName=null,useExpiredLock=false}
    [wldeploy]
    [wldeploy] [BasicOperation.execute():445] : Initiating deploy operation for app, szmap.war, on targets:
    [wldeploy] [BasicOperation.execute():447] : AdminServer
    [wldeploy] Task 33 initiated: [Deployer:149026]deploy application szmap.war on AdminServer.
    [wldeploy] dumping Exception stack
    [wldeploy] Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
    [wldeploy]      at java.lang.Class.getDeclaredMethod(Class.java:1937)
    [wldeploy]      at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
    [wldeploy]      at $Proxy325.getElementType(Unknown Source)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
    [wldeploy]      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
    [wldeploy]      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
    [wldeploy]      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    [wldeploy]      at java.security.AccessController.doPrivileged(Native Method)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    [wldeploy]      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    [wldeploy]      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    [wldeploy]      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    [wldeploy]      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    [wldeploy]      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    [wldeploy]      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    [wldeploy]      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    [wldeploy]      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    [wldeploy]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [wldeploy]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    [wldeploy]      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    [wldeploy]      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    [wldeploy]      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    [wldeploy]      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    [wldeploy]      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    [wldeploy]      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    [wldeploy]      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    [wldeploy]      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    [wldeploy]      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    [wldeploy]      at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    [wldeploy]      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    [wldeploy]      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    [wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    [wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    [wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + szmap.war AdminServer
    [wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
    [wldeploy]      at java.lang.Class.getDeclaredMethod(Class.java:1937)
    [wldeploy]      at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
    [wldeploy]      at $Proxy325.getElementType(Unknown Source)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
    [wldeploy]      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
    [wldeploy]      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
    [wldeploy]      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
    [wldeploy]      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
    [wldeploy]      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    [wldeploy]      at java.security.AccessController.doPrivileged(Native Method)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    [wldeploy]      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    [wldeploy]      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    [wldeploy]      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    [wldeploy]      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    [wldeploy]      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    [wldeploy]      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    [wldeploy]      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    [wldeploy]      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    [wldeploy]      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    [wldeploy]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    [wldeploy]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    [wldeploy]      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    [wldeploy]      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    [wldeploy]      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    [wldeploy]      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    [wldeploy]      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    [wldeploy]      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    [wldeploy]      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    [wldeploy]      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    [wldeploy]      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    [wldeploy]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    [wldeploy]      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    [wldeploy]      at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    [wldeploy]      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    [wldeploy]      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    [wldeploy]      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    [wldeploy]      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    [wldeploy]      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    [wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    [wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    [wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    [wldeploy]
    [wldeploy]
    [wldeploy]
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    [wldeploy]      at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [wldeploy]      at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [wldeploy]      at weblogic.Deployer.run(Deployer.java:70)
    [wldeploy]      at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    [wldeploy]      at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    [wldeploy]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [wldeploy]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wldeploy]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wldeploy]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wldeploy]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [wldeploy]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [wldeploy]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [wldeploy]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [wldeploy]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [wldeploy]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [wldeploy]      at org.apache.tools.ant.Main.start(Main.java:179)
    [wldeploy]      at org.apache.tools.ant.Main.main(Main.java:268)
    [wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
    [wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
    [wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 33 failed: [Deployer:149026]deploy application szmap.war on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()
         at java.lang.Class.getDeclaredMethod(Class.java:1937)
         at org.apache.cxf.tools.common.ExtensionInvocationHandler.invoke(ExtensionInvocationHandler.java:41)
         at $Proxy325.getElementType(Unknown Source)
         at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.hasUsingAddressing(JaxWsEndpointImpl.java:201)
         at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.extractWsdlExtensibilities(JaxWsEndpointImpl.java:184)
         at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:174)
         at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:206)
         at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:165)
         at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
         at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
         at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
         at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
         at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
         at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
         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:597)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.Ev

  • Webapp as war-archive vs exploded inside EAR

    We have an application consisting of an ear-archive containing a webapp (.war or exploded) and an ejb (.jar). For this application we have had a few situations where the EJB is recompiled at WLS start only if the webapp consists of a war-archive and not an exploded war (even though the webapps are identical). We have however been unable to reproduce this consistently. Are there any known issues related to using an ear-archive containing an exploded war?
    As far as I'm aware the main reason not to deploy applications as exploded is to make sure that the deployed content cannot be modified once deployed. This is not an issue here as the exploded war is a part of an ear-archive. Is there any other reason not to use this application layout? Could it possibly cause any unexpected side-effects in production environments?

    Not working as in 404 error?
    Could be deploying under a different context (as opposed to the default/root
    context).
    Try /webAppName/index.jsp rather than /index.jsp, after replacing
    "webAppName" with the name of your web application.
    Bob
    "Mona Ramlawi" <[email protected]> wrote in message
    news:[email protected]..
    Hi all,
    I have my application working and running as exploded format.
    When I packaged it into a WAR and included it with an EAR along with the
    EJB JARS I have, it stopped running !
    I have the application correctly deployed.
    I can access some files under it.
    I have doubts that maybe it could be that some files are referencing
    others using relative paths.
    Should we replace these with absolute paths ?
    /mywebapp/myfolder/myfile.jsp instead of myfile.jsp ?
    help appreciated
    mona

  • Web Service cannot be Started when we deploy war file in Tomcat

    Hello every one,
    We made a webservice in Netbeans 6. and we created the war file
    and ist is workign fine with netbeans. when we tried to deploy to tomcat
    it is showing error as given below:
    **FAIL - Application at context path /WebApplication3 could not be started**
    please help me to sort out this problem as early as possible.
    Thanks in advance
    Vishnu

    Any one has any idea on this. I am stuck up with this. Help!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by pragashj:
    OS : Windows NT 4.0 SP 5
    OAS : 4.0.8.2
    Issue : Listner failed to start asking me to start OAS service first. But the OAS service is already started. When I tried starting the Listner service from Windows - Services (In control panel) still it failed. OAS Service though active does not show as active in the Service Control(This issue is listed in the Release note). The svwww.err gives oracle_adp_init returned ADI_FATALINIT.
    Any one had the same issue? How do I work around to get my Web Listner started?
    Thanks<HR></BLOCKQUOTE>
    null

  • Deploy war file to Sun Appserver 8.2

    Hi,
    I am trying to deploy my application to a Sun Appserver 8.2 (appl. uses mysql) , when I use remote deployment from the IDE the application runs fine on this server however when I export it as a WAR file I get the error message stated below. I am using exactly the same datasources as when I use remote deployment and I am using the sun-web.xml and web.xml descriptor files from the remote deployment. Anybody got an idea what is wrong?
    [#|2006-06-07T02:52:29.237+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=31;|StandardWrappe
    rValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.sql.SQLException
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:225)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
    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.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: javax.faces.FacesException: org.apache.jasper.JasperException: java.sql.SQLException
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:331)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
    ... 41 more
    Caused by: org.apache.jasper.JasperException: java.sql.SQLException
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor456.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
    ... 43 more

    Hi!
    First of all, you don't need to change something in web.xml. This file is exported into WAR file by Creator 2 IDE. So, don't replace web.xml after exporting of WAR.
    Also you can try to change version of DTD in sun-web.xml to one older (to sun-web-app_2_3-0.dtd, for example).
    Or could you post your sun-web.xml?
    Thanks,
    Roman.

  • Deploying War File in OC4J

    Hi,
    I am a new bee to OC4J. I tried to deploy a war file OC4J server, which comes along with Jdeveloper release 10.1.3.
    Steps which I followed.
    1. Copied the war file to <10g-Jdev>\j2ee\home\applications\
    2. added <web-app application="testapp" name="testapp" root="/testapp" access-log="false"/> in <10g-Jdev>\j2ee\home\config\default-web-site.xml
    3. added <application name="testapp" path="../../home/applications/tesapp.war" parent="system" start="true" /> in <10g-Jdev>\j2ee\home\config\server.xml
    4. started the 0c4j using <10g-Jdev>\jdk\start_oc4j.bat
    I got following log
    Starting OC4J with command: "..\..\jdk\bin\java.exe" -jar oc4j.jar
    06/02/15 14:53:13 [SEVERE]: Error instantiating application at file:/X:/10g/j2ee/home/applications/webapp1.war: Unable to get ApplicationConfig for testapp : Unable to find/read file META-INF/application.xml in X:\10g\j2ee\home\applications\webapp1.war archive (META-INF/application.xml)
    2006-02-15 14:53:32.609 NOTIFICATION JMS Router is initiating ...
    2006-02-15 14:53:35.906 ERROR J2EE HTTP0004 Internal error raised tyring to instantiate web-application: testapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: testapp does not exist. Error creating Web application: testapp
    06/02/15 14:53:35 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    06/02/15 14:58:03 Shutting down...
    Can anyone explain me wat should i do for deploying successfully.
    Thanks,
    Siva

    Hello,
    As a word of caution I would strongly recommend that you use proper deploy techniques when deploying WAR/EARs to OC4J (or any J2EE container). You should not be copying files into the applications directory and modifying xml files (even though it might be neccessary at times).
    Please try to follow good J2EE techiniques and write ANT scripts or batch files to do your deployment, its easy to do and reusable. Please also review the deployment guide to familiarise yourself with OC4J deployment tools.
    Thanks,
    Deepak

  • [b]problem with deploy .war file

    Hi
    I am trying to deploy a war file. I have Oracle 9iAS (release 2) in Sun Solaris server.
    I am using the enterprise manager gui to try to deploy a .war file as follows.
    My .war file has the structure: folder META-INF, folder WEB-INF, and other folders. THe folder
    WEB-INF has the file web.xml and the folder classes.
    I connect to enterprise manager at port 1810 and go to the OC4J home page and under
    deployed applications, I choose under applications "Deploy WAR file". It takes me to the next page
    where I enter the war file (pippo.war)
    Application Name: pippo
    Map to URL: /pippo
    THe only choice I have then is to click the Deploy button. I then get the response
    "Failed to deploy web application "pippo". Jar file: /var/tmp/jar29056.tmp is missing its standard xml descriptor located at WEB-INF/web.xml"
    In that path there is not that file, there are 2 folders, one with the file .war and one with the file .ear
    I have no idea what this error message means.
    The documentation for deploying servlets in 9ias using enterprise manager makes no mention of this.
    Thanks,
    Marcella

    Marcella,
    Are you using Oracle9iAS 9.0.3 ?
    Does this happen with any war file ?
    Are you able to deploy a ear file without problems ?
    Can you please test if you can deploy your war in a
    OC4J standalone environment ? steps from the general faq available at http://otn.oracle.com/tech/java/oc4j
    How can I deploy a WAR file to OC4J standalone ?
    The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.
    You can manually deploy a WAR file to OC4J However following are the steps involved in deploying a WAR file in OC4J.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.
    thanks,
    -Prasad

Maybe you are looking for