Add a exploded directory to EAR's classpath

i created a enterprise application using workshop, rather than import some *.jar
files to the application's lib, i wanna add a exploded directory to this application's
classpath. can anybody tell me how?
i copy the directory to {myapp}/APP-INF/lib, but didnt work! any body can help
me? thx in advance!
Roger

APP-INF/classes and APP-INF/lib/*.jar will be in the EAR's classpath
-- Rob
Roger Tang wrote:
i created a enterprise application using workshop, rather than import some *.jar
files to the application's lib, i wanna add a exploded directory to this application's
classpath. can anybody tell me how?
i copy the directory to {myapp}/APP-INF/lib, but didnt work! any body can help
me? thx in advance!
Roger

Similar Messages

  • Re: Exploded directory format in an EAR

              I am now trying to deploy the ear file in v6.1 sp2. Has anyone managed to deploy
              an ear where util / third party classes are stored in a lib directory of the ear
              and referenced in EJB-jar manifest.mf files using the classpath header?
              ie as documented in bea weblogic server bible on page 614/615
              EntApp/
              accountEJB.jar
              accountManager.war
              /lib/
              xerces.jar
              xalan.jar
              log4j.jar
              /META-INF/
              application.xml
              "erik" <[email protected]> wrote:
              >
              >This is hearsay but I was recommended to use v 6.1 SP 2.
              >/erik
              >
              >"Ivan" <[email protected]> wrote:
              >>
              >>I have a problem wrapping up an exploded directory format application
              >>into an ear
              >>file running weblogic 6.0sp2 on winnt 4. One of the things I would like
              >>to do
              >>is load a config file from a helper class without specifying a path.
              >>
              >>
              >>EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >>statementwebapp.war
              >>META-INF/application.xml lib/log4j.jar (and other third party jar files
              >>crimson.jar,
              >>jaxp.jar etc.)
              >>
              >>The third party jar files have been manually unjar'ed and re-jar'ed
              >without
              >>compression
              >>(after reading that a suggestion to someone else).
              >>
              >>WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >>- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >>- tag library
              >>descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >
              >>
              >>Some of the helper classes make use of configuration files (for example
              >>I have
              >>a Logger class that uses Log4j). Here is how I would like to access
              >the
              >>config
              >>file
              >>
              >>... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >>config ) ; ...
              >>
              >>I have tried putting the config.properties file in the WEB-INF/classes
              >>directory
              >>and in the WEB-INF directory, however they don't seem to be found by
              >>the class
              >>loader.
              >>
              >>EJB statement.jar contains an ejb with the following: uk...business.statement...
              >>- Statement ejb classes with ejbc generated stub and skeleton classes
              >>uk...util
              >>- Several Helper classes
              >>
              >>One such helper is Logger for which the Log4j jar file is needed. I
              >deploy
              >>the
              >>statement.jar file in the ear (as listed above). Weblogic throws an
              >error
              >>message
              >>saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >>org/apache/log4j/Category ie it cannot find the log4j package which
              >is
              >>referenced
              >>in the Class-Path header of the manifest.mf file and located in the
              >ear
              >>file under
              >>the lib directory.
              >>
              >>The manifest.mf file contains a line with the following: Class-Path:
              >>lib/log4j.jar
              >>lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >>classloader
              >>to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >>bible chap
              >>18) without needing to be referenced in the weblogic start up class
              >path.
              >>
              >>
              >>Can manifest class-path references be used like this in weblogic 6.0?
              >>Where should
              >>I put the application properties files in the war and jar files?
              >>
              >>Clarification much appreciated. Ivan.
              >>
              >>PS: I had this application working in exploded directory format with
              >>the jar files
              >>in the system classpath and the properties file locations hardcoded
              >in
              >>the class
              >>files. (not ideal for a clustered production environment!)
              >>
              >
              

              This is hearsay again.
              These people did as you did no compression etc. they were able to put the application's
              utility classes in a lib but not the third party jars. They suspected that the
              ear where to big to deploy so they put all thirdparty jars in the system classpath
              and then the internal utility classes were loaded by using CLASSPATH in the manifest
              file.
              I gave up because I could deploy everything except servlets and I went back to
              exploded deployment. That bloody EAR thing took to much time.
              If you succeed in everything including warfiles with JSPs and servlets (those
              I was talking about only had EJBs)
              let me know.
              I also had a peculiar problem with EARs that a cascading stylesheet was not found
              in the ear but it worked in an exploded it worked fine
              Otherwise I must recommend Orion, which I had up and running in a matter of days
              when ported from WLS 5.1.
              Good luck.
              "Ivan" <[email protected]> wrote:
              >
              >I am now trying to deploy the ear file in v6.1 sp2. Has anyone managed
              >to deploy
              >an ear where util / third party classes are stored in a lib directory
              >of the ear
              >and referenced in EJB-jar manifest.mf files using the classpath header?
              >
              >ie as documented in bea weblogic server bible on page 614/615
              >EntApp/
              > accountEJB.jar
              > accountManager.war
              > /lib/
              > xerces.jar
              > xalan.jar
              > log4j.jar
              > /META-INF/
              > application.xml
              >
              >"erik" <[email protected]> wrote:
              >>
              >>This is hearsay but I was recommended to use v 6.1 SP 2.
              >>/erik
              >>
              >>"Ivan" <[email protected]> wrote:
              >>>
              >>>I have a problem wrapping up an exploded directory format application
              >>>into an ear
              >>>file running weblogic 6.0sp2 on winnt 4. One of the things I would
              >like
              >>>to do
              >>>is load a config file from a helper class without specifying a path.
              >>>
              >>>
              >>>EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >>>statementwebapp.war
              >>>META-INF/application.xml lib/log4j.jar (and other third party jar files
              >>>crimson.jar,
              >>>jaxp.jar etc.)
              >>>
              >>>The third party jar files have been manually unjar'ed and re-jar'ed
              >>without
              >>>compression
              >>>(after reading that a suggestion to someone else).
              >>>
              >>>WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >>>- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >>>- tag library
              >>>descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >>
              >>>
              >>>Some of the helper classes make use of configuration files (for example
              >>>I have
              >>>a Logger class that uses Log4j). Here is how I would like to access
              >>the
              >>>config
              >>>file
              >>>
              >>>... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >>>config ) ; ...
              >>>
              >>>I have tried putting the config.properties file in the WEB-INF/classes
              >>>directory
              >>>and in the WEB-INF directory, however they don't seem to be found by
              >>>the class
              >>>loader.
              >>>
              >>>EJB statement.jar contains an ejb with the following: uk...business.statement...
              >>>- Statement ejb classes with ejbc generated stub and skeleton classes
              >>>uk...util
              >>>- Several Helper classes
              >>>
              >>>One such helper is Logger for which the Log4j jar file is needed. I
              >>deploy
              >>>the
              >>>statement.jar file in the ear (as listed above). Weblogic throws an
              >>error
              >>>message
              >>>saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >>>org/apache/log4j/Category ie it cannot find the log4j package which
              >>is
              >>>referenced
              >>>in the Class-Path header of the manifest.mf file and located in the
              >>ear
              >>>file under
              >>>the lib directory.
              >>>
              >>>The manifest.mf file contains a line with the following: Class-Path:
              >>>lib/log4j.jar
              >>>lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >>>classloader
              >>>to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >>>bible chap
              >>>18) without needing to be referenced in the weblogic start up class
              >>path.
              >>>
              >>>
              >>>Can manifest class-path references be used like this in weblogic 6.0?
              >>>Where should
              >>>I put the application properties files in the war and jar files?
              >>>
              >>>Clarification much appreciated. Ivan.
              >>>
              >>>PS: I had this application working in exploded directory format with
              >>>the jar files
              >>>in the system classpath and the properties file locations hardcoded
              >>in
              >>>the class
              >>>files. (not ideal for a clustered production environment!)
              >>>
              >>
              >
              

  • Exploded directory format in an EAR

              I have a problem wrapping up an exploded directory format application into an ear
              file running weblogic 6.0sp2 on winnt 4. One of the things I would like to do
              is load a config file from a helper class without specifying a path.
              EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar statementwebapp.war
              META-INF/application.xml lib/log4j.jar (and other third party jar files crimson.jar,
              jaxp.jar etc.)
              The third party jar files have been manually unjar'ed and re-jar'ed without compression
              (after reading that a suggestion to someone else).
              WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              - servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds - tag library
              descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              Some of the helper classes make use of configuration files (for example I have
              a Logger class that uses Log4j). Here is how I would like to access the config
              file
              .. private static final String config = "config.properties" ; PropertyConfigurator.configure(
              config ) ; ...
              I have tried putting the config.properties file in the WEB-INF/classes directory
              and in the WEB-INF directory, however they don't seem to be found by the class
              loader.
              EJB statement.jar contains an ejb with the following: uk...business.statement...
              - Statement ejb classes with ejbc generated stub and skeleton classes uk...util
              - Several Helper classes
              One such helper is Logger for which the Log4j jar file is needed. I deploy the
              statement.jar file in the ear (as listed above). Weblogic throws an error message
              saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              org/apache/log4j/Category ie it cannot find the log4j package which is referenced
              in the Class-Path header of the manifest.mf file and located in the ear file under
              the lib directory.
              The manifest.mf file contains a line with the following: Class-Path: lib/log4j.jar
              lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise classloader
              to pick up the log4j.jar and xml parsing classes (ref. weblogic server bible chap
              18) without needing to be referenced in the weblogic start up class path.
              Can manifest class-path references be used like this in weblogic 6.0? Where should
              I put the application properties files in the war and jar files?
              Clarification much appreciated. Ivan.
              PS: I had this application working in exploded directory format with the jar files
              in the system classpath and the properties file locations hardcoded in the class
              files. (not ideal for a clustered production environment!)
              

              This is hearsay but I was recommended to use v 6.1 SP 2.
              /erik
              "Ivan" <[email protected]> wrote:
              >
              >I have a problem wrapping up an exploded directory format application
              >into an ear
              >file running weblogic 6.0sp2 on winnt 4. One of the things I would like
              >to do
              >is load a config file from a helper class without specifying a path.
              >
              >
              >EAR APP statementapp.ear contains: META-INF/MANIFEST.MF statement.jar
              >statementwebapp.war
              >META-INF/application.xml lib/log4j.jar (and other third party jar files
              >crimson.jar,
              >jaxp.jar etc.)
              >
              >The third party jar files have been manually unjar'ed and re-jar'ed without
              >compression
              >(after reading that a suggestion to someone else).
              >
              >WEB APP statementwebapp.war contains: all my jsp's at root level WEB-INF/classes/uk/.../servlets
              >- servlets WEB-INF/classes/uk/.../util - helper classes WEB-INF/tlds
              >- tag library
              >descriptors WEB-INF/web.xml & weblogic.xml - deployment descriptors
              >
              >Some of the helper classes make use of configuration files (for example
              >I have
              >a Logger class that uses Log4j). Here is how I would like to access the
              >config
              >file
              >
              >... private static final String config = "config.properties" ; PropertyConfigurator.configure(
              >config ) ; ...
              >
              >I have tried putting the config.properties file in the WEB-INF/classes
              >directory
              >and in the WEB-INF directory, however they don't seem to be found by
              >the class
              >loader.
              >
              >EJB statement.jar contains an ejb with the following: uk...business.statement...
              >- Statement ejb classes with ejbc generated stub and skeleton classes
              >uk...util
              >- Several Helper classes
              >
              >One such helper is Logger for which the Log4j jar file is needed. I deploy
              >the
              >statement.jar file in the ear (as listed above). Weblogic throws an error
              >message
              >saying cannot deploy statement (NoClassDefFound...): java.lang.NoClassDefFoundError:
              >org/apache/log4j/Category ie it cannot find the log4j package which is
              >referenced
              >in the Class-Path header of the manifest.mf file and located in the ear
              >file under
              >the lib directory.
              >
              >The manifest.mf file contains a line with the following: Class-Path:
              >lib/log4j.jar
              >lib/crimson.jar lib/jaxp.jar which I have read should allow the enterprise
              >classloader
              >to pick up the log4j.jar and xml parsing classes (ref. weblogic server
              >bible chap
              >18) without needing to be referenced in the weblogic start up class path.
              >
              >
              >Can manifest class-path references be used like this in weblogic 6.0?
              >Where should
              >I put the application properties files in the war and jar files?
              >
              >Clarification much appreciated. Ivan.
              >
              >PS: I had this application working in exploded directory format with
              >the jar files
              >in the system classpath and the properties file locations hardcoded in
              >the class
              >files. (not ideal for a clustered production environment!)
              >
              

  • Deploy web application with exploded directory format

    I am quite new with Oracle9iAS Containers for J2EE. Currently, my project is not using EJB, only JSP and Servlets. I want to deploy the war file with exploded directory format. I don't want to use the default web application directory j2ee/home/default-web-app. The "Using Oracle9iAS Containers for J2EE" get start documentation only explained how to deploy J2ee application. What about the web application without EJB jar file? Anybody knows how to do that. Please let me know.
    Thanks in advance.

    Though you don't have ejbs, you can still use the ear file format. This would be most convenient way of deploying.
    Use of a tool like Ant is recommended if you are not using JDeveloper.
    Also, you can findinfo on deploying using a exploded directory
    http://otn.oracle.com/docs/tech/java/oc4j/htdocs/getstart.htm#1027810
    But recommed having ear file as it is convenient. If you want to see an example of use of Ant and deploying using ear file
    check out one of the recently posted how-tos E.g. http://otn.oracle.com/tech/java/oc4j/htdocs/how-to-servlet-events.html

  • Exploded directory: wl6.0 sp2: how to define in config.xml?

    hi,
              how do i define a web server with exploded directory format. i dont want to
              use webcomponent because it creates a war and the jsp changes are not
              reflected. war is fine for production, but during development i dont want to
              restart the server to see the jsp changes.
              is there a way to create a web server component with an exploded directory
              format in config.xml. i want to map the current jsp directory to the web
              server.
              in short: i want to see the jsp changes immediately without restarting the
              server everytime.
              thanks.
              

              "Muthu Ram" <[email protected]> wrote:
              >hi,
              >
              >how do i define a web server with exploded directory format. i dont want
              >to
              >use webcomponent because it creates a war and the jsp changes are not
              >reflected. war is fine for production, but during development i dont
              >want to
              >restart the server to see the jsp changes.
              >
              >is there a way to create a web server component with an exploded directory
              >format in config.xml. i want to map the current jsp directory to the
              >web
              >server.
              >
              >in short: i want to see the jsp changes immediately without restarting
              >the
              >server everytime.
              >
              >thanks.
              >
              >
              apparently if you create an empty file called REDEPLOY (no exstension) in your
              meta-inf directory then either touch it if on unix or change it and save it (i
              add then delete a spce in it) in win32. apparently wls looks at this file and
              if its been changed it reloads the rest off the webapp and hey presto dynamic
              deployment. the alternative is to goto the console goto your app uncheck the deployed
              box click apply then check the deployed box and click apply (this should redeploy
              it). Note jsps don't seem to redeploy well if you have keepgenerate set to true
              in the weblogic.xml.
              

  • Any tool to help deploy with Exploded Directory Format

    I read through the "Oracle9iAS Containers for J2EE" Getting Started document and saw the section on "Deploying with Exploded Directory Format". I would like to take the Petstore1.1.2 code and put it in exploded directory format so that OC4J can easily pick up changes to servlets and EJBs. But the codebase for Petstore is complicated enough that I would like to have a tool (possibly ant) that can automate the process of going from either the source directory or even ear file to the "exploded directory format".
    Are there any tools available to help automate this process??

    Never mind. This stuff is a lot simpler than I initially thought. There is no need for a tool because it is easy enough to do by hand.
    Sorry for bothering everyone

  • How to archive an exploded format into EAR

    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into .jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

    The bottom line is you should use ant.
    If your using a version prior to 8.1 you can use the built in jar/ear tasks,
    if you cant upgrade to 8.1 I reccomend it.
    If your using 8.1 we have an exploded directory structure for development
    known as split-dir (go to http://edocs.bea.com and search) with a set of ant
    tasks to do compilation and deployment. There is also one called wlpackage
    that will create an archived EAR for you as well.
    The basic principle is that in development you want to develop with an
    exploded format as it is much faster to compile and to deploy. When moving
    to production and for distribution you want an archive. You have a couple of
    options for the archive. You can archive EVERYTHING where each module
    inside of the ear is also archived.
    Such as:
    foo.ear
    META-INF/applicaiton.xml
    web.war
    ejb.jar
    I am not a huge fan of this because in development you really want
    everything exploded and if you archive your modules inside the ear you have
    to change the URI's in your applicaiton.xml. I prefer:
    foo.ear
    META-INF/applicaiton.xml
    web/
    WEB-INF/web.xml
    ejb/
    META-INF/ejb-jar.xml
    This is the format of the ear that wlpacage ant task creates for you.
    Cheers
    mbg
    "Seshagiri" <[email protected]> wrote in message
    news:3f08c9ea$[email protected]..
    >
    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into.jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

  • WebLogic 11g EAR EJB Classpath and class loaders

    All,
    I have been having issues migrating Spring based EJB applications from OC4J to WebLogic 11g (10.3.1). I have been in communication with Oracle who has suggested a work around however I am keen to see if anyone else can suggest a solution.
    The application is dependant on stateless session EJB beans that communicate with a Spring managed service tier to perform the business logic and database access. PitchFork is used to inject the Spring managers into the EJB’s using the spring-ejb-jar.xml configuration file. Note originally I was using the SpringBeanAutowiringInterceptor however I could not get this to work. See WebLogic 11g and Spring beens injected into EJB for details.
    When the application is deployed packaging all the dependant jars within the APP-INF\lib folder I get a verity of errors from the following InvalidClassException, NoSuchMethodError, AbstractMethodError and IllegalArgumentException. I am using Spring 2.5.3 to match the supported WebLogic version. Note within the EAR application.xml the library-directory is set to APP-INF/lib. The issue appears to be Spring, PitchFork, commons-logging and aspectj libraries are being loaded form WebLogic and do not have visibility on jars within the application or have been modified when bundled for WebLogic. An example of this is the PitchFork jar within WebLogic has been changed excluding the spi package resulting in java.lang.ClassNotFoundException: org.springframework.jee.spi.PitchforkUtilsImpl errors.
    Moving the jars to the domain library path does not resolve any of the issues. I have been unable to successfully deploy the application picking up the application jars using the prefer-application-packages configuration.
    Oracle has advised me to deploy the libraries into the WebLogic system classpath by modifying the startWebLogic command to load the libraries into the classpath. I am concerned that modifying the system classpath will result in an unstable WebLogic server as I will be replacing modified jar files packages with WebLogic (such as PitchFork). This will also limit the applications that can be deployed within the server as each application must use the same libraries and versions (as the application ibraries are leing ignored).
    Has anyone else hit this issue and corrected it? Can anyone think of an alternative solution?
    Regards
    Neil

    Hi,
    I am in the process of updating the tracking bug# 331569 with copies of the eclipse EAR/WAR projects and the EAR for these scenarios. Here are some details on how I got past the 2nd CCE on the org.eclipse.persistence.jpa.PersistenceProvider class (not the javax one)
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=331569
    Essentially an SE persistence unit running both JPA 2.0 api and the 2.0 XSD schema work fine. I will next retest the EE case with variations of the 3 types of injection on the SSB or Servlet.
    Update: There are 3 (possibly 4) issues here (all of these may become obsolete when the next WLS version ships)Initially I got the same 2.0 schema error and the ClassCastException on org.eclipse.persistence.jpa.PersistenceProvider
    It turns out that my import of the 2 eclipse projects from my bug # 296271 for WebLogic 10.3.2.0 lost their facets(specifically the dynamic web facet) because I associated them with a different WebLogic 10.3.3.0. - this caused the CCE I was experiencing like Sri.
    Anyways, after creating an EAR/Web project combination from scratch in eclipse associated with the 10.3.3.0 instance - I predeployed/deployed/ran fine - even with the 2.0 schema - in SE bootstrap mode (no EE yet).
    Reproduction Procedure:
    redoing project from scratch as I noticed that the war was not at the root of the ear - it was a jar in the app-inf/lib dir - my imported eclipse project was not referenced correctly as a web module facet- create empty EAR and WAR project with references
    - download and open my EAR and WAR project code from bug # 296271
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=296271
    - do essentially all the steps in the page below (I paraphrase for re-verification)
    http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#DI_1.1:_Alternative_3:_Application_Level_Shared_Library_-InUse
    - copy applicationService, entity and FrontController servlet code into new projects
    - create persistence.xml and MANIFEST.MF manifest in src\META-INF
    - update manifest
    Class-Path: APP-INF/lib/eclipselink.jar
    APP-INF/lib/javax.persistence_2.0.0.v200911041116.jar
    - copy both javax.persistence 2.0 and eclipselink 2.x jars to APP-INF/lib
    - change ordering of WebLogic library modules classpath reference (javax.persistence 1.0) to ear reference (2.0 version)
    - update web.xml with servlet tags
    - update weblogic.xml with new context root
    - make the persistence unit name the same in persistence.xml and ApplicationManagedService
    - update weblogic-application.xml with prefer-application-packages overrides
    <wls:prefer-application-packages>
    <wls:package-name>javax.persistence.*</wls:package-name>
    <wls:package-name>org.eclipse.persistence.*</wls:package-name>
    </wls:prefer-application-packages>
    - enable server redirect logging
    <!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
    <property name="eclipselink.logging.logger" value="DefaultLogger"/>
    - start WebLogic 10.3.3.0
    - deploy (run on) server from eclipse or export ear to auto deploy directory
    1) JPA 2.0 XSD usage on 10.3.3.0
    - I reproduced this issue with a bad EAR
    - was able to use the 2.0 schema within the WAR-only application managed EAR
    persistence.xml<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <!-- persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"-->
    <persistence-unit name="example2" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>localJTA</jta-data-source>
    <class>org.eclipse.persistence.example.business.Cell</class>
    <shared-cache-mode>NONE</shared-cache-mode>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    <property name="eclipselink.target-database" value="Derby"/>
    <!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
    <property name="eclipselink.logging.logger" value="DefaultLogger"/>
    <!-- property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
    <property name="javax.persistence.jdbc.url" value="jdbc:derby://127.0.0.1:1527/dataparallel;create=true"/>
    <property name="javax.persistence.jdbc.user" value="APP"/>
    <property name="javax.persistence.jdbc.password" value="APP"/-->
    <!-- turn off DDL generation after the model is stable -->
    <!-- property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
    <property name="eclipselink.ddl-generation.output-mode" value="both"/-->
    </properties>
    </persistence-unit>
    </persistence>
    2) CCE on JPA provider implementation class
    Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example2: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider
    - I reproduced and fixed this one (was Eclipse project facet issue) - EAR was wrong
    - was able to run JPA 2.0 code fine on an SE PU (predeploy/deploy together)
    - EE injection should not work but I will post an example EAR anyway
    log[EL Example]: enterprise: JPA 2.0 Metamodel: MetamodelImpl@56287508 [ 3 Types: , 1 ManagedTypes: , 1 EntityTypes: , 0 MappedSuperclassTypes: , 0 EmbeddableTypes: ]
    3) CCE on JPA spec interface class
    - I could not reproduce this one
    Re: WebLogic 11g EAR EJB Classpath and class loaders
    Error processing persistence unit PT of module pt: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit PT: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
    4) CCE on fallback Kodo JPA provider (if an invalid say 2.1 JPA XSD schema is referenced)
    java.lang.ClassCastException: kodo.persistence.PersistenceProviderImpl
    at javax.persistence.Persistence.findAllProviders(Persistence.java:186)
    java.lang.NoSuchMethodError: javax/persistence/EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
    - reproduced by using the 1.0 javax.persistence jar (but named as the 2.0 one in APP-INF/lib)
    - fixed by using either the 1.0 or 2.0 JPA XSD schema and using the correct 2.0 spec jar
    thank you
    /michael

  • Exploded Directory path for BPM Worklist Applications

    Hi All,
    If anybody could tell me the location of Exploded Directory where all the existing worklist apps related jsfs are available it would be a great help for me to do some sort of Customization to the out of box Oracle 11g BPM worklist app.
    Durga.

    Hi Durga
    1. Assuming you have a standard SOA/BPM Domain with one AdminServer and one SOA_SERVER1, here is the location where most of the modules are exploded and stored: /yourWeblogicSOAHome/user_projects/domains/yourSOABPMDomain1/servers/soa_server1/tmp. Under this tmp folder, you will see bunch of sub-folders and they have some more sub-folders. It is really tedious if you really want to cusotmize and modify files located at this location. I would strongly NOT recommend this. The files in tmp folders are not gauranteed. Afterall they are temporary file. And most of the times, when I restart my SOA SERVER, I always delete cache, tmp and logs folders. So you will loose all changes and you had to take back up of your changes and restore them.
    2. If you really want customizations like increase timeout say for example, you should use weblogic console, deployments, that war/ear and modify and store the changes in custom plan.xml file.
    3. If you really want to customize some jsff stuff, figure out which EAR/WAR is having that file. You can use general perception. Then directly go to the actual EAR and extract and get JAR/WAR. Then extract contenst of WAR and then modify jsff etc. Put jsff with same path back in war and put war back in EAR. Most of the soa modules are located at /yourWeblogicHome/Oracle_SOA1/soa/modules. The most important modules that has core files are like bpm-services which are at: /yourWeblogicHome/Oracle_SOA1/soa/modules/oracle.soa.workflow_11.1.1 and actual data controls/ui stuff in bpm-workflow-datacontrol.jar file in the same above module. ALWAYS take back up of original EAR/WAR/JAR before you extract and make changes.
    4. Last option is you create your own Custom Worklist app which is not very simple (I would say), unless you want very basic minimum stuff.
    Thanks
    Ravi Jegga

  • Deploying the exploded directory

    I am trying to find out if there are any known bugs for deploying the
    exploded directory.

    Yes. See my recent post in the ejb section called "Classpath Help?"
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Mukesh Kumar" <[email protected]> wrote in message
    news:3b4e0e25$[email protected]..
    I am trying to find out if there are any known bugs for deploying the
    exploded directory.

  • How do specify Class-Path in exploded directory deployment?

    Currently I have an app.ear(ejb.jar,lib.jar,web.war). In the MANIFEST file of
    ejb.jar I do Class-Path: lib.jar. Now I exploded the app.ear and the components
    into app(ejb,lib,web) directory structure, how do I write Class-Path? ../lib did
    not seem to work for me. Any suggestions?

    I got the answer at the EJb newsgroup. Instead of ../lib, use just lib.
    "Eric Ma" <[email protected]> wrote:
    >
    Currently I have an app.ear(ejb.jar,lib.jar,web.war). In the MANIFEST
    file of
    ejb.jar I do Class-Path: lib.jar. Now I exploded the app.ear and the
    components
    into app(ejb,lib,web) directory structure, how do I write Class-Path?
    ../lib did
    not seem to work for me. Any suggestions?

  • J2EE server ignores lib directory in EAR

    My EAR has such a structure:
    --lib
    --META-INF
    --my.war
    --mybeans.jar
    Beans, located in mybeans.jar can't be initialized because they don't see certain classes.
    These classes are located in jar archive inside lib directory of EAR (first in the list above).
    I use JBoss.
    May be some config must be made, I don't now.
    I've analyzed the structure of vlib application (Tapestry example), it was organized in the same manner, but works fine.
    What to do?

    As per the ear file structure (and specifically in JBoss)
    there is no lib directory expected.
    So do not put anything in the lib directory.
    If the lib contains .jar file, then do add them as java modules in the application.xml file(inside META-INF); I am sure you know how to add the war,jar module to application.xml.
    And if the library classes are general purpose, put them in %JBOSS_HOME%/lib directory; but this will make your library visible to all applications.
    Hope this helps.
    Thanks
    Ayusman

  • Exploded directory

    Is it possible for me to deploy an exploded directory in WAS 6.40?
    I need to test my JSPs quickly and the process of building WAR -> EAR -> Deploy is really taking a toll on productivity.

    Hi,
    Yes it is possible to test your JSPs quickly without building WAR->EAR files each time. The condition is that you should have deployed the EAR application once for the first time. For your subsequent changes, you can just keep changing the JSPs in the deployed location of the application on the J2EE engine.
    After you have deployed the EAR for the first time, got to this location on the J2EE engine installation:
    \usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\<EAR_APP_NAME>\servlet_jsp\<CONTEXT_ROOT_NAME>\root
    Change your instance names accordingly.
    This is the location where you will have your JSPs. Make your changes here and save and it works!
    Hope this helps.
    Regards,
    Manish

  • How to add the mail.jar file to my CLASSPATH ?

    Hi;
    I wish to Instal JavaMail 1.2
    To use the JavaMail 1.2 API, i unbundle the javamail-1_3_1-upd.zip file.....and now, i would like to add the mail.jar file to your CLASSPATH.
    My question is: how do you do this ?
    - ok i did that for CATALINA_HOME & JAVA_HOME but how to add the mail.jar file to my CLASSPATH ??
    1000 thanks.

    I think you're looking for "developer support", not packaged application support. different server, different batch of groups. . .
    Since I have very little contact with devopers, I don't truly know.

  • Add a new directory with hyphen (-) in the domain name

    Dear All,
    I'm trying to add a new directory with hyphen (-) in the domain name (default domain *.onmicrosoft.com). As a result I keep getting a validation error: "The domain is not unique". I've tried several
    combinations with really awkward words and a hyphen. Such domain names must be unique. I think that the error message is misleading.
    Is it a well known behavior? Is it possible to use a hyphen in the domain name?
    Thank you for your help,
    Artem

    Dear Arvind,
    Thank you for your effort and time in validating the described behavior.
    According to the
    Regexp for subdomain question on SO, 'Each subdomain part may contain hyphens (dashes), but may not begin or end with a hyphen'. That been said, the validation error, on your screenshot is appropriate. On the other hand, the validation error
    with a hyphen (dash) in the middle is misleading.
    It's not a big deal, since people most likely use a custom DNS name anyway.
    Kind regards,
    Artem

Maybe you are looking for