!DOCTYPE !ENTITY war file xml splitting problem

Hi,
I am trying to split a file - struts-config.xml - which eventually gets
located into my war file.
Here is the xml file.
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
<!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
<!ENTITY struts_GlobalForwards SYSTEM
"./struts_GlobalForwards.xml">
<!ENTITY struts_ActionMappings SYSTEM
"./struts_ActionMappings.xml">
>
The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.
Does anyone know a way to tell it to look in the war file?
or Does anyone know a better place to post a question like this?
Thanks in advance!!

The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.Uh-uh. Ran into this also.
Does anyone know a way to tell it to look in the war file?Not me, but I wish I could.
or Does anyone know a better place to post a question like this?This seems more like a Struts issue to me. Look here:
http://marc.theaimsgroup.com/?l=struts-user&m=100016330124990
and follow the thread. Someone suggested a patch to the ActionServlet, I
haven't tried it yet. It sounds good and will probably do what you want.
--Renaud
"IH" <[email protected]> wrote in message news:[email protected]..
Hi,
I am trying to split a file - struts-config.xml - which eventually gets
located into my war file.
Here is the xml file.
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
<!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
<!ENTITY struts_GlobalForwards SYSTEM
"./struts_GlobalForwards.xml">
<!ENTITY struts_ActionMappings SYSTEM
"./struts_ActionMappings.xml">
>
The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.
Does anyone know a way to tell it to look in the war file?
or Does anyone know a better place to post a question like this?
Thanks in advance!!

