Problem in deploying WAR file into OC4J

I have tried deploying a .war file into oc4j (orion) application server using - Deploying Upon OC4J Server Startup option
I have placed the intelliview.war into /applications directory
modified server.xml & web-site.xml
server.xml added
<application name="intelliview" path="../applications/iviewserver.war" auto-start="true" />
web-site.xml added
<web-app application="intelliview" name="iviewserver" root="/iviewserver" />
Here is the error message,
Error instantiating application at file ....applications/intelliview.war
Unable to read/find assembly info (META-INF/application.xml)
Any idea?
Thanks

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" />
Hope this helps
-Debu Panda
Oracle

Similar Messages

  • Problem in Deploying war file in oc4j

    I have developed an application using struts and packaged in war file. It runs ok in tomcat server. I want to deploy it in embedded oc4j server of E-Business Suite. Please give me directions................

    AFAIK, EBS 11.5.10 doesn't come with OC4J. It uses Apache Jserv which is Servlet 2.0 and with a special JSP engine. This doesn't support J2EE WAR files. It might support Struts but I'd not bet on that.
    Having said that, you need to get an OC4J standalone version installed (minimum) and started by the standard EBS startup scripts.
    Once this is done and if your WAR is self-contained, ie contains all the libraries, it is quite easy. Just deploy it using the command-line tools (all versions) or the web admin interface of OC4J (from 10.1.3).
    Only thing you have to change is the URL in the OAF page to point to the right server...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deploying WAR file into OC4J 9.0.3 (IAS)

    Hello,
    I try to deploy my WAR file using following command:
    dcmctl redeployApplication -v -d -f myWAR.war -a myApp -rc /test/myApp -co test
    When the deployment is finished I check default-web-site.xml for the "test" component and I a new line there:
    &lt;web-app application="myApp" name="myApp" root="/test/myApp"/&gt;
    But in the documentation I found that the "name" attribute of the "web-app" tag should contain the name of the WAR file. It is a problem because when I try to deploy another WAR file using the same application name it overwrites "&lt;web-app&gt;" tag. In principal, can I deploy several WAR files using the same application name?
    Thanks in advance,
    Iouri.

    Please look at the following thread in this forum that describes the steps : Re: Query takes large time to execute
    regards
    Debu panda
    Oracle

  • Got this error after deploying ear file into OC4J server.

    Hello Frnsz,
    Can any one help to resolve the following error :)
    Got this error after deploying ear file into OC4J server.
    2008-06-04 14:57:58.551 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/pager-taglib.tld
    2008-06-04 14:57:58.566 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:57:58.566 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-bean.tld
    2008-06-04 14:57:58.598 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:57:58.598 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-html.tld
    2008-06-04 14:57:58.629 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:57:58.629 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-logic.tld
    2008-06-04 14:57:58.660 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:57:58.660 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-nested.tld
    2008-06-04 14:57:58.691 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:57:58.691 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-tiles.tld
    2008-06-04 14:57:58.723 NOTIFICATION Binding web application(s) to site default-web-site ends...
    2008-06-04 14:57:58.723 NOTIFICATION Application Deployer for MyEarProject COMPLETES. Operation time: 3422 msecs
    2008-06-04 14:58:04.895 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.910 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.926 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.942 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.957 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
    2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
    2008-06-04 14:58:05.020 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.jsp.parse.JspParseException: /WEB-INF/jsp/login.jsp: Line # 2, <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
    Error: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
    Cheers,
    Cap

    Cross posted in correct forum
    [http://forum.java.sun.com/thread.jspa?threadID=5302192]

  • Problem in deploying war file in weblogic application server 10

    Hi
              Thank you for reading my post.
              We are trying to deploy our application into weblogic but problem is that weblogic return an error like following one when we try to deploy the application.
              I should tell you that the following log was shown in a not well formatted way and i format it manually.
                        [HTTP:101216]Servlet: "com.wira.webservices.int.Wsti" failed to preload on startup in Web application: "wira.war". class:
              com.wira.webservices.int.jaxws.RequestResponse could not be found at
              com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:272) at
              com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:566) at
              com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:513) at
              com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:358) at
              com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:245) at
              com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:229) at
              com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:161) at
              com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:291) at
              com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:315) at
              weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:125) at
              weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64) at
              javax.servlet.GenericServlet.init(GenericServlet.java:241) at
              weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282) at
              weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at
              weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source) at
              weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63) at
              weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at
              weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504) at
              weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1830) at
              weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1807) at
              weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1727) at
              weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890) at
              weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948) at
               weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353) at
              weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at
              weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at
              weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at
              weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at
              weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at
              weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at
              weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
                        I should say you that we do not have a package and class like: com.wira.webservices.bpel.jaxws.RequestResponse and it looks like WLS is mistaken about this.
              Indeed this application works fine on Sun java application server 9 (java ee 5 certified). Can you please tell me why does it happens?
              here is source code of Wsti class
                        @WebService()
              public class Wsti {
                  @WebMethod(operationName="requestResponse")
                  public String requestResponse(@WebParam(name="request") String request) {
                      return ReflectionManager.call(WstiImp.class, request);
                                            for reflection we used standard JDK reflection stuff.
              and that call method call a method identified in request from WstiImp class.
              Thanks

    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" />
    Hope this helps
    -Debu Panda
    Oracle

  • 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

  • Problem in deploying war file to weblogicportlet

    Hi,
    while running build file of portletpreparer tool to create .portlet files from the war.
    The build file extracts war file into tempDir and its raises null pointer exception when it runs "com.bea.task.PreparePortlets" class.
    code is :
    <taskdef name="preparePortlets" classname="com.bea.task.PreparePortlets" classpath="classes" classpathref="class.path"/>
    <property name="tempDir" value="tempDir"/>
    <target name="clean">
    <delete dir="${tempDir}"/>
    </target>
    <target name="extractWar" depends="clean">
    <mkdir dir="${tempDir}"/>
    <unwar src="${war.file}" dest="${tempDir}"/>
    <preparePortlets tempDir="${tempDir}" portletDir="${tempDir}/portlets"/>
    </target>
    Running the above build also fails for DeployingJavaPortlets.zip obtained from URL
    http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html download link.
    If any one knows help me.

    Hi,
    while running build file of portletpreparer tool to create .portlet files from the war.
    The build file extracts war file into tempDir and its raises null pointer exception when it runs "com.bea.task.PreparePortlets" class.
    code is :
    <taskdef name="preparePortlets" classname="com.bea.task.PreparePortlets" classpath="classes" classpathref="class.path"/>
    <property name="tempDir" value="tempDir"/>
    <target name="clean">
    <delete dir="${tempDir}"/>
    </target>
    <target name="extractWar" depends="clean">
    <mkdir dir="${tempDir}"/>
    <unwar src="${war.file}" dest="${tempDir}"/>
    <preparePortlets tempDir="${tempDir}" portletDir="${tempDir}/portlets"/>
    </target>
    Running the above build also fails for DeployingJavaPortlets.zip obtained from URL
    http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html download link.
    If any one knows help me.

  • Deploy war file in oc4j 11110 preview

    hi
    i created a simple project in jdev11.
    with the help of the reply i got from the previous post i created a WAR file of the project.
    Now im trying to deploy it using oc4j 11110 preview stand alone server.
    the steps i followed are.
    1. using the command oc4j -start, i could start the server and i got the Welcome page.
    2. with the help of the link http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    i installed the adf runtime libraries as it is said in the link and also made necessary changes in the server.xml file
    3. Then created a website as said in the in the form <websitename>-web-site.xml (like default-web-site.xml)and said its path in server.xml file
    4. then i deployied the war file in command prompt according to the command said in Read me file in the oc4j 11110 preview.and the message was shown in the command prompt that the application was deployed successfully
    5. i started the application. and the message was shown in the command prompt that the application was started successfully
    6. then restarted the oc4j server
    now the problem is that im not getting the page.its showing 404 page not found error in the browser.
    but there is no error show in the log file or in the command prompt.
    Can anyone help me with this.
    i tried deploying a war created using eclipse in the same way which is uising jdev10 components.and i could it and run it successfully.
    plz help me

    I've one question about this. I do all above things without problems and my application runs in remote machine well. But some compilation errors apears in server log, and I think that perhaps is because I can't found the following libraries:
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-client.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-share.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\bc4jwizard.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\mod-bc4jimdomains.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\adfrcutils.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\connmbean.jar %OC4JHOME%\BC4J\lib
    And I can't copy this libraries to server. Anyone know where I can found it?
    Thanks
    Westh

  • Getting an error while deploying war file into weblogic serve

    Hi All,
    We have build a sample war file from JDeveloper11.1.1.6.0 tool (which is java based web service).
    And we are trying to deploy into the WebLogic(10.3.6) Server using Ant scripts(apache-ant-1.8.4) from command prompt.
    While doing this getting an bellow error :
    [wldeploy] Task 0 initiated: [Deployer:149026]deploy application ViewController
    on AdminServer.
    [wldeploy] Task 0 failed: [Deployer:149026]deploy application ViewController on
    AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + ViewController AdminServer
    BUILD FAILED
    D:\JDeveloper_Practice\otn\otnapp\ViewController\deploy\build.xml:50: weblogic.D
    eployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException:
    Task 0 failed: [Deployer:149026]deploy application ViewController on AdminServe
    r.
    Target state: deploy failed on Server AdminServer
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
    Could you please help me on this, if anyone know the solution.
    Thanks & Regards,
    Ramesh.

    Hi Ramesh,
    Try to include faces jars with in your classpath.
    It talk about the " java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet"
    you check for this blog which help to say about this issue using JDev.
    http://andrejusb.blogspot.in/2009/10/how-to-solve-javalangclassnotfoundexcep.html
    Regards,
    Kal

  • Error when deploying war file into application server

    I wrote a web service in java using RAD and managed to check it using a web service client with no errors.
    However, after creating a war file and tried to deploy this into the Sun application server, the following can be seen at the application server console:
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception ; requested operation cannot be completed Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    In the server.log file, the following appears:
    loyment|_ThreadID=13;|DPL5035:Error while running ejbc
    com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- j axrpc compilation exception
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
    at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
    at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
    at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
    at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
    at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
    at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
    at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]
    [#|2007-11-14T11:21:10.083+0930|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.tools.deploy ment|_ThreadID=13;|Total Deployment Time: 14145 msec, Total EJB Compiler Module Time: 0 msec, Po rtion spent EJB Compiling: 0%|#]
    [#|2007-11-14T11:21:10.116+0930|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.tools.depl oyment|_ThreadID=13;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
    at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
    at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
    at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
    at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
    at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
    at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
    at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
    at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]

    I got a similar error deploying to Weblogic with JBuilder 6 and it proved to be
    the Manifest.mf file inside war, which is very sensitive to CLASSPATH entry. Finally
    I used the file generated by JBuilder and it worked ...
    Stefan
    Frank Sun <[email protected]> wrote:
    Hi, this is Frank.
    I have a war file and want to deploy it. but somehow I got java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1
    error
    Would anyone please help me?
    This war file is able to be deplyed using Tomcat 4.0.3.
    Please help.

  • Problem in deploying war file

    Hi,
    I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
    a jar file containing an ejb. I would like to deploy a war file which web.xml
    has an <ejb-ref> element referencing a session bean contained in the jar previously
    deployed.
    I have the following error:
    Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
    environment - with nested exception:
    [weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
    an ejb-link or jndi-name]
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    My configuration files are:
    weblogic-ejb-jar.xml
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <jndi-name>PSSCLdapUserEJB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ejb-jar.xml
    <ejb-jar>
    <display-name>Ldap User</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    <ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <ejb-client-jar>LDAPUSER</ejb-client-jar>
    </ejb-jar>
    web.xml
    <web-app>
    <ejb-ref>
    <ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    </ejb-ref>
    </web-app>
    weblogic.xml
    <weblogic-web-app>
         <ejb-reference-description>
         <ejb-ref-name>
         ejb/PSSCLdapUserEJB
         </ejb-ref-name>
         <jndi-name>
         PSSCLdapUserEJB
         </jndi-name>
         </ejb-reference-description>
    </weblogic-web-app>
    Configuration files seems correct to me, but the deployment of the war is not
    working..
    Does someone have an idea of what is the problem?
    Thanks in advance,
    Giuseppe

    Hi,
    I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
    a jar file containing an ejb. I would like to deploy a war file which web.xml
    has an <ejb-ref> element referencing a session bean contained in the jar previously
    deployed.
    I have the following error:
    Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
    environment - with nested exception:
    [weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
    an ejb-link or jndi-name]
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    My configuration files are:
    weblogic-ejb-jar.xml
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <jndi-name>PSSCLdapUserEJB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ejb-jar.xml
    <ejb-jar>
    <display-name>Ldap User</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    <ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <ejb-client-jar>LDAPUSER</ejb-client-jar>
    </ejb-jar>
    web.xml
    <web-app>
    <ejb-ref>
    <ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    </ejb-ref>
    </web-app>
    weblogic.xml
    <weblogic-web-app>
         <ejb-reference-description>
         <ejb-ref-name>
         ejb/PSSCLdapUserEJB
         </ejb-ref-name>
         <jndi-name>
         PSSCLdapUserEJB
         </jndi-name>
         </ejb-reference-description>
    </weblogic-web-app>
    Configuration files seems correct to me, but the deployment of the war is not
    working..
    Does someone have an idea of what is the problem?
    Thanks in advance,
    Giuseppe

  • Installing a WAR file into oc4j.9.0.3

    After finding an article on this(http://technet.oracle.com/products/ias/daily/sept12.html), I edited the following 2 xml files to try it:
    1. added a web-module element into the config/application.xml file.
    2. added a web-app element into the config/http-web-site.xml file.
    However I get the following error in my browser on going to the url of the web app.
    "Error instantiating web-application
    No application named 'mywebapp' found in the server".
    So what am I missing here? the docs either show how to deploy an ear file or refer to "Enterprise Manager" which is part of the full 9iAS.
    any help appreciated,
    cheers,
    Pak

    Please look at the following thread in this forum that describes the steps : Re: Query takes large time to execute
    regards
    Debu panda
    Oracle

  • How to deploy jar file into oc4j

    Hi,
    I am new to jdeveloper.
    I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
    But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
    How to overcome this in jdeveloper?
    Thanfully,
    Satish KC.

    I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
    However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deploying Java Web Application (WAR-File) into a cluster environment

    Hi,
    we have a web application which has to read from and write to the file system.
    Since a short time we have a cluster environment (2 parallel servers) and since thisa time we have the problem, that files are worked double in the cluster. The application is working on both servers now and so we have this problem.
    Does anybody know how we have to deploy the application correctly in a cluster environment or do we have to change anything in our source code of the application?
    I didn't find any documentation about this.
    At the moment we have deployed the application on one of the two servers only, but I think there must be a better way to solve this problem.
    Thanks for your replies.
    Regards
    Thorsten

    Hi,
    I think first you need to wrap it into an EAR file, then you can deploy it.
    As far as I know standalone deployment of WAR is deprecated as of 640.
    similar threads:
    How to deploy .war on NWDI
    Deploying an existing WAR file into the Portal
    Hopefully this tutorial also gives some idea:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Regards,
    Ervin

Maybe you are looking for