Deployment of ear file - invalid file

Hi,
i'm trying to deploy an ear file using the ANT wldeploy tasks.
The file contains
- ejb (separate jar for the client interfaces)
- jpa persistence
- webapp.
The app server is 10.3.3
I can deploy the ear via eclipse with no problems on my local server.
When i try and publish/deploy on a remote server i get an error [Caused by: weblogic.deployment.EnvironmentException: duplicate persistence units with name . . .]
Hence the attept to depoy via ant. This method fails even on my local server. Saying the (ear) file is invalid.
It seems that the 'publish' action in eclipse performs modifications on the ear that the simple file->export->ear in eclipse doesnt do.
I then tried to package the the environment in the split directory structure (up until then i just used the standard eclipse setup - multiple java/j2ee projects).
That attempt failed at the wlappc stage. ArrayIndexOutofRange exception.
Any ideas ?
thanks,
Michael

Hi Steve,
i've attached the stacktrace below.
It seems to me that the ear file is either unpacked incorrectly (ending up with two persistence xml files) or eclipse isn't packageing them the 'weblogic way'.
I found the cause of the ArrayIndexArrayOutofBounds exception when packageing with the wlappc task in the split directory setup: the references to the ejb and web modules in the application.xml have .jar/.war suffixes:
<module>
<ejb>ejbapp.jar</ejb>
removing these and the ear builds fine with wlcompile/wlappc. So i can package the ear using wlcompile/wlappc and deploy the ear manually via the admin console. unfortunately i still have to remove the suffixes. working on an xslt script to fix the suffixes.... :-)
cheers,
Michael
Remote deployment error from eclipse:
java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
     at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
     at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:466)
     at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1420)
     at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:861)
     at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655)
     at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522)
     at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
     at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
     at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: weblogic.management.DeploymentException:
     at weblogic.application.internal.flow.ParseJpaDescriptorFlow.prepare(ParseJpaDescriptorFlow.java:44)
     at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
     at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
     at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
     at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
     at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
     at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
     at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: weblogic.deployment.EnvironmentException: duplicate persistence units with name myapp_persistence in scope myapp. First PU location: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei/lib/myapp_persistence.jar. Second PU location: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei/APP-INF/lib/myapp_persistence.jar
     at weblogic.deployment.AbstractPersistenceUnitRegistry.assertNoDuplicate(AbstractPersistenceUnitRegistry.java:313)
     at weblogic.deployment.AbstractPersistenceUnitRegistry.processDescriptor(AbstractPersistenceUnitRegistry.java:291)
     at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:192)
     at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:101)
     at weblogic.deployment.EarPersistenceUnitRegistry.<init>(EarPersistenceUnitRegistry.java:55)
     at weblogic.application.internal.flow.ParseJpaDescriptorFlow.prepare(ParseJpaDescriptorFlow.java:39)

Similar Messages

  • Error while deploying an ear file in the Oracle Application Server

    Hi,
    There was an existing ear deployed in the the oracle application server - 10g. We had to include some customizations so we rebuild the ear file with the new changes and tried redeploying the ear using the EM console. Getting the below error while deploying the same. Any pointers to the same would be helpful.
    Error
    An error occurred when processing the data submitted. Find the appropriate field and enter the correct information as noted next to each field.
    Archive Location - Failed in uploading archive. Invalid archive file: Jar file resourceadapter-rar.rar is missing a standard deployment located at META-INF/ra.xml
    We have not modified anything in the ra.xml nor have touched the resourceadapter-rar.rar

    Hello
    did you configure the startweblogic file as mentioned in the admin guide ?

  • Deploying the .ear file on weblogic 10.3.

    I Am deploying the .ear file on weblogic 10.3. but we got the exception on deployment time mention below in mail.
    1*. Unable to access the selected application.*
    *2. Exception in AppMerge flows' progression*
    *3. Exception in AppMerge flows' progression*
    *4. VALIDATION PROBLEMS WERE FOUND problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>; problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>;*
    *5. VALIDATION PROBLEMS WERE FOUND problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>; problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>;*
    any body help me.Thanks in advance.

    Hi Crimsonious,
    Did u solve your problem because i am having the same issue right now!
    Carl

  • Error while deploying the EAR file

    Hi,
    We are trying to deploy an EAR file (created through NWDS) using the SDM. But while deploying we are getting the following exception:
    com.sap.sdm.util.sduread.IllFormattedSduFileException:Error during attribute reading: received exception: Error in opening zip file
    Does this has something to do with the application or is it related with the WinZip software?
    We deployed the same application with the same configuration previously, at that time it got deployed without any issues.
    Please reply.
    Thanks & regards,
    Sujit

    Hi,
    This is due to the corruption of EAR file, Check whether the Ear File is  correct or if it has been Corrupted. Because it is unable to Read the File. If it is Corrupted just Create a New EAR file.
    Regards,
    Sharma.

  • Error after Deploying a .ear File

    Hi,
    I have deployed an .ear file on the SAP J2EE engine 6.20 on EP6.0 sp2. When I access one of the JSP's, I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory. Also, the jar file has been added to the classpath in go.bat? What other changes are to be done for a successful deployment?
    Environment :EP6.0, sp2 hotfix4 on Windows 2003, MS SQL server DB.
    Please reply ASAP
    Thanks
    Bhanu

    hello,
    have you tried including the 3rd party jar in your EAR file itself?
    i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.
    when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?
    regards,
    wentao

  • Error deploying a .ear file - Urgent

    Hi,
    I am trying to deploy an .ear file on the SAP J2EE engine.  I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory.  Also, the jar file has been added to the classpath in go.bat?  What other changes are to be done for a successful deployment?
    Environment :EP6.0, sp2 hotfix4 on Windows 2003, MS SQL server DB.
    Please reply ASAP
    Thanks
    Bhanu

    hello,
    have you tried including the 3rd party jar in your EAR file itself?
    i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.
    when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?
    regards,
    wentao

  • Deploying a .ear file and SDN is stopped

    I am trying to deploy a .ear file - but it tells me SDN is stopped - what is this and how do I start it?  Thanks - Janet

    janet,
      I suppose it is SDM is stopped. u have to deploy ear file with SDM which is found in C:/usr/sap/JKS/JC00/SDM/program
    u will have remoteGui.bat.
    use it for deploying the ear file.
    u can check using the sap console u will see SDM Started.
    thanks
    Venkata Naidu bandi

  • Out of Memory Error While deploying as EAR file

    Hai,
    I was trying to deploy an EAR file of size 63 MB which inturn containing about 60 EJB.jars. No WARs. application.xml has all the entries for the JARs. While I am deploying it is giving Out of Memory Error. Is there any way to tweak this problem. I am using my own hand written java application which uses the SunONE deployment APIs for deployment. Can u please tell how to tackle this problem. I am running my application through a batch file which uses jdk1.4.
    Please help me regarding this issue.

    You can set the initial heap size and maximum heap size for the JVM, either in the app-server admin console, or maybe in one of your scripts. You look-up the syntax!...
    I had this error yesterday. I too had run out of memory (150Mb). You simply need to allocate more to the app-server.

  • Deploy the .ear file in Oracle 10g Application server10.1.3

    Hi Friends,
    I have deploy the .ear file in Oracle10g Application Sever 10.1.3 through Enterprise Manager. in Progress Messages shows the application has been successfully deployed,like this
    when i hit the URL in Web brower, i got a HTTP 403 showing.............
    Plz help me ..............
    Sep 27, 2008 12:11:41 PM] Application Deployer for BO13 STARTS.
    [Sep 27, 2008 12:11:41 PM] Copy the archive to C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear
    [Sep 27, 2008 12:11:42 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear begins...
    [Sep 27, 2008 12:11:42 PM] Unpacking BO13.ear
    [Sep 27, 2008 12:11:49 PM] Done unpacking BO13.ear
    [Sep 27, 2008 12:11:49 PM] Unpacking backoffice.war
    [Sep 27, 2008 12:11:53 PM] Done unpacking backoffice.war
    [Sep 27, 2008 12:11:53 PM] Unpacking backoffice-help.war
    [Sep 27, 2008 12:11:57 PM] Done unpacking backoffice-help.war
    [Sep 27, 2008 12:11:57 PM] Unpacking resourceadapter-rar.rar
    [Sep 27, 2008 12:11:57 PM] Done unpacking resourceadapter-rar.rar
    [Sep 27, 2008 12:11:58 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear ends...
    [Sep 27, 2008 12:11:58 PM] Starting application : BO13
    [Sep 27, 2008 12:11:58 PM] Initializing ClassLoader(s)
    [Sep 27, 2008 12:11:58 PM] Initializing EJB container
    [Sep 27, 2008 12:11:58 PM] Loading connector(s)
    [Sep 27, 2008 12:11:59 PM] Starting up resource adapters
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: shared-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: store-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: storeops-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: parameter-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: report-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: scheduler-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: workflow-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: item-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-webapp-app-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: journal-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: label-webapp-app-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: label-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: party-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: customer-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: calendar-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: currency-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: financial-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: till-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: tax-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: postprocessor-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: codelist-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: trigger-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: report-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: parameter-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: item-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: store-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: admin-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: dashboard-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: storeops-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: task-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: storeserver-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:11 PM] Compiling EJB generated code
    [Sep 27, 2008 12:12:58 PM] Initializing EJB sessions
    [Sep 27, 2008 12:12:58 PM] Committing ClassLoader(s)
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice begins...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice ends...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice-help begins...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice-help ends...
    [Sep 27, 2008 12:12:58 PM] Started application : BO13
    [Sep 27, 2008 12:12:58 PM] Binding web application(s) to site default-web-site begins...
    [Sep 27, 2008 12:12:58 PM] Binding backoffice web-module for application BO13 to site default-web-site under context root backoffice13dev
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.springframework.web.context.ContextLoaderServlet for web application backoffice
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.quartz.ee.servlet.QuartzInitializerServlet for web application backoffice
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.apache.struts.action.ActionServlet for web application backoffice
    [Sep 27, 2008 12:13:05 PM] Binding backoffice-help web-module for application BO13 to site default-web-site under context root backoffice-help
    [Sep 27, 2008 12:13:05 PM] Initializing Servlet: oracle.help.web.OHWController for web application backoffice-help
    [Sep 27, 2008 12:13:06 PM] Initializing Servlet: oracle.cabo.servlet.UIXServlet for web application backoffice-help
    [Sep 27, 2008 12:13:06 PM] Binding web application(s) to site default-web-site ends...
    [Sep 27, 2008 12:13:06 PM] Application Deployer for BO13 COMPLETES. Operation time: 85020 msecs
    Thanks
    Hari

    Can you tell me what's the status of components (value of "In sync" column) when you run "dcmctl getState" command?
    Thanks
    Shail

  • Problem in deploying an ear file in weblogic 8.1 SP5

    Hi,
    When I tried deploying my ear file in Weblogic 8.1 SP5, I am getting the following error:
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for counter-ejb.jar
    Module: counter-ejb.jar Error: Exception preparing module: EJBModule(counter-ejb.jar,status=NEW)
    Unable to deploy EJB: com_liferay_counter_service_ejb_CounterServiceEJB from counter-ejb.jar:
    [EJB:011026]The EJB container failed while creating the java:/comp/env namespace for this EJB deployment.
    weblogic.deployment.EnvironmentException: [EJB:010174]The resource-ref 'mail/MailSession' declared in the ejb-jar.xml descriptor has no JNDI name mapped to it. The resource-ref must be mapped to a JNDI name using the resource-description element of the weblogic-ejb-jar.xml descriptor.
    at weblogic.ejb20.deployer.EnvironmentBuilder.addConnectorRef(EnvironmentBuilder.java:294)
    at weblogic.ejb20.deployer.EnvironmentBuilder.addResourceReferences(EnvironmentBuilder.java:232)
    at weblogic.ejb20.deployer.EJBDeployer.setupEnvironmentContext(EJBDeployer.java:384)
    at weblogic.ejb20.deployer.EJBDeployer.setupEnvironmentFor(EJBDeployer.java:1181)
    at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:952)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1437)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3149)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1590)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1234)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1077)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2530)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2480)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2484)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    The config.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain ConfigurationVersion="8.1.5.0" Name="mydomain">
    <Server ListenAddress="" ListenPort="7001" Name="myserver"
    NativeIOEnabled="true" ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.5.0">
    <SSL Enabled="false" HostnameVerificationIgnored="false"
    IdentityAndTrustLocations="KeyStores" Name="myserver"/>
    </Server>
    <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
    <WSReliableDeliveryPolicy DefaultRetryCount="10"
    DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
    <JDBCConnectionPool
    DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    Name="LiferayPool" PasswordEncrypted="{3DES}MO3m0i6yVqM="
    Properties="user=lportal;url=jdbc:microsoft:sqlserver://localhost:1433;selectMethod=cursor;userName=lportal;dataSourceName=SQL2000JDBC;databaseName=lportal;serverName=localhost"
    Targets="myserver" TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT * from sysobjects" URL="jdbc:microsoft:sqlserver://localhost:1433"/>
    <JDBCTxDataSource JNDIName="jdbc/LiferayPool" Name="LiferayPool"
    PoolName="LiferayPool" Targets="myserver"/>
    <Security Name="mydomain"
    PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <EmbeddedLDAP
    CredentialEncrypted="{3DES}VKU1Z+Rt+9H2BdJ/IWLykO3UHDGbDN2w3so0iy8xk1o=" Name="mydomain"/>
    <SecurityConfiguration
    CredentialEncrypted="{3DES}HVQXen+OHn1WVUhPVXQ5Etq0wZGW3TnCcMyK65ekuw56D9CS2M/ODdh/PomFZBYLRYlkhysTEvGDijpcBUYz6FzUcyq5JYry"
    Name="mydomain" RealmBootStrapVersion="1"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <JMSServer Name="WSStoreForwardInternalJMSServermyserver"
    Store="FileStore" Targets="myserver">
    <JMSQueue CreationTime="1155021233552"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueuemyserver"/>
    <JMSQueue CreationTime="1155021233723"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueuemyserver"/>
    </JMSServer>
    <MailSession JNDIName="mail/MailSession" Name="mail/MailSession"
    Properties="mail.pop3.host=localhost;mail.imap.host=localhost;mail.transport.protocol=smtp;mail.smtp.host=localhost;mail.store.protocol=imap" Targets="myserver"/>
    </Domain>
    The ejb-jar.xml is :
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <enterprise-beans>
              <session>
                   <display-name>CounterServiceEJB</display-name>
                   <ejb-name>com_liferay_counter_service_ejb_CounterServiceEJB</ejb-name>
                   <home>com.liferay.counter.service.ejb.CounterServiceHome</home>
                   <remote>com.liferay.counter.service.ejb.CounterServiceEJB</remote>
                   <ejb-class>com.liferay.counter.service.ejb.CounterServiceEJBImpl</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Bean</transaction-type>
                   <resource-ref>
                        <res-ref-name>jdbc/LiferayPool</res-ref-name>
                        <res-type>javax.sql.DataSource</res-type>
                        <res-auth>Container</res-auth>
                        <res-sharing-scope>Shareable</res-sharing-scope>
                   </resource-ref>
                   <resource-ref>
                        <res-ref-name>mail/MailSession</res-ref-name>
                        <res-type>javax.mail.Session</res-type>
                        <res-auth>Container</res-auth>
                   </resource-ref>
              </session>
         </enterprise-beans>
         <assembly-descriptor>
              <method-permission>
                   <unchecked />
                   <method>
                        <ejb-name>com_liferay_counter_service_ejb_CounterServiceEJB</ejb-name>
                        <method-name>*</method-name>
                   </method>
              </method-permission>
         </assembly-descriptor>
    </ejb-jar>
    The weblogic-ejb-jar.xml is:
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN" "http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>com_liferay_counter_service_ejb_CounterServiceEJB</ejb-name>          
              <reference-descriptor>
              <resource-description>
              <res-ref-name>mail/MailSession</res-ref-name>
              <jndi-name>MailSession</jndi-name>
              </resource-description>
              </reference-descriptor>
              <jndi-name>com_liferay_counter_service_ejb_CounterServiceEJB</jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Please Help!
    Thanks in Advance.
    - Karthikeyan

    Hi,
    I am still getting the error even after changing the JNDI name.
    The modified weblogic-ejb-jar.xml is:
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN" "http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>com_liferay_counter_service_ejb_CounterServiceEJB</ejb-name>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>mail/MailSession</res-ref-name>
    <jndi-name>mail/MailSession</jndi-name>
    </resource-description>
    </reference-descriptor>
    <jndi-name>com_liferay_counter_service_ejb_CounterServiceEJB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Thanks..
    - Karthikeyan

  • How to deploy .WAR or .EAR  or .SDA file

    dear friends,
    I created a dictionary file and an ear file.
    From Netweaver studio i configured SAP J2EE Engine with the IP address and the port number as 3601 ( even i tried 3601, 50000)
    But after selecting file and click on deploy, it is giving
    Deployment aborted message.
    But i can deploy .par file from netweaver with out any problem.
    Can anybody tell me how to deploy .ear and .sda files
    What are other ways i can deploy
    early reply appreciatd
    kantha

    Hi Kantha,
    you can try to deploy via SDM (Software Deployment Manager)! Check this link for more info: http://help.sap.com/saphelp_webas630/helpdata/en/05/4fac3e00c8b014e10000000a114084/content.htm
    Hope this helps,
    Robert

  • Packaging & deploying an ear file

    I am trying to write a script to package and deploy our application from a source-code directory structure. The script is named build.cmd and I've tried to model it off of the build.cmd script that ships with the sample PetStore application. I've attached the build.cmd file.
    I can get the script to work, except for the part where it tries to pre-compile JSP's. However, when I try to login to the "Login" servlet, I get the following error:
    java.lang.NoClassDefFoundError: com/edeploy/util/EdeployConfig
    at com.edeploy.pers.Login.defaultAction(Login.java:67)
    at com.edeploy.pers.Login.doPost(Login.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    This is even though the EdeployConfig.class file is packaged in the .ear. I think it has something to do with the web.xml file in the war file - but
    I can't get it to work.
    The web.xml file is as follows:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!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>WebTier</display-name>
    <description>no description</description>
    <servlet>
    <servlet-name>Login</servlet-name>
    <display-name>LoginServlet</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.pers.Login</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/pers/Login</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>EdeployConfig</servlet-name>
    <display-name>EdeployConfig</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.util.EdeployConfig</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>EdeployConfig</servlet-name>
    <url-pattern>com/edeploy/util/EdeployConfig</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>120</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>/edeploy.html</welcome-file>
    </welcome-file-list>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/util/ErrorHandler.jsp</location>
    </error-page>
    <resource-ref>
    <res-ref-name>jdbc/DBConn</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>edeploy.html</form-login-page>
    <form-error-page>/pers/LoginFailed.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <env-entry>
    <env-entry-name>serverType</env-entry-name>
    <env-entry-value>WebLogic Server 6.0</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    </web-app>
    [att1.html]
    [build.cmd]

    I am trying to write a script to package and deploy our application from a source-code directory structure. The script is named build.cmd and I've tried to model it off of the build.cmd script that ships with the sample PetStore application. I've attached the build.cmd file.
    I can get the script to work, except for the part where it tries to pre-compile JSP's. However, when I try to login to the "Login" servlet, I get the following error:
    java.lang.NoClassDefFoundError: com/edeploy/util/EdeployConfig
    at com.edeploy.pers.Login.defaultAction(Login.java:67)
    at com.edeploy.pers.Login.doPost(Login.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    This is even though the EdeployConfig.class file is packaged in the .ear. I think it has something to do with the web.xml file in the war file - but
    I can't get it to work.
    The web.xml file is as follows:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!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>WebTier</display-name>
    <description>no description</description>
    <servlet>
    <servlet-name>Login</servlet-name>
    <display-name>LoginServlet</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.pers.Login</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/pers/Login</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>EdeployConfig</servlet-name>
    <display-name>EdeployConfig</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.util.EdeployConfig</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>EdeployConfig</servlet-name>
    <url-pattern>com/edeploy/util/EdeployConfig</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>120</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>/edeploy.html</welcome-file>
    </welcome-file-list>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/util/ErrorHandler.jsp</location>
    </error-page>
    <resource-ref>
    <res-ref-name>jdbc/DBConn</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>edeploy.html</form-login-page>
    <form-error-page>/pers/LoginFailed.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <env-entry>
    <env-entry-name>serverType</env-entry-name>
    <env-entry-value>WebLogic Server 6.0</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    </web-app>
    [att1.html]
    [build.cmd]

  • Error deploying an ear file

    When I try to hot deploy an ear file I get the following error message in the log
    file
    <Nov 15, 2002 9:05:18 AM PST> <Error> <J2EE> <Error undeploying application asd:
    null> <Nov 15, 2002 9:05:18 AM PST> <Error> <Management> <InvocationTargetException
    setting attribute Deployed on MBean mydomain:Location=myserver,Name=asd,Type=ApplicationConfig
    to value false. Method: public void weblogic.management.mbeans.custom.Application.setDeployed(boolean)
    throws weblogic.manageme nt.DeploymentException,weblogic.management.UndeploymentException
    java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
    at javax.servlet.GenericServlet.log(GenericServlet.java:300) at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
    at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:451)
    at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:434)
    at weblogic.servlet.internal.WebAppServletContext.destroyServlets(WebAppServletContext.java:3805)
    at weblogic.servlet.internal.WebAppServletContext.shutdown(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletContextManager.removeContext(ServletContextManager.java:153)
    at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:519) at weblogic.j2ee.WebAppComponent.undeploy(WebAppComponent.java:90)
    at weblogic.j2ee.Application.undeploy(Application.java:285) at weblogic.j2ee.J2EEService.undeployApplication(J2EEService.java:232)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:370)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:300)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1401)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:894)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:296)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:393)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:299)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy18.setDeployed(Unknown
    Source) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:748)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1098)
    --------------- nested within: ------------------ weblogic.management.UndeploymentException:
    - with nested exception: [java.lang.NullPointerException] at weblogic.j2ee.J2EEService.undeployApplication(J2EEService.java:248)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:370)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:300)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1401)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:894)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:296)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:393)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:299)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy18.setDeployed(Unknown
    Source) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:748)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1098)
    >

    Hi Chandra,
    One of the reason for this problem could be that
    your LDAP server has got corrupted. To verify that
    if possible, try to deploy this in any other
    instance of application server pointing to a
    different LDAP.
    Another reason could be, problem with your
    build.xml file. Did you build this myapp.ear
    from scratch or did you use the build.xml from
    one of our sample application?
    If you have used one of our sample application
    build.xml, there is a high possibility that
    you might not have changed the name of your
    application in one of the entries.
    Thank you

  • UndeclaredThrowableException when deploying a ear file in admin server 6.1

    Hi,
    I am trying to run ATG Dynamo 5.6 on top of weblogic 6.1
    Dynamo provides a EAR file which will be deployed at the time of weblogic startup.
    But, when i start weblogic, I got the following error:
    Error in deploying dyn.ear
    java.util.UndeclaredThrowableException
    When i checked in the log file, I saw error in loading dyn.ear - StringIndexOutofBounds Exception.
    Please help,
    Thanks
    Bala.

    Can you show us the full stack trace / error message?
    -- Rob
    Bala wrote:
    Hi,
    I am trying to run ATG Dynamo 5.6 on top of weblogic 6.1
    Dynamo provides a EAR file which will be deployed at the time of weblogic startup.
    But, when i start weblogic, I got the following error:
    Error in deploying dyn.ear
    java.util.UndeclaredThrowableException
    When i checked in the log file, I saw error in loading dyn.ear - StringIndexOutofBounds Exception.
    Please help,
    Thanks
    Bala.

  • Deploying an ear file in Sun Web Server

    I have an ear file that we use to deploy to weblogic. Is it possible to deploy an ear file to Sun WEb Server 6.0? Instead of deploying the war files one-by-one?
    If yes, what are the steps?
    Thanks.
    Beth

    No, Sun ONE Web Server does not support ear files; ear files are typically the domain of J2EE application servers.

Maybe you are looking for

  • I have iphone 4 ios 5.0.1 and i want to restore it to ios 6.1.2 not to 7.0.2 does it works?

    i have iphone 4 ios 5.0.1 and i want to restore it to ios 6.1.2 not to 7.0.2 does it works?

  • Can't change default block size in dbca

    10.1.0.3 solaris I am using the dbca to create a database. When I go to the sizing screen and try to change the default block size this option is always greyed out at 8k. does anyone know why? this happens even when i pick a data warehouse template.

  • MDG-F: Error when opening the Change Request

    Hi MDG Experts In MDG-Finance, when i'm opening the Change Request (CR Type: 0G_S002), to "finalize processing", i get this error message: "Object ID 060822EA65231EE3A7DB2A05A0AB8E61 is not valid". As a result the single processing option does not pu

  • Very slow initial back up

    I have just got my new 1TB Time capsule and set it up but it appears VERY SLOW!!!! in 12 hrs it has done 10gb? I have tried restarting with a LAN connection? I just wondered if anyone else is having the same problem? or any idea why it is so slow? th

  • Is there a purpose for safari extensions?

    is there a purpose for safari extensions? is it okay to have them turned off? What important features do they add to safari?