EAR specification

What is a valid EAR? Can someone direct me to a specification? We are building an EAR using ant's ear task. This ear deploys and runs fine on both JBoss 3.0 and JRun 4. But when we run Sun's verifier tool from J2EE 1.3.1 there is a NullPointerException, apparently trying to read a library jar. This happens also if the jar in question is extracted and verified. The library jar contains only plain Java classes. There are also some ERRORS and WARNINGS on the ejb.jar too.
We we want to make our application verify and deploy on the RI server. Can someone help?
Thanks,
-Richard Brewster

Richard,
The following is the DTD for the application.xml file in the META_INF path:
http://java.sun.com/dtd/application_1_3.dtd
If you have installed and started the J2EE RI server, you should be able to access the following DTD for the sun-j2ee-ri.xml file in the same path:
http://localhost:8000/sun-j2ee-ri_1_3.dtd
Problems with trying to access library jars can sometimes be due to the security permissions on the server. You might need to add the following to your server.policy and/or client.policy files in $J2EE_HOME/lib/security/ path:
grant
   java.lang.RuntimePermission "loadLibrary.*";
}If you know the library you wish to load and still wish to restrict access to other libraries, replace the * with the name of the library.
This should get you started. Without knowing the exact nature of the errors and warnings its pretty hard to help any further.
Ben New
[email protected]
Leftclick Software Development
http://www.leftclick.com.au/