Similar Messages

  • Problem deploying war file in cluster wls 10 mp1

    Hi,
    Weblogic throws the following exception while i am deploying a war file in clusters with 6 servers distributed in 2 physical machines.
    <Mar 6, 2008 12:22:52 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application 'siiaf'.>
    <Mar 6, 2008 12:22:52 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:88)
    Truncated. see log file for complete stacktrace
    java.util.zip.ZipException: Error opening file - /usr/local/bea/user_projects/domains/sctDomain10/stage/siiaf/siiaf.war Message - error in opening zip file
    at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
    at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:70)
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:61)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    Truncated. see log file for complete stacktrace
    >
    <Mar 6, 2008 12:22:52 PM CST> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:88)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationForAppDeployment(MBeanConverter.java:66)
    at weblogic.management.deploy.internal.MBeanConverter.setupNew81MBean(MBeanConverter.java:314)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.compatibilityProcessor(ActivateOperation.java:72)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.setupPrepare(AbstractOperation.java:295)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:86)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.util.zip.ZipException: Error opening file - /usr/local/bea/user_projects/domains/sctDomain10/stage/siiaf/siiaf.war Message - error in opening zip file
    at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
    at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:70)
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:61)
    The staging mode of all servers is "stage".
    I think the problem is the file size because my war file size is 45 mb aprox.
    When i delete some files within the file and the size is minor (2 mb) , the deploy process ends successfully.
    I appreciate your help
    GPA

    Can you verify the integrity of your staged war file? This problem could be due to a bug in the container.You may want to open a support case with BEA

  • Deploying an existing WAR file into the Portal

    I have downloaded the Enterprise Portal and the SAP Netweaver Developer Studio (NDS) and have succeeded in creating a couple of projects of the ‘Hello World’ variety and deployed them on the Portal!  So far, so good.
    The problem I have is that need to deploy on the Portal an existing JSP/Struts application of ours which is available as a Web Archive (WAR) file.
    The problem is that I cannot find a way of deploying an existing WAR file on the Portal – either via a Project or otherwise.  I have found an entry in the Help files with the NDS which sounds promising, as it is entitled ‘Import a .WAR File into a new project’.  However, the menu entry it says you should use (File &#8209;> Import &#8209;> MDK: Import a web archive (.WAR) into a new project) this last entry does not exist on my installation of NDS.
    Any ideas or suggestions?

    Hi Mustafa (and All) - thanks you very much for your answers, which has enabled me to make good progress.
    I have created a project in the Deploy Tool, imported a simple WAR file into it, loaded to project and depployed it on my instance of the Portal - or at least I have deployed it as far as the Deploy Tool is concerned. 
    However, when I try to find it in the Portal in order to assign it to an iView in the Portal content, I can't find any evidence of its existence!!
    As another 'tack' in the NDS I have created an 'Enterprise Application Project', into which I appear to have imported the WAR file - but I cant package this as a PAR file, which is what I seem to need to do to get it into an iView on the Portal.  To create a PAR package I seem to need to create a 'Portal Application Project' - but I can't find a way of getting the WAR file into that!!
    Any further advice would be greatefully received.
    Thanks for your help to date and thanks in advance for any more you may be able to give.
    Regards,
    Dave

  • Problem reading a file from inside a war file

    Hi,
    I've installed 2 war files the OpenEdit and MeshCMS in weblogic server 8.1.5 but i've problems when i access to their pages.
    <3/Abr/2006 16H23m BST> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: com.openedit.servlet.OpenEditFilter.java.lang.NullPointerException
    at java.io.File.<init>(Ljava/lang/String;)V(Unknown Source)
    at com.openedit.servlet.OpenEditFilter.init(Ljavax/servlet/FilterConfig;)V(OpenEditFilter.java:85)
    at weblogic.servlet.internal.WebAppServletContext$FilterInitAction.run()Ljava/lang/Object;(WebAppServletContext.java:7008)
    <3/Abr/2006 16H08m BST> <Error> <HTTP> <BEA-101020> <[ServletContext(id=13727982,name=meshcms,context-path=/meshcms)] Servlet failed with Exception java.lang.NullPointerException
    at java.io.File.<init>(Ljava/lang/String;)V(Unknown Source)
    at com.cromoteca.meshcms.WebApp.<init>(Ljavax/servlet/ServletContext;)V(WebApp.java:62)
    at com.cromoteca.meshcms.HitFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(HitFilter.java:61)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27)Anyone knows how can i solve these issues, i think their are related with weblogic doesn't explode the war files.
    Thanks in advanced,
    rjc

    I think your guess is probably correct. FWIW, WLS 9.x does explode WAR files.
    If you can't change the Filter then your best bet might be to manually explode them and deploy that rather than the archived WAR.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problems while creating a project from a war file...

    Hi there, I created a new project in jDev 10.1.3 from a war file that contains a web site that originally ran on TomCat. The problem is that my web.xml file does not contain any information about the servlets that I have in the war file. So when I try running a servlet, I always get an error.
    Is there a way to bypass the need to declare every single servlet I have in the web.xml file? If not, are there tools that exist that I could use to do this automatically?
    Thanks

    Hi,
       You can try the following:
    1. Give the fully qualified domain name of the DTR server host in NWDS Preferences->Development Configuration.
    2. Check if your WAS and JDI are on a higher SP level. If yes then use the corresponding NWDS.
    Regards,
    Satyajit.

  • 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

  • Problem in loading the jaxrpc war file - URGENT

    hi
    i am getting the exception when i tried to load the jaxrpc war file in JWSDP2.0 version.
    please see the following exception.
    javax.servlet.ServletException
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.init(JAXRPCServletDelegate.java:50)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.init(JAXRPCServlet.java:40)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3288)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3468)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:545)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:256)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:739)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:381)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:780)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:339)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1194)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:705)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1186)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:339)
    at org.apache.catalina.core.StandardService.start(StandardService.java:496)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:699)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:497)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:397)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
    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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    [ERROR] http - -null <javax.servlet.ServletException>
    thanx in advance
    ~prasad

    Yes, that's true, but I think that happens because you deploy the web service in a non public area as your home directory. If you put it in a public area, your service should have 'running' status.
    Pedro Salazar.
    This is not a solution but I am posting this because
    this might help in guessing the cause of the error.
    I had similar problem. When I installed JWSDP, I
    copied the hello example from the tutorial example to
    my home directory. I also copied the "common"
    directory which is required by the build.xml.
    (common/target.xml is included in build.xml).
    Then I ran "ant build" and "ant install". I made
    required change in the "build.properties" in the
    "common" directory. But after this when I do "ant
    list" it shows me all the services running but this
    hello server as stopped.
    Then I copied the war file of the service (generated
    using "ant package") to the <JWSDP_HOME>/webapps. Then
    "ant list" showed me the hello service as running. I
    don't know why this is happening.
    regards
    Pankaj

  • 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

  • Problem with .war files

              I have created a .war file with my servlets in
              /WEB-INF/classes directory and all other classes jared into a single jar file
              in /WEB-INF/lib,but on calling the servlet only those classes that the servlet
              uses directly are recognized but for the other classes it gives an exception NoClassDef
              found.I later changed the .war file so that all the classes are put into /WEB-INF/classes
              directory directly(no jar),but this time it again fails with the same excception,is
              this a bug in weblogic or am I doing things wrong.please clarify.
              thanks and regards
              vijay
              

    Bobby,
              This appears to be a known problem and has been addressed by CR065104. Please
              contact support to obtain the appropriate patch.
              Thanks,
              Simon
              Developer Relations Engineer
              BEA Support
              Bobby Nations wrote:
              > Vijay,
              >
              > You're not alone, I'm experiencing these problems when moving a .war file
              > from WLS 6.1.0 to WLS 6.1.2. I'm running WLS 6.1.0 on my development
              > server, and whenever I deploy a .war file there, it finds the jar files
              > in WEB-INF/lib and handles everything properly. I move that exact .war
              > file to my staging server (one rung below production) along with the
              > config.xml and start script from development, and blammo, no go. It
              > complains of ClassNotFound for any class contained in a jar file under
              > the WEB-INF/lib directory. So, my symptoms break down like so: works for
              > WLS 6.1.0 but not for WLS 6.1.2.
              >
              > I think that this must be a bug in service pack 2 of WLS 6.1.
              >
              > Bobby
              >
              > In article <3bbc80e9$[email protected]>, "Vijayanand.R"
              > <[email protected]> wrote:
              >
              > > Hi Udit,
              > > thanks for the reply,
              > > the package under WEB-INF/classes is fine,it invokes the servlet too but
              > > it fails to recognize the jar under WEB-INF/lib and complains that the
              > > particular class it is looking for is not found
              > > Regards
              > > Vijay
              

  • Application Viewer Deployment Problem - War File Path Error

    Hello all!
    I just installed a new CC&B demo environment (2.2SP6 on Apache/Windows) and the application viewer is not working at all. The first thing it does is throw a bunch of errors, such as
    source file does not exist data/tables/updated.xml
    source file does not exist data/maintobj/updated.xml
    source file does not exist data/alg/updated.xml
    source file does not exist data/batchContro/updated.xml
    Then the App Viewer shows the following:
    Data Dictionary Not built - submit F1-AVTBL
    Maint. Object Not built - submit F1-AVMO
    Algorithm Not built - submit F1-AVALG
    Batch Control Not built - submit F1-AVBT
    To Do Type Not built - submit F1-AVTD
    Service XML Built 2008-04-14 (15:40)
    Java Docs Built 2008-04-16 (08:43)
    Cobol Source Built 2008-04-14 (10:22)
    Manually submitting one of those throws this error:
    File path to WAR file and location to expand WAR file are required if Use War File is switched.
    Anyone seen anything like this?
    Edited by: Adam D. on May 25, 2010 1:43 PM

    That worked! Thank you so much. App viewer loads now and all the F1-* items show as built. Only problem now is all the CM xml files seem to be missing. Every time you click something in app viewer it throws an error such as:
    Source file does not exist data/maintobj/ENG/CM/ext_BATCHCNTL.xml
    This is just one of them. There are many, and they all exist in that same CM directory... which doesnt exist haha
    Thanks again for the advice!

  • Problems with war file,popups and forms

    Hi All,
    we are using adf faces and jdeveloper 11g for our project.
    Development work and all have happened fine, but we are facing few problems when we created the war file of the project and deployed it on tomcat 6.0 .
    The major problem we are facing after the deployment of war on tomcat 6.0 is:
    Popus (the popups we created and calender popups) are not showing up. The page simply refreshes when click on the popup link. There are no exceptions thrown, no errors in tomcat logs. The same thing is happeing for calender popups also.
    We are using the following code for popup creation:
    <af:popup id="mypop" eventContext="self">
    <table>
    <af:spacer width="10" height="20"/>
    <tr>
    <td>Name:</td>
    <td>
    <af:inputText columns="20" required="true" value="#{FL.name}"/>
    </td>
    </tr>
    </table>
    <table>
    <tr>
    <td>
    <af:commandButton text="Submit" action="#{FL.ValidateName}"/>
    </td>
    </tr>
    <af:spacer width="10" height="10"/>
    <tr>
    <td>
    <af:outputText value="(*) Marked fields are compulsory"/>
    </td>
    </tr>
    </table>
    </af:popup>
    <af:commandLink>
    ADD Name
    <af:showPopupBehavior popupId="mypop" align="endBefore"
    triggerType="action"/>
    </af:commandLink>
    the following jars are included in web-inf/lib folder:
    adf-controller-api.jar
    adf-controller-rt-common.jar
    adf-controller.jar
    adf-faces-databinding-rt.jar
    adf-pageflow-dtrt.jar
    adf-pageflow-fwk.jar
    adf-pageflow-impl.jar
    adf-pageflow-rc.jar
    adf-richclient-api-11.jar
    adf-richclient-impl-11.jar
    adf-share-base.jar
    adf-share-ca.jar
    adf-share-support.jar
    adflibfilter.jar
    adflogginghandler.jar
    adfm.jar
    adfmweb.jar
    cache.jar
    commons-el.jar
    commons-logging-1.1.1.jar
    db-ca.jar
    dms.jar
    dvt-faces.jar
    dvt-jclient.jar
    dvt-utils.jar
    fmw_audit.jar
    glassfish.jstl_1.2.0.1.jar
    identitystore.jar
    inspect4.jar
    javatools-nodeps.jar
    javax.management.j2ee_1.0.jar
    jaxen-full.jar
    jdbc2_0-stdext.jar
    jewt4.jar
    jmxframework.jar
    jmxspi.jar
    jps-api.jar
    jps-common.jar
    jps-ee.jar
    jps-internal.jar
    jps-unsupported-api.jar
    jsf-api.jar
    jsf-impl.jar
    jsf-ri.jar
    jstl.jar
    log4j.jar
    mdsrt.jar
    ojdbc14_g.jar
    ojdl.jar
    oracle-el.jar
    oraclepki.jar
    org.apache.commons.beanutils_1.6.jar
    559,366 org.apache.commons.collections_3.1.jar
    org.apache.commons.logging_1.0.4.jar
    osdt_cert.jar
    osdt_core.jar
    saxpath.jar
    share.jar
    standard.jar
    trinidad-api.jar
    trinidad-impl.jar
    wls-api.jar
    xalan.jar
    xercesImpl.jar
    xml-apis.jar
    xmlef.jar
    xmlparserv2.jar
    We are struggling to find a solution for this.
    Any suggestions on this will be highly appreciated.
    Thank you.

    Hi,
    please try removing all your HTML elements and just use ADF Faces components. Chances are that mixing HTML with JSF components, though possible in JSF 1.2 causes this conflict
    Frank

  • WAR file problem

    My apologies if this post has appeared before...not sure if my previous 2
              posts made it to the newsgroup.
              I am having a problem with a war deployment. I am trying to get the
              following architecture to work:
              1) servlet instantiates data bean and places it in session
              2) jsp uses data bean to create customized output
              However, the jsp cannot compile because the databean is not being found.
              The data bean class is in /WEB-INF/classes so the jsp should have access to
              it. I can compile the servlet fine so it is not a problem with my classpath
              to the data bean class.
              I have seen similar posts to this however I have yet to find a reply that
              solves the problem.
              Any help appreciated!
              Thanks,
              Derek
              

    There are a number of things I am finding difficult to get working with
              WebLogic that work perfectly as described in the spec under Orion app
              server, as well as Resin.
              It appears that the servlet mappings in web.xml don't work correct. I think
              I have the SP4 patch applied, but I don't have a clue how to find out if it
              is indeed using the latest patch or not. Also, the
              /servlet/mypackage.myclass call does not work on JSP pages in WebLogic. I
              read up on the ServletServlet it provides and it appears that it does not
              recognize the WEB-INF/classes folder as a location to look for any /servlet/
              paths. That is rather bothersome initially, although when I rework our site
              to using Struts for the front-end, that need should go away.
              My main quest is to get Struts working so I can get my darn site to log me
              in. I normally have the login button submit the form to a jsp page that
              calls upon a servlet in the <jsp:include
              page="/servlets/com.mycompany.package.MyClass" /> fashion, which used to
              work. It does not under WebLogic. Is there ANY way to get the
              WEB-INF/classes to be part of the class path when calling upon my own
              classes as per the Servlet 2.2 spec? Or does Orion, JRUN 3, and Resin all do
              it wrong?
              Thanks.
              "Derek Clayton" <[email protected]> wrote in message
              news:[email protected]...
              > Yup...it works for a jsp page that doesn't use anything but html.
              >
              > I just can't believe that weblogic claims to support war files as long as
              > you don't try to use jsps with dynamic content.
              >
              > "Kevin Duffey" <[email protected]> wrote in message
              > news:[email protected]...
              > > Are you able to see any JSP output? Try a simple test.jsp page that
              simply
              > > says HELLO and doesn't use anything other than HTML. See if that output
              > > shows. I had a similar problem where the JSP page wasn't even compiling
              > > initially, then it kept giving me ClassLoader problems. I found out the
              > > problem was that I had an older jsdk.jar in the WEB-INF/lib dir which
              was
              > > causing problems.
              > >
              > > Hope that may help.
              > >
              > > "Derek Clayton" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > My apologies if this post has appeared before...not sure if my
              previous
              > 2
              > > > posts made it to the newsgroup.
              > > >
              > > > I am having a problem with a war deployment. I am trying to get the
              > > > following architecture to work:
              > > >
              > > > 1) servlet instantiates data bean and places it in session
              > > > 2) jsp uses data bean to create customized output
              > > >
              > > > However, the jsp cannot compile because the databean is not being
              found.
              > > > The data bean class is in /WEB-INF/classes so the jsp should have
              access
              > > to
              > > > it. I can compile the servlet fine so it is not a problem with my
              > > classpath
              > > > to the data bean class.
              > > >
              > > > I have seen similar posts to this however I have yet to find a reply
              > that
              > > > solves the problem.
              > > >
              > > > Any help appreciated!
              > > >
              > > > Thanks,
              > > >
              > > > Derek
              > > >
              > > >
              > >
              > >
              >
              >
              

  • [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

  • Trouble with war file contianing web.xml

    I have a problem with my ISP. I have to send a war file to upload my files. It includes my web.xml file, but it seems that it's ignored when i visit my site. Can somebody help me with this. When I run the web.xml file on my own computer it works fine.
    I create my war file at the moment with the command jar cvf name.war -C d:\directory .
    It also look like a good deploy of the site because everything gets into the right please.
    Tnx for the help already

    Well when I go to my site and I go into my small Content Management System I press a button and it should call on a page under de alias admintool. In my web.xml file it will redirect the request to the proper class file. This doesn't work. I also add a form-login-page option into my web.xml file. So that when I call on a page it should redirect to a login screen. But that doesn't work also. It doesn't redirect, it's goes straight to the page that should be secure.

  • Problem deploying a WAR file in Weblogic 10

    I get an error trying to deploy a WAR file on WebLogic 10 on two of my co-workers computers. On my computer it works fine and on our development server running on SUSE 10 it is also fine. We are using Struts 2, Hibernate 3 and Spring 2.5. The exception says that weblogic.wsee.async.AsyncResponseBean failed to preload because weblogic.wsee.async.jaxws.OnAsyncDelivery could not be found. We are not knowingly trying to use these classes. We do not have web services. The full text of the error we get when trying to deploy is:
    <Aug 20, 2008 3:01:45 PM CDT> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application '_appsdir_pilotVacation_war'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.async.AsyncResponseBean" failed to preload on startup in Web application: "pilotVacation.war".
    class: weblogic.wsee.async.jaxws.OnAsyncDelivery 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)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:950)
    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)
    Truncated. see log file for complete stacktrace
    class: weblogic.wsee.async.jaxws.OnAsyncDelivery 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)
    Truncated. see log file for complete stacktrace
    >

    Hey,
    From what I understand, your configuration is obviously different from your co-workers' config.
    So you've got two choices : either you make their environments work like yours, or you make the application to work anywhere !
    In order to do so, I would advise you to use a comparison tool, such as BeyondCompare (excellent) and compare your domain configurations (config directories)
    Or as James suggested it, you go hunt for unnecessary libraries in your application DD.
    Extra question : have you tried to create a new domain, and activate the Workshop extension ? Try then to deploy your application and tell us what's the result.
    If you created your application in Workshop, mind the facets : if you do not chose the correct set of facets, you'll have lots of extra libs, more annoying than helping.

Maybe you are looking for