J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"

Hi ,
When I try to deploy using admin console i get the following error msg.
J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"
The war file has web.xml.
Can some give me the reason for the above error.
LOG content:
weblogic.management.ApplicationException: [J2EE:160043]Missing deployment descriptor
"WEB-INF/web.xml" at "C:\bea8\user_projects\domains\eConnect\applications\myEconnect.war"
     at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:729)
     at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:470)
     at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:833)
     at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:63)
     at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1499)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1490)
     at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:186)
     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:324)
     at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
     at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
     at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
     at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
     at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
     at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
     at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1064)
     at weblogic.management.console.actions.mbean.WebAppComponentDeployAction.prePerform(WebAppComponentDeployAction.java:141)
     at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(DoMBeanWizardAction.java:215)
     at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
     at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

You'll have to at least show me the out contents of that WAR file.
-- Rob
Sowjanya wrote:
Suppose the directory structure of the appl is c:\myroot\webapp\...
then we need to go to webapp and then build the war file.
C:\myroot\webapp>jar -cvf abc.war *
then copy the war file and paste it in applicaitons folder.
"sowjanya" <[email protected]> wrote:
Hi ,
When I try to deploy using admin console i get the following error msg.
J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"
The war file has web.xml.
Can some give me the reason for the above error.
LOG content:
weblogic.management.ApplicationException: [J2EE:160043]Missing deployment
descriptor
"WEB-INF/web.xml" at "C:\bea8\user_projects\domains\eConnect\applications\myEconnect.war"
     at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:729)
     at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:470)
     at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:833)
     at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:63)
     at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1499)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1490)
     at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:186)
     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:324)
     at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
     at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
     at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
     at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
     at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
     at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
     at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
     at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1064)
     at weblogic.management.console.actions.mbean.WebAppComponentDeployAction.prePerform(WebAppComponentDeployAction.java:141)
     at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(DoMBeanWizardAction.java:215)
     at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
     at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Similar Messages

  • ApplicationException: [J2EE:160043]Missing deployment descriptor

    <Sep 20, 2004 9:38:19 AM EDT> <Error> <Deployer> <BEA-149027> <Unable to activat
    e application, BillingDepot, from source, C:\bea\weblogic81\server\bin\.\myserve
    r\upload\BillingDepot\BillingDepot.war. Reason: [J2EE:160043]Missing deployment
    descriptor "WEB-INF/web.xml" at "C:\bea\weblogic81\server\bin\.\myserver\upload\
    BillingDepot\BillingDepot.war">
    Got this exception during war file deployment, here's war file content :
    C:\Documents and Settings\admin>c:\jdk1.4.2_04\bin\jar tvf C:\bea\weblogic81\
    server\bin\.\myserver\upload\BillingDepot\BillingDepot.war
    342 Mon Sep 20 09:38:10 EDT 2004 META-INF/MANIFEST.MF
    9 Mon Sep 20 09:38:12 EDT 2004 /index.htm
    9 Mon Sep 20 09:38:12 EDT 2004 /index.html
    45386 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/activation.jar
    1235721 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/axis.jar
    958352 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/bcprov-jdk14-118.jar
    71442 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/commons-discovery.jar
    31605 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/commons-logging.jar
    115060 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/ipdr.jar
    35759 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/jaxrpc.jar
    352668 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/log4j-1.2.8.jar
    276098 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/mail.jar
    18402 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/saaj.jar
    113853 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/wsdl4j.jar
    906248 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/xalan.jar
    1728861 Mon Sep 20 09:38:12 EDT 2004 /WEB-INF/lib/xercesImpl.jar
    108484 Mon Sep 20 09:38:14 EDT 2004 /WEB-INF/lib/xml-apis.jar
    131919 Mon Sep 20 09:38:14 EDT 2004 /WEB-INF/lib/xmlParserAPIs.jar
    354491 Mon Sep 20 09:38:14 EDT 2004 /WEB-INF/lib/xmlsec.jar
    9492 Mon Sep 20 09:38:14 EDT 2004 /WEB-INF/server-config.wsdd
    4000 Mon Sep 20 09:38:14 EDT 2004 /WEB-INF/web.xml
    What can be possibly wrong with the file ? BTW, deployed fine on Tomcat.

    Hi,
    Please check if the JRE being used is for Java 1.3 or 1.4.
    How are you deploying the application? Using weblogic.Deployer or through the admin console? If the former then ensure that your classpath and path refer to the JDK 1.4 files/folder.
    This is what comes to mymind at the moment, do try and see if this works.
    Regards,
    Rommel.

  • Problem with Missing deployment descriptor [J2EE:160043]

    Hi,
    I am having a problem deploying an *.ear into weblogic 8.1. I get the error
    J2EE:160043]Missing deployment descriptor "META-INF/application.xml" at "C:\bea\weblogic81\samples\domains\examples\applications\ejb20_dataLoadMgr.ear"
    even though the application.xml file is in the *.ear file. This *.ear file is
    built using the following
    ant script:
    Note: I am integrating a Message Driven EJB with Documentum Content Server
    DFC API calls (3rd party jars)
    Thanks, Craig
    <project name="ejb20-message" default="all" basedir=".">
         <!-- set global properties for this build -->
         <property environment="env"/>
         <property file="../../../examples.properties"/>
         <property name="build.compiler" value="${compiler}"/>
         <property name="source" value="."/>
         <property name="build" value="${source}/build"/>
         <property name="dist" value="${source}/dist"/>
         <property name="dummy" value="${source}/dummy"/>
         <!--
    <target name="all" depends="clean, init, compile_ejb, jar.ejb, appc, ear_app,
    -->
         <target name="all" depends="clean, init, compile_ejb, jar.ejb, appc, ear_app3"/>
         <!-- compile_client"/> -->
         <target name="init">
              <!-- Create the time stamp -->
              <tstamp/>
              <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
              <mkdir dir="${build}"/>
              <mkdir dir="${build}/META-INF"/>
              <mkdir dir="${dist}"/>
              <copy todir="${build}/META-INF">
                   <fileset dir="${source}">
                        <include name="*.xml"/>
                        <exclude name="build.xml"/>
                        <exclude name="application.xml"/>
                   </fileset>
              </copy>
              <!-- Changed to move application.xml into ${dist}/meta-inf C. Ahtye
    <copy todir="${dist}">
    <fileset dir="${source}">
    <include name="application.xml"/>
    </fileset>
    </copy>
    -->
              <copy todir="${dist}/META-INF">
                   <fileset dir="${source}">
                        <include name="application.xml"/>
                   </fileset>
              </copy>
              <!--<copy todir="${dist}">
    <fileset dir="${source}">
    <include name="dfc.properties"/>
    </fileset>
    </copy>-->
         </target>
         <!-- Compile ejb classes into the build directory (jar preparation) -->
         <target name="compile_ejb">
              <javac srcdir="${source}" destdir="${build}" includes="DataLoadMgrBean.java"
    excludes="DSSCommand.java,GetDSSCommand.java,ImportXMLHelper.java" classpath="dfc.jar"/>
         </target>
         <!-- Update ejb jar file or create it if it doesn't exist, including XML
    deployment descriptors -->
         <target name="jar.ejb" depends="compile_ejb">
              <jar jarfile="${dist}/ejb20_dataLoadMgr.jar" basedir="${build}" update="yes">
    </jar>
         </target>
         <target name="appc" depends="jar.ejb">
              <wlappc debug="${debug}" source="${dist}/ejb20_dataLoadMgr.jar" classpath="dfc.jar"
    verbose="true"/>
         </target>
         <!-- Put the ejb into an ear, to be deployed from the ${apps.dir} dir -->
         <target name="ear_app" depends="jar.ejb">
              <ear earfile="${apps.dir}/ejb20_dataLoadMgr.ear" appxml="${source}/application.xml">
                   <!--<fileset dir="${dist}/APP-INF/lib" includes="dfc.jar"/>
    <fileset dir="${dist}/APP-INF/lib" includes="dfcbase.jar"/>-->
                   <fileset dir="${dist}" includes="ejb20_dataLoadMgr.jar"/>
              </ear>
         </target>
         <!-- Need to place dfc.jar, dfcbase.jar, log4j.jar into {source} and then deploy
    to {dist} -->
         <target name="ear_app3" depends="jar.ejb">
              <jar destfile="${apps.dir}/ejb20_dataLoadMgr.ear" basedir="${dist}"/>
         </target>
         <target name="ear_app2" depends="jar.ejb">
              <wlpackage toFile="${apps.dir}/ejb20_dataLoadMgr.ear" srcdir="${dist}" destdir="${dummy}"/>
         </target>
         <!-- Compile client app into the clientclasses directory -->
         <target name="compile_client">
              <javac srcdir="${source}" destdir="${client.classes.dir}" includes="Client.java"/>
         </target>
         <target name="clean">
              <delete dir="${build}"/>
         </target>
         <!-- Run the example -->
         <target name="run">
              <java classname="examples.ejb20.dataLoadMgr.Client" fork="yes" failonerror="true">
                   <arg value="t3://localhost:${port}"/>
                   <classpath>
                        <pathelement path="${ex.classpath}"/>
                   </classpath>
              </java>
         </target>
    </project>

    Can you show me the output of jar tvf
    C:\bea\weblogic81\samples\domains\examples\applications\ejb20_dataLoadMgr.ear
    -- Rob
    Craig Ahtye wrote:
    Hi,
    I am having a problem deploying an *.ear into weblogic 8.1. I get the error
    J2EE:160043]Missing deployment descriptor "META-INF/application.xml" at "C:\bea\weblogic81\samples\domains\examples\applications\ejb20_dataLoadMgr.ear"
    even though the application.xml file is in the *.ear file. This *.ear file is
    built using the following
    ant script:
    Note: I am integrating a Message Driven EJB with Documentum Content Server
    DFC API calls (3rd party jars)
    Thanks, Craig
    <project name="ejb20-message" default="all" basedir=".">
         <!-- set global properties for this build -->
         <property environment="env"/>
         <property file="../../../examples.properties"/>
         <property name="build.compiler" value="${compiler}"/>
         <property name="source" value="."/>
         <property name="build" value="${source}/build"/>
         <property name="dist" value="${source}/dist"/>
         <property name="dummy" value="${source}/dummy"/>
         <!--
    <target name="all" depends="clean, init, compile_ejb, jar.ejb, appc, ear_app,
    -->
         <target name="all" depends="clean, init, compile_ejb, jar.ejb, appc, ear_app3"/>
         <!-- compile_client"/> -->
         <target name="init">
              <!-- Create the time stamp -->
              <tstamp/>
              <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
              <mkdir dir="${build}"/>
              <mkdir dir="${build}/META-INF"/>
              <mkdir dir="${dist}"/>
              <copy todir="${build}/META-INF">
                   <fileset dir="${source}">
                        <include name="*.xml"/>
                        <exclude name="build.xml"/>
                        <exclude name="application.xml"/>
                   </fileset>
              </copy>
              <!-- Changed to move application.xml into ${dist}/meta-inf C. Ahtye
    <copy todir="${dist}">
    <fileset dir="${source}">
    <include name="application.xml"/>
    </fileset>
    </copy>
    -->
              <copy todir="${dist}/META-INF">
                   <fileset dir="${source}">
                        <include name="application.xml"/>
                   </fileset>
              </copy>
              <!--<copy todir="${dist}">
    <fileset dir="${source}">
    <include name="dfc.properties"/>
    </fileset>
    </copy>-->
         </target>
         <!-- Compile ejb classes into the build directory (jar preparation) -->
         <target name="compile_ejb">
              <javac srcdir="${source}" destdir="${build}" includes="DataLoadMgrBean.java"
    excludes="DSSCommand.java,GetDSSCommand.java,ImportXMLHelper.java" classpath="dfc.jar"/>
         </target>
         <!-- Update ejb jar file or create it if it doesn't exist, including XML
    deployment descriptors -->
         <target name="jar.ejb" depends="compile_ejb">
              <jar jarfile="${dist}/ejb20_dataLoadMgr.jar" basedir="${build}" update="yes">
    </jar>
         </target>
         <target name="appc" depends="jar.ejb">
              <wlappc debug="${debug}" source="${dist}/ejb20_dataLoadMgr.jar" classpath="dfc.jar"
    verbose="true"/>
         </target>
         <!-- Put the ejb into an ear, to be deployed from the ${apps.dir} dir -->
         <target name="ear_app" depends="jar.ejb">
              <ear earfile="${apps.dir}/ejb20_dataLoadMgr.ear" appxml="${source}/application.xml">
                   <!--<fileset dir="${dist}/APP-INF/lib" includes="dfc.jar"/>
    <fileset dir="${dist}/APP-INF/lib" includes="dfcbase.jar"/>-->
                   <fileset dir="${dist}" includes="ejb20_dataLoadMgr.jar"/>
              </ear>
         </target>
         <!-- Need to place dfc.jar, dfcbase.jar, log4j.jar into {source} and then deploy
    to {dist} -->
         <target name="ear_app3" depends="jar.ejb">
              <jar destfile="${apps.dir}/ejb20_dataLoadMgr.ear" basedir="${dist}"/>
         </target>
         <target name="ear_app2" depends="jar.ejb">
              <wlpackage toFile="${apps.dir}/ejb20_dataLoadMgr.ear" srcdir="${dist}" destdir="${dummy}"/>
         </target>
         <!-- Compile client app into the clientclasses directory -->
         <target name="compile_client">
              <javac srcdir="${source}" destdir="${client.classes.dir}" includes="Client.java"/>
         </target>
         <target name="clean">
              <delete dir="${build}"/>
         </target>
         <!-- Run the example -->
         <target name="run">
              <java classname="examples.ejb20.dataLoadMgr.Client" fork="yes" failonerror="true">
                   <arg value="t3://localhost:${port}"/>
                   <classpath>
                        <pathelement path="${ex.classpath}"/>
                   </classpath>
              </java>
         </target>
    </project>

  • WEB-INF/web.xml not found exception for deployed war on server startup

    Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <display-name>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              

    Kumar,
              Here it is.
              Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
              Can you send us your webapp? I will try to duplicate it in my environment.
              Kumar
              Steve Demuth wrote:
              Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              Interesting.
              This shouldn't happen though.
              Can you stop the server delete the .wl_temp_do_not_delete
              dir? Let's see if that makes any difference.
              Kumar
              Steve Demuth wrote:
              Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <display-name>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              [att1.html]
              [controllerUnitTests.war]
              

  • WAR Deployment Problem (WEB-INF/web.xml not found)

              I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy it
              when it start up. Here is what I did,
              1. I jared all necessary files including WEB-INF\web.xml in the myapp.war file;
              here I used all uppercase for WEB-INF directory, but after I jared it, it shew
              up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file. I think
              this is the behavior of jar program.
              2. I appended the myapp.war to the weblogicclasspath in the start script;
              3. In weblogic.properties file, I specified two lines:
              weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              weblogic.httpd.defaultWebApp=myapp
              4. Then I start up the WebLogic server named "default". It shew the following
              error messages:
              java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              ml
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:177)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp' as d
              efault servlet context
              java.lang.NullPointerException
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application 'c:/weblo
              gic/default/myapp.war'
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
              at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:134)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Please help me find out what is wrong with this. Greatly Appreciated.
              Thanks in advance,
              Donald
              

              If it is still not working, try to set the weblogic.httpd.documentRoot =c:/weblogic/default
              in the weblogic.properties & try.
              "Donald Ye" <[email protected]> wrote:
              >
              >
              >I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy
              >it
              >when it start up. Here is what I did,
              >
              >1. I jared all necessary files including WEB-INF\web.xml in the myapp.war
              >file;
              >here I used all uppercase for WEB-INF directory, but after I jared it,
              >it shew
              >up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file.
              >I think
              >this is the behavior of jar program.
              >
              >2. I appended the myapp.war to the weblogicclasspath in the start script;
              >
              >3. In weblogic.properties file, I specified two lines:
              >weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              >weblogic.httpd.defaultWebApp=myapp
              >
              >4. Then I start up the WebLogic server named "default". It shew the following
              >error messages:
              >
              >java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              >ml
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:177)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp'
              >as d
              >efault servlet context
              >java.lang.NullPointerException
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application
              >'c:/weblo
              >gic/default/myapp.war'
              >java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in
              >jar file
              > at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:134)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >
              >Please help me find out what is wrong with this. Greatly Appreciated.
              >
              >Thanks in advance,
              >
              >Donald
              

  • Missing Deployment Descriptor

    Hi..
    have a little Web-Project (in Eclipse with Sun Application Server 9.1_01) for Persistence i Use Toplink. All work fine, until i change a jsp for example and eclipse do a redeploy. After this Redoploy i got the following error:
    [#|2008-03-03T16:33:32.829+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=dc10582e-b7f2-4c4e-8b24-bd0262149cdf;|StandardWrapperValve[data]: PWC1406: Servlet.service() for servlet data threw exception
    Local Exception Stack:
    Exception [TOPLINK-6007] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Missing descriptor for [class dd.entities.Dreminder].
    Query: ReadAllQuery(dd.entities.Dreminder)
         at oracle.toplink.essentials.exceptions.QueryException.descriptorIsMissing(QueryException.java:419)
         at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkDescriptor(ObjectLevelReadQuery.java:412)
         at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkPrePrepare(ObjectLevelReadQuery.java:494)
         at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:433)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:575)
         at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
         at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:746)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:924)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:367)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:478)
         at dd.servlets.DataManager.service(DataManager.java:43)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    |#]
    I test it in a very ! Simple Program. Just one Servlet and One Entity, her ist my Code. I hope somebody could help me.
    Entity:
    @Entity
    @Table(name="dreminder")
    public class Dreminder implements Serializable {
         @Id
         @GeneratedValue
         private int id;
    ....+ getter & setter
    My Servlet:
    @PersistenceUnit
         private EntityManagerFactory factory = Persistence.createEntityManagerFactory("default");
         @Override
         protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
              EntityManager em = factory.createEntityManager();
              Query query;
              query = em.createNativeQuery("select * from Dreminder", Dreminder.class);
              for (Dreminder reminder:(List<Dreminder>) query.getResultList()) {
                   arg1.getWriter().write("ID: " + reminder.getId());
              em.close();
    my Persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <class>dd.entities.Dreminder</class>
    <properties>
    <property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
    <property name="toplink.jdbc.url" value="jdbc:derby:C:\DerbyDatabases\dreminder2;create=true"/>
    <property name="toplink.jdbc.user" value="admin"/>
    <property name="toplink.jdbc.password" value="admin123"/>
    <property name="toplink.logging.level" value="INFO"/>
    </properties>
    </persistence-unit>
    </persistence>
    thanks for helping !!!
    D

    ...have the first mistake...i really don't know where eclipse has stored the Persistence-Unit name "default", but if i change it in persistence.xml, he get the Factory i thing. But now i have my old Problem: "missing deployment descriptor" (only with eclipse)
    Exception:
    [#|2008-03-12T16:12:27.954+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=6547fbd4-c661-4d2a-960d-e9cd78ab290d;|StandardWrapperValve[data]: PWC1406: Servlet.service() for servlet data threw exception
    Local Exception Stack: Exception [TOPLINK-6007] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Missing descriptor for [class dd.entities.Dreminder].
    Query: ReadAllQuery(dd.entities.Dreminder)
    at oracle.toplink.essentials.exceptions.QueryException.descriptorIsMissing(QueryException.java:419)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkDescriptor(ObjectLevelReadQuery.java:412)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkPrePrepare(ObjectLevelReadQuery.java:494)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:433)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:575)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:746)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:924)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:367)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:478)
    at dd.servlets.DataManager.getData(DataManager.java:107)
    at dd.servlets.DataManager.service(DataManager.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    |#]

  • Using a Variable from web-inf/web.xml in java code?

    I would like to create a read-only variable with a value in the /web-inf/web.xml file and then access that value within a java service method within the Application Module.
    Where / how do I read the value from the web.xml file and make it accessible within my java code?
    thanks

    Hi,
    you can define context parameters in web.xml that you can access from Java in the web application
    The following is a JSF examle that checks a context parameter in a PhaseListener, where the string is stored ina Java constant (could be "myParam")
    ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
    useSessionPageCache = exctx.getInitParameter(Constants.USE_PAGE_CACHE) == null ? false :
    (exctx.getInitParameter(Constants.USE_PAGE_CACHE)).equalsIgnoreCase("TRUE") ? true : false;
    From here you can call a method on the AM to set the value or look for another option.
    Frank

  • Reload web-inf/web.xml file without restarting tomcat

    Please help me if any one have a solution .
    I am doing development in jsp, servlet. I am using tomcat5 as a webserver.
    i want to reload web-inf/web.xml file without restarting tomcat.

    From the tomcat admin page you can stop/start and refresh individual applications. See the tomcat documentation. Which, when you have a question about tomcat, you should always do first.

  • Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml

    Hi  All,
    we are not able to connect to Live office to our server . URL is  not authenticated in Excel and  if we place same url in browser ,we are getting below error message.
    "Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
    we couldn't able to rest the same after changing settings in axis2 file also.
    Any solution where we can configure in CMC or any files
    Regards
    Mahesh

    Hi Mahesh,
    As mentioned by Abhilasha, this is the expected behavior.
    In order to validate you could place the following URL in the browser.
    http://servername:portno/dswsbobje. you would see Tomcats home page which will display the list of Services.
    As far as the Live office in Excel is concerned , If you are getting a yellow  exclamation mark stating (Web service not correct) next to Session URL, try changing the servername to IPaddress of the server.
    Eg: http://ipaddress:portno/dswsbobje/services/Session
    While inserting the Session URL in the Live Office settings confirm the URL as per above.
    If the issue still persists, you could configure the host file entry in you client machine.
    Let me know if the information is helpful.
    Regards,
    Noopur

  • Security Bug?? Accessing WEB-INF/web.xml from a URL

    I can access http://localhost/NASApp/myApp/WEB-INF/web.xml (or any other
    files in WEB-INF) from my browser! This can't be right. How do I turn this
    off?
    Hopefully, I can do this in the appserver, but if not, please tell me how to
    do it in the webserver. I am using iWS 4.1 & iWS 6.0 on 2 different
    machines.
    Thanks,
    Matt

    This is known bug previously discussed in the following thread (search
    in the newsgroup mcom.ias):
    !!From - Fri Aug 31 08:12:02 2001
    !!From: [email protected] (David Ogren)
    !!Newsgroups: mcom.ias
    !!Subject: Can someone cross-check this sp3 security concern
    Matt Raible wrote:
    I can access http://localhost/NASApp/myApp/WEB-INF/web.xml (or any other
    files in WEB-INF) from my browser! This can't be right. How do I turn this
    off?
    Hopefully, I can do this in the appserver, but if not, please tell me how to
    do it in the webserver. I am using iWS 4.1 & iWS 6.0 on 2 different
    machines.
    Thanks,
    Matt

  • Bug: "WEB-INF", "web-inf" and package names

    I'm using JSPs with Struts, and as recommended in the Struts Toystore Example all of my JSPs are below the WEB-INF directory. If I compile my JSPs I get the following warnings (hundreds of them):
    Warning: package name web2d_inf._jsp._gui._documents._document does not match source file name W:\root\output\Gui\View\classes\.jsps\_WEB_2d_INF\_jsp\_gui\_documents\_document\_Preview.java
    How can I get rid of this warnings, without disabling warnings completely? I'm using JDeveloper 9.0.3.2
    Thanks

    Hello;
    It looks like this bug may pop back up?
    I am using 10g Pre on LINUX and get the error:
    Project:/home/a/jdevhome/mywork/ir2/ViewController/ViewController.jpr
    /home/a/jdevhome/mywork/ir2/ViewController/public_html/WEB-INF/untitled1.jsp
    Error:/home/a/jdevhome/mywork/ir2/ViewController/public_html/web-inf/untitled1.jsp (No such file or directory)
    It looks like web-inf is getting set to lower case somewhere.
    I know Linux is not the release for the 10g pre, this is just in case the bug is going to 'pop' up again in the final version
    Thanks
    A

  • Web-inf\web.xml init parameters

    Hi,
    I use several servlets/JSPs which are using common init parameter, is there a way to specify that some init parameters are common or must I write all the parameters for all of my servlets/JPSs ?
    Thanks

    yah that's what I mean, have your parameters in your web.xml file and have a Servlet read them when the application starts up (using ServletConfig). Then you put the values into the application scope where all the JSPs and Servlets can read them. So lets say you specify a parameter called "html-path" with a value of "/www/html/" you could read this in your JSPs like this:
    String htmlPath = application.getAttribute("html-path");I can't remember how to do his off-hand but I know it works.

  • WEB-INF/web.xml

    Hi:
    I need to add <security-constraint> to my Flex
    Builder-3 project.
    How and where do I add this with FB3.
    After I have used the authentication J2EE basic
    authentication mechanism, how
    do I get a reference to the role-name that has logged in?
    Thanks

    Shirker1,
    I don't understand why this would be necessary? The J2EE
    security authentication process happens at the server and so
    protects your jsp etc pages that load into the browser. The Flex
    app runs in the client once the page has loaded. A thread called
    "j_security_check" a couple of days ago looked at pretty much the
    same issue. Basically, if you want to enforce some security in your
    (client) Flex app that uses the security model of your server, then
    you have to write something that sends credentials to teh server
    and gets the answer back.
    Richard

  • WAR file fails to deploy WEB-INF/classes

    Hi All
    I am attempting to get a simple JPA on JSE app running on WLS 9.1. I can deploy my WAR file and access the jsps no problem, however the WEB-INF/classes directory is empty on deployment. How can I tell if the classes are being deployed correctly? I have tried using autodeploy and console deployment, always with the same result. My war file is structured as follows:
    WEB-INF/
    WEB-INF/faces-config.xml
    WEB-INF/weblogic.xml
    WEB-INF/web.xml
    WEB-INF/classes/
    WEB-INF/classes/my/test/package/{all classes}
    WEB-INF/lib/{all reqd libs}
    index.jsp
    When I run the jsp, there are no errors, the classes just don't appear to be doing anything. The logs have absolutely nothing to help with this, I turned on app logging in weblogic.xml and it has nothing other than the initialization in it either.
    I've deployed and run the exact same app (less the weblogic.xml file) successfully on Tomcat and OC4J, any ideas out there? Am I looking in the right place for the deployed class files (Checking the WL_HOME/samples\domains\wl_server\servers\examplesServer\tmp\_WL_user\jpa-example\xb6q08)?

    Hi,
    I've faced the same issue in WLS9.2, and but it didn't affect my web application running, I guess that the classes are read from the WAR file directly, so for me to overcome this issue, I've changed the technique of how to install web application by selecting extracted war installation instead, and from the WLS Console selected
    "I will make the deployment accessible from the following location" and selected the folder that contains the extracted WAR.
    Hope this will help,
    Issa

  • How to edit web.xml deployment descriptor from console in weblogic 8.1?

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

Maybe you are looking for

  • How do I select a thick paper to print from Indesign?

    How do I select a thick paper to print from Indesign? I have to go to the printer to select the thicker paper. I would like to select the paper from my computer in Indesign.  Other programs allow this.

  • Chinese text upload

    Hi Guys, I have requirement to upload material master data in language EN ( English ) and ZF ( chinese)using BDC program . But  I can able to upload data for language EN but ZF when loading MAKTX description is not coming in ZF language .  I have log

  • Query on Logging into database

    Dear Friends, I am using Oracle XE 10g version I have restored an Oracle Dump to Oracle XE version using imp command (while importing I used System user name and respective password) Now how do i login to the respective database? Expecting your sugge

  • Mibgen missing from JDMK 4.2 evaluation

    I'm trying to run the SNMP agent example in the JDMK 4.2 evaluation. It appears that mibgen is missing. Where can I get it?

  • Why NWA/SLD/ Solution manager redundancy

    I am just curious why systems like SLD and Solution manager both contain the same information? Like systems, software componenets etc. Another question, I was just reading the docs for NWA administrator and I see that they are suggesting to do some c