Similar Messages

  • EJB 3.0 local lookup from POJO in WLS Cluster

    Hello,
    I'm developing on JDeveloper Studio Edition Version 11.1.2.3.0 and deploying to a WebLogic 10.3.5 Cluster.
    I have developed an EJB 3.0 stateless session bean and I need to invoke it from a POJO within the same EAR, specifically an ADF EntityImpl Class.
    Up to this point, I've only invoked EJBs using injection via an @EJB annotation, and have never done a full lookup.
    Could somebody please provide a verbose instruction on how to obtain invoke an EJB 3.0 SLSB via local interface from a POJO when running on a WLS cluster?
    As I see it I have two problems to solve.
    1) Obtaining a reference to the initial context in a cluster.
    2) Using that to get a reference to the local interface of the bean, which I don't think is on the global JNDI tree.
    Many thanks.
    Edited by: user576183 on Dec 5, 2012 4:16 PM

    Re: Unable to lookup in InitialContext a Local EJB in Weblogic 10.3.5 (EJB 3.0)

  • Deployment best practice

    Looking to setup a deploy to live strategy for a relatively new team, the options are:
    option-1) Build in test environment using ant tasks and move the war, jar etc. to live. With the live specific properties in a separate file
    option-2) Make a ant task that reads properties files and compiles a war, jar, ear specific to the environment. The only issue
    here is the war file will be specific to environment.
    What are the pros & cons of each?
    Any suggestions will be greatly appreciated.
    TIA,
    Raj

    Thanks for the links.
    The particular item we were concerned was, how to handle environment specific values.
    Seems like this is the best to go...
    1) Keep the application binaries/byte-code independent of the environment
    2) Factor the environment specific values into a separate resource xml or properties file
    Based on which, the way to go about would be to build the jars/wars etc in test environment and copy them to live instead of
    rebuilding them in live.
    Cheers,
    Raj

  • Updating Specific Jar in an EAR file

    Hi All,
    Is it possible to update only some jar files in an EAR file.
    This is what I wanted to do. My EAR structure is something like this-
    A.ear
    + B.jar
    + APP-INF/lib/C.jar
    I want to update the B.jar and C.jar with a few class files that I have. Will it be possible to; inside ear and update the specific jar.
    I know if it is a single jar - then that jar -u does the trick.
    Thanks much in advance,
    - Anand<pre></pre>

    Hi,
    I haven't tried what you're asking specifically, but an EAR is, I believe, a .ZIP file with a specific directory structure. So, I'm thinking that you should be able to either:
    1) Unzip the EAR, copy the new JAR (overwriting the old JAR), then re-zip to build the new EAR, or
    2) Just use a ZIP tool to do an update of the JAR(s) to replaced.
    Jim

  • How to access static resources in ear without specifing context-root

    Hello, i have a problem with my ear.
    The war's structure is like this:
    ---/jsp
    ---/css
    ---/images/ViewRisposte.gif
    ---/xsl/Request.xsl
    ---/Common/data.xsl
    /error.xsl
    /input.xsl
    xsl files reference css and images files that are contained in css and images dir.
    I can't use the "../" to specify css and images path into xsl and jsp due to security policy setting on the Http server (and I can't change this policy).
    In the ear's application.xml is specified the context root of the module web with the name SABEARWeb
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
    <display-name>SABEARWeb module</display-name>
    <module>
    <web>
              <web-uri>SABEARWeb.war</web-uri>
              <context-root>SABEARWeb</context-root>
         </web>
    </module>
    </application>
    For example with this following code (Request.xsl), how can i replace the "../" notation to access xsl and image resouces without write the context root? How i can insert the images and css references into xsl and jsp files?
    <xsl:import href="../Common/data.xsl" />
    <img align="center" width="20" src="../images/ViewRisposte.gif" id="viewXslRisp" title="Visualizza Risposta">...</img>
    Thanks a lot

    >>As I understand I should change View1 by handling command of button “Edit”, and then View 2 should be displayed, then I change data and then View1 should be updated. How to do it?
    For information about how to handle a command, please refer to my blog post:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/
    You could bind the Command property of the edit button to an ICommand property of VMMain. When this command is executed you could then send a message using an event aggregator or some kind of messenger. Please refer to my blog post for more information about
    how to for example use Prism's event aggregator class to pass events between view model classes:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/
    Andy has written an example of how to use MvvmLight's Messenger class:
    http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
    The concepts are the same but you will have to download and reference either Prism:
    https://www.nuget.org/packages/Prism/
    ...or MvvmLight: https://www.nuget.org/packages/MvvmLight/
    You then subcribe to this event or message in the main view model and change the value of the CurrentPageViewModel property whenever you recieve an event. Note that the class must implement the INotifyPropertyChanged interface and raise its PropertyChanged
    interface for this to work:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    This is how you are supposed to communicate between different view model classes.
    Hope that helps.
    Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question.

  • Error while deploying EAR : TLDs not found?

    Hi all,
    I encountered this error while trying to deploy an EAR using the NWDS for Netweaver CE 7.1.
    C:\usr\sap\MIT\J00\j2ee\cluster\server0\temp\deploy\work\deploying\ohs.ear1239681726594\convertwarfile\FCKeditor.tld (The system cannot find the file specified)
    I doublechecked the WAR inside the EAR file, and I found that the TLD is indeed in the WEB-INF directory of the WAR. This is the correct place to put it, yes?
    Should I reference to it in some other place? or should I move the TLDs to a different directory?
    Thank you for your assistance,
    Rajendra

    Hi, bojidar.
    No I don't think there are multiple copies of the TLD in my archive.  I suspect the problem lies on the fact that I imported the WAR from my tomcat deployment instead of building the archive directly from the Netweaver Development Studio. Some SAP specific deployment descriptors probably wasn't there.
    I have switched to trying to deploy directly from the NWDS though, and although I still haven't managed to deploy successfully, the problem is now different. I'll post about it in another thread.

  • JSTL class not found in EAR

    Hi,
    I have an EAR file that works fine in jboss 4.2.3 but i'm experiencing the following when trying to access the web app in Weblogic 10.3.2 (also on 10.0):
    Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/jsp/layouts/ModulesGeneralLayout.jsp'.
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServletException(ServletTilesRequestContext.java:298)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:200)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:179)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.buildView(JspTilesTwoViewHandlerImpl.java:450)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.buildTilesViewLikeContainer(JspTilesTwoViewHandlerImpl.java:354)
         ... 37 more
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:108)
         at jsp_servlet._jsp._layouts.__modulesgenerallayout._jspService(__modulesgenerallayout.java:146)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
         ... 40 more
    Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 52 more
    EAR contains a web application that uses myfaces (1.2) and tiles (2.0).
    Tried to use with jstl 1.2 / jsf 1.2 deployed as shared library and to reference it from EAR/web-app but
    getting the same exception.
    When trying to add the jstl jar manually to the classpath I'm getting a ClassCastException : java.lang.String
    originating from the jsp file.
    Any ideas ??

    Tried adding the following to weblogic-application.xml
         <library-ref>
              <library-name>jstl</library-name>
              <specification-version>1.2</specification-version>
              <exact-match>true</exact-match>
         </library-ref>
         <library-ref>
              <library-name>jsf</library-name>
              <specification-version>1.2</specification-version>
              <exact-match>true</exact-match>
         </library-ref>
         <prefer-application-packages>
              <package-name>javax.faces.*</package-name>
              <package-name>org.apache.myfaces.*</package-name>
         </prefer-application-packages>
    and to weblogic.xml
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    but still getting the same
    java.lang.ClassNotFoundException - javax.servlet.jsp.jstl.core.Config.

  • Multiple EARs packaging the same resource adapter -- Weblogic Application S

    Hello,
    I had a question regarding JNDI and deploying multiple applications (EAR's) which package the same resource adapter running on Webloigc Application Server 9.1. I have an EAR file, ear1, which contains a resource adapter with connection factory with JNDI name say 'xyz' specified in the weblogic-ra.xml file. I have another EAR file, ear2, which again packages the same resource adapter with the same connection factory with JNDI name 'xyz'. Upon activating the 2nd EAR file, I get an exception 'javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.', as seen below:
    <May 8, 2006 10:29:27 AM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application 'JMS2JMS_eInsightweblogic2'.>
    <May 8, 2006 10:29:27 AM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.lang.AssertionError: Internal Error occurred, Assertion Failed: No Initial Context for Jndi: javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:217)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
    Truncated. see log file for complete stacktrace
    javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.
    at weblogic.connector.outbound.RAOutboundManager.getConnectionFactory(RAOutboundManager.java:721)
    at weblogic.connector.deploy.JNDIHandler.getConnectionFactory(JNDIHandler.java:1017)
    at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:871)
    at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:845)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    Truncated. see log file for complete stacktrace
    It seems like the 2nd EAR is trying to go across and lookup the connection factory from the 1st EAR. Does weblogic bind the RA's connection factory jndi name in the global jndi and is not specific to each EAR? Is there some flag or switch I can turn on to make the JNDI specific to each EAR?
    My weblogic deployment descriptor for the ra looks like the following:
    <weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90
    http://www.bea.com/ns/weblogic/90/weblogic-ra.xsd">
    <jndi-name>JMS2JMS_eInsightDeployment4_stcbpelra</jndi-name>
    <enable-access-outside-app>false</enable-access-outside-app>
    <enable-global-access-to-classes>false</enable-global-access-to-classes>
    <outbound-resource-adapter>
    <connection-definition-group>
    <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
    <connection-instance>
              <b><jndi-name>BPELConnectionFactory</jndi-name></b>
              <connection-properties>
              <pool-params>
              <initial-capacity>0</initial-capacity>
              <max-capacity>10000</max-capacity>
              <capacity-increment>1</capacity-increment>
              <shrinking-enabled>true</shrinking-enabled>
              <shrink-frequency-seconds>60</shrink-frequency-seconds>
              <match-connections-supported>false</match-connections-supported>
              </pool-params>
              <properties>
                   <property>
                        <name>BPELConnectionFactory</name>
                        <value>BPELConnectionFactory</value>
                   </property>
              </properties>
              </connection-properties>
         </connection-instance>
    </connection-definition-group>
    </outbound-resource-adapter>
    </weblogic-connector>

    Thanks for the reply... in my case this would be done by the active synch process so no GUI form is required. I will be getting a list of application ID for the user by LDAP AS. One i get it i will have to parse it and get the list of application user id. I am passing those ID;s to a workflow where I am forming the resource name as you mentioned
    for example:
    If i get user1#user2#user3 from AS i am separating them based on # using split and getting 3 different user id;s
    now i am forming a string with the resource name and passing it to the sub process in which i am checking out the user object, setting the user attributes and checking in the new view.
    user1#LDAP
    user2#LDAP|1
    user3#LDAP|2
    Problem ; When i run this user1 is getting created in LDAP but user2 and user3 are not. There entry is getting created in IDM.
    When I open the IDM object I get a yellow triangle (warning) and if I open the user object and hit save button IDM creates the user account on the LDAP.
    any help for further solving this problem would be appreciated.
    Regards,

  • How to share dependant jars across rars & ears / avoid classcast exceptions

    <b>How can one share dependant jars between a ear application and a resource adapter and avoid getting a ClassCastException? </b>
    <P>
    In some appservers(such as Oracle) the resource adapter is the parent of your ear classloader, so a single instance multiple classloader problem doesn't occur. But in some appservers such as BEA Weblogic this isn't the case. Not sure why BEA decided to make resource adapter class loader seperate and not the parent of ear loader...
    <P>
    If I bundle the resource adapter specific classes in the corresponding module archive file, I will get a class cast exception, becos I will have a <i>single instance and multiple class loader situation</i> (assuming resource adapters uses its own classloader).
    <P>
    Second question related to the above: Web logic documentation recommends that we bundle the common files in APP-INF direcotory for embedded resource adapter apps. If I start bundling the resource adapter in an ear file, for every ear app we will have a rar bundled. What about the JNDI names? won't you have to rename the resource adapter differently for each ear so that there is no jndi name clash? Doesn't this defeat the purpose of having one common connector for all apps?
    <P>
    Here is a detailed description of what I want:
    Let say you have a ear file. Let's say there is a common.jar shared between your ear application (say the ejb module uses it), and your resource adapter.
    <P>
    In the case of Oracle's OC4J I can see there won't be any problem of having this common.jar part of the resource adapter(RA). When the RA class loader loads the rar, it makes sure the common.jar files are accessible in the chain of all class loaders it is a parent of. So, the ear loader, ejb loader etc...will have visibility -> hence no class cast exception.
    <p>
    But what do clients do when they want to have their ear deployable across multiple appservers not just oc4j. BEA recently changed their class loader structure...their resource loader is no longer parent of the ear, so the ejb app in the ear doesn't have visibility into common.jar packaged with rar. So, the only solution was to bundle the common.jar file with the ear. But this causes problems, because we can have a situation where certain object instances (that are not serialized or copied) can be shared across class loaders. This ends up in the single instance multiple class loader situation->hence classcastexception.
    <p>
    The only solution I found was to make the common.jar file a shared library. That way only one copy of the class files are there for both the rar and the ear and its visibility is there not only for rar but for ear since it is loaded by the system class loader or shared library class loader (if ther eis one such).
    <P>
    Please convey best practise recommendation.
    Sudhakar

    Pete <[email protected]> wrote:
    Is there a way to have a non-EJB jar at the EJB classloader level ? Sure, just add it to the Class-Path: manifest entry in your ejb.jar.
    Dimitri

  • Loading applet for a jar within an ear

    Hi,
    Apologies if my question sounds ignorant, this is the first time i'm playing with applets.
    I'm trying to load an applet from a JAR (applet.jar) which contains all the files specific to the applet. The applet.jar resides within an ear (application.ear) which is deployed on JBoss.
    The applet related stuff is in the package com.dms.applet (which makes up the applet.jar)
    My index.html resides in a war file (webapp.war), which essentially contains a bunch of servlets. Index.html is a two frame page, which tries to load the applet in one frame and a servlet in another (servlets work fine).
    My <APPLET> tag for the frame in which the applet is displayed (is another html file - applet.html) looks something like this:
    <html><body>
    <APPLET
         code="com.dms.applet.NavigationApplet.class"
         codebase=./"
         archive="applet.jar, application.ear"
         width=200
         height=500
    >
    </APPLET></body></html>
    however, the applet always fails to load, i get the following exception when i open the java console:
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    load: class com.dms.applet.NavigationApplet.class not found.
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It seems evident that the applet class loader can't find my applet.class and hence can't load it. I guess that its something wrong with my <APPLET> tag, but can't quite seem to get my finger on it. Do i need to explicitly tell the class loader to look for it in the applet.jar which is in the applicatin.ear?
    Any help would be very much appreciated.
    Thanks in advance
    EnterpriseJavaBones

    Hi,
    I managed to fix this problem. For those who mite come across the same issue in the future, this is how i did it.
    I put the applets code in the war file under an applet dir. That the the index.html is in the root (of the war dir) and the applets code is in a /applet dir.
    Hence the codebase simply reads, codebase="applet/"
    Cheers
    EnterpriseJavaBones

  • Run a ear application in websphere 5.1

    HI;
    I try to run a ear application in websphere 5.1 but I get this error ..
    I apreciate your help,
    thanks
    [6/9/05 18:59:29:922 CDT] 3d77aebf EJBContainerI E WSVR0209E: Unable to prepare EJB jar Myapp.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.SessionImpl(TestClassBean) (transactionType: Container, sessionType: Stateless)
    java.lang.ClassNotFoundException: com.ge.cf.service.test.interfaces.EJSStatelessTestClassBeanHomeBean_58cbc0ba
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:351)
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
         at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:2573)
         at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:888)
         at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:980)
         at com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContainerImpl.java:796)
         at com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:1517)
         at com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataMgrImpl.java:115)
         at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:159)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:350)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
         at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
         at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
         at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
         at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
         at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
         at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
         at java.lang.reflect.Method.invoke(Method.java:386)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

              Hi Jacek,
              Thank you for your suggestion. I changed the Web App version to 1.2 instead of 2.2. It worked. Thanks once again for the timely response. I really do appreciate it.
              Trisula Pani Siripurapu.
              Jacek Laskowski <[email protected]> wrote:
              >"Trisula P. Siripurapu" wrote:
              >>
              >> I have a Web.xml which I copied the one from their documentation and edited for my servlet specific data. When I try to deploy it I am getting the following error.
              >> Wed Nov 15 17:10:37 EST 2000:<E> <HTTP> Error reading Web application 'C:/tomcat
              >> /webapps/La/'
              >> java.net.UnknownHostException: java.sun.com
              >
              >I remember having the same problem before I added the latest service
              >pack (SP 6). If you don't want to download it, just change DOCTYPE to
              >
              ><!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
              >1.2//EN' 'http://java.sun.com/j2ee/dtds/webapp_2_2.dtd'>
              >
              >and it should work. Notice the change of Web Application version - 1.2
              >rather then 2.2. I'm (almost) sure, I saw one example - examples/webapp
              >(?) - with this header. Take a look at the accompanying examples.
              >
              >When you apply SP6, things should work as they suppose to.
              >
              >> Trisula P. Siripurapu
              >
              >Jacek Laskowski
              

  • Error while deploying ear using Oracle weblogic 11g in local machine

    Hi,
    Initially I installed Jdeveloper along with Weblogic and got the below error while deploying. Later I uninstalled Jdeveloper and weblogic, etc and installed a new weblogic on my local machine and tried to deploy ear. But still got the same error. With the same installable file and same ear, we could deploy successfully on my colleagues' machine. Any idea?.
    Satus: deploy Failed
    Description: [Deployer:149026]deploy application part on AdminServer.
    Begin Time: Thu Feb 03 13:45:01 EST 2011
    End Time: Thu Feb 03 13:45:11 EST 2011
    Exception: [J2EE:160149]Error while processing library references. Unresolved Webapp Library references for "ServletContext@22411886[app:part module:part path:/part spec-version:2.5]", defined in weblogic.xml [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false].
    Regards,
    Rama

    and also post the section of weblogic.xml which refers to JSTL library
    some entry like <library-ref>

  • Unable to deploy a simple WAR / EAR file on Standalone OC4J instance

    All,
    This issue is baffling me since yesterday and while I continue to look for options , would appreciate if anyone of you has run into something similar and give me some hints on how to proceed on this ..
    I downloaded the Standalone OC4J ( 10.1.3 ) from otn.oracle.com and also downloaded JDK 1.5 Update 12 from the Sun Website and installed it on my local
    Windows XP machine. Everything works well and the application gets deployed.
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already
    has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    However when trying to deploy even a simple HelloWorld.jsp file packaged as an EAR or WAR , we get these errors..
    [Aug 8, 2008 9:40:27 AM] Application Deployer for CISS STARTS.
    [Aug 8, 2008 9:40:27 AM] Copy the archive to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    [Aug 8, 2008 9:40:28 AM] Initialize /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear begins...
    [Aug 8, 2008 9:40:28 AM] Unpacking CISS.ear
    [Aug 8, 2008 9:40:28 AM] Error while unpacking CISS.ear java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:97) at oracle.oc4j.util.FileUtils.unjar(FileUtils.java:309) at oracle.oc4j.util.FileUtils.autoUnpack(FileUtils.java:488) at com.evermind.server.deployment.EnterpriseArchive.(EnterpriseArchive.java:234) at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
    [Aug 8, 2008 9:40:28 AM] Operation failed with error: Unable to find/read file META-INF/application.xml in /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS (META-INF/application.xml)
    Using the above error messages , I certainly do not find the CISS.ear file getting copied to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    which explains the rest of the messages.
    I have tried placing the EAR file both remote and local on the Application Server box but the results remain the same. Assuming it might be a permissions issue , we have opened up all the permissions on this OC4J home ( recursively )
    to everyone ..
    Is there a specific version of tar / unzip / jar required to deploy EARs / WARs on Solaris 5.9 running JDK 1.5 Update 12.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    Also looked at Bug:6330834 but am not very sure if this applies to our case because all these drives are local to the Sun box.
    Other than attempting a reinstall and opening an Service Request with Oracle , I am running out of ideas at this time ..
    So any ideas / hints would be gladly accepted :)
    Vishwa

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

  • Error deploying ear in WLS6.1

    I've developed and export my *.ear file from IBM Websphere Application Developer
    4. I'm pretty sure I didn't use any WebSphere specific calls.
    However, when I tried to deploy the ear into WLS6.1, I get the following error
    (see attached).
    I think it's because I didn't have the weblogic-ejb-jar.xml file. I've consulted
    the manual and been advised that I need to generate the descriptor manually by
    using the following command: -
    java weblogic.ant.taskdefs.war.DDInit C:\MyApp
    But i got the following error: -
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/ant/taskdefs/war/DDInit
    Any help is appreciated.
    BTW:All my apps runs under Win2K

    hi michael,
    I had the same problem once. There are 2 possibilities:
    1. You didn't use setEnv.cmd to set the classpath.
    2. Your weblogics.jar file in /lib doesnt contain the necessary classes.
    I found out that 6.01 sp1 didnt have the ant tool in the weblogic.jar file
    so I upgraded to 6.1 sp3.
    "Michael" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]..
    >
    I've developed and export my *.ear file from IBM Websphere ApplicationDeveloper
    4. I'm pretty sure I didn't use any WebSphere specific calls.
    However, when I tried to deploy the ear into WLS6.1, I get the followingerror
    (see attached).
    I think it's because I didn't have the weblogic-ejb-jar.xml file. I'veconsulted
    the manual and been advised that I need to generate the descriptormanually by
    using the following command: -
    java weblogic.ant.taskdefs.war.DDInit C:\MyApp
    But i got the following error: -
    Exception in thread "main" java.lang.NoClassDefFoundError:weblogic/ant/taskdefs/war/DDInit
    >
    Any help is appreciated.
    BTW:All my apps runs under Win2K

  • Error deploying EAR that is a Webservice

    In the SAP NetWeaver Developer Studio, when I select the option "Deploy to J2EE engine" on my EAR file, I get the following error:
                         java.rmi.RemoteException: Cannot deploy application sap.com/LDAPManagerEAR..
                         Reason: Incorrect application sap.com/LDAPManagerEAR:
                         Bean EB_bindBean: Remote home interface com.upc.ldap.ejb.EB_bindHome must be a valid RMI-IIOP remote interface.
                         Bean EB_bindBean: the return type for a create<METHOD> method of the session bean local home interface must be the session bean local interface type. EJB specification 7.10.8.
                         Error in the remote interface com.upc.ldap.ejb.EB_bind of bean EB_bindBean: No corresponding business method in the bean class com.upc.ldap.ejb.EB_bindBean was found for method bindLDAP.
                         Error in the local interface com.upc.ldap.ejb.EB_bindLocal of bean EB_bindBean: No corresponding business method in the bean class was found for method bindLDAP.; nested exception is:
                              com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/LDAPManagerEAR:
    Anybody can help me ? Thanks

    I?ve seen the code.
    You need to synchronize the interfaces and the business method. For instance, on the interface you have declared:
    public String bindLDAP(String username, String password)throws RemoteException;
    And then you attempt to implement:
    public String bindLDAP(String username, String password) throws NamingException
    Therefore the error:
    Error in the remote interface com.upc.ldap.ejb.EB_bind of bean EB_bindBean: No corresponding business method in the bean class com.upc.ldap.ejb.EB_bindBean was found for method bindLDAP.
    Also, you must be consisten with local-remote-home interfaces. You've declared the EB_bindLocalHome as LocalHome, but don't use it as return parameter on the EB_bindHome interface. Try the following:
    package com.upc.ldap.ejb;
    import javax.ejb.EJBHome;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    public interface EB_bindHome extends EJBHome {
          * Create Method.
         public  EB_bindLocalHome create() throws CreateException;
    You might want to use an EJB generator as on SAP Developer Studio to automate all these tasks and avoid revisiting the code.
    I hope it helps
    Regards

Maybe you are looking for