APP-INF\lib

Hello,
I am migrating an ear from a j2ee1.4 websphere to javaee6 weblogic. As part of migrating from j2ee1.4 to javaee6, I made a change to the packaging. In j2ee1.4, our EAR had all the dependent jars for our 4 WARS in the root directory. I moved all the jars from root to APP-INF\lib.
I have been getting errors on classloading of hibernate/antlr jars. I would like to know if moving the jars to APP-INF/lib is right and non-problematic. Do I have to mandatorily use <library-ref> anywhere? Do I have to refer anywhere such as classpath in Manifest.mf or anyother place to tell weblogic about the location of jars?
Regards,
Raj

If it's an archived EAR, you can find the exploded contents under the
server's .wlnotdelete directory.
APP-INF/lib jar files are also copied under the same directory.
-- Rob
Krish wrote:
If I have a jar file under APP-INF/lib in an EAR file, do the classes inside the
jar file get extracted to some place in the EAR staging directory? If so, where?
Thanks, Krish

Similar Messages

  • Unable to load classes from jar files inside APP-INF/lib in EAR.

    Weblogic version: 10.3.3
    Platform: Linux x86-64 bit
    We deployed an ear packaged with all the common library jars inside APP-INF/lib. Deployment was successful.
    for some reason, it is always giving ClassNotFoundException for the classes inside the jars. This does not happen
    in 10.3.2 version of weblogic.
    We tried to add them to domain/lib directory (instead of APP-INF/lib) but still it is not able to resolve the classes.
    Any pointers would be appreciated.

    try using prefer-web-inf-classes in the weblogic.xml file in your WAR file
    or using prefer-application-packages in the weblogic-application.xml file in your EAR.

  • Can TLD jar can access through EAR / APP-INF/lib folder

    Hi All,
    If I have a TLD files into jar file and their specific classes are also into jar file .
    Now can access those jar through EAR file APP-INF/lib folder or else its must to access through WEB-INF/lib folder.
    any pointer will be great.
    Regards,
    Kal.

    I suggest you assume that's how it's supposed to work, and get that to work most efficiently. I have no idea what you were trying to achieve by putting the taglib jar in APP-INF/lib. Perhaps you have multiple webapps and you wanted to avoid multiple instances of the taglib jar? If that's the case, I believe you could use WebLogic "shared application libraries" (I don't think that's the correct term), where you deploy a jar file as an application library, and the weblogic.xml file in each webapp that uses it would specify the name of the application library it uses.

  • Help with APP-INF/lib inside EAR

    I have an EAR task in my ANT script, how do I add jars into APP-INF/
    lib inside EAR ?
    I dont want to create a folder structure in my project, only EAR
    should have
    <EAR root> /APP-INF/lib
    Edited by: Taranfx_com on Oct 12, 2008 4:49 AM

    try using prefer-web-inf-classes in the weblogic.xml file in your WAR file
    or using prefer-application-packages in the weblogic-application.xml file in your EAR.

  • Weblogic 8.1 Classpath vs APP-INF/lib

    I'm deploying an enterprise application on Weblogic 8.1. log4j 1.2.8 is on the classpath of Weblogic, while log4j 1.2.16 is in the APP-INF/lib of my EAR file. Unfortunately, my application seems to be binding to the older version of log4j, instead of the one in my EAR file, and I have no control over administration of the server.
    Is there any way to work around this problem? Thanks.

    Hi,
    You can try to set the value true for prefer-web-inf-classes element which will cause the classes which are located in the directory \WEB-INF\lib of a Web application to be loaded in preference to classes loaded in the application or system class loader. This way we can be sure that the classes from the lib folder would be picked and used for this application.
    Things to do:
    1) Place the Jars inside the “<APPLICATION_EAR>/APP-INF/lib” directory.
    2) Add the following entries inside ”<APPLICATION_EAR>/META-INF/weblogic-application.xml” (You need to add the packages available in your JAR files which you want to be loaded from your application in Below)
    <?xml version=”1.0″ encoding=”ISO-8859-1″?>
    <weblogic-application xmlns=”http://www.bea.com/ns/weblogic/90″>
    *<prefer-application-packages>*
    <package-name>org.apache.*</package-name>
    <package-name>org.apache.xerces.*</package-name>
    <package-name>org.apache.xalan.*</package-name>
    <package-name>org.apache.xmlcommons.*</package-name>
    <package-name>org.apache.xerces.jaxp.*</package-name>
    *</prefer-application-packages>*
    </weblogic-application>
    NOTE: if you Don’t have an EAR File (Enterprise Application) Then First place all the JARs in “<WEB_APPLICATION>/WEB-INF/lib” And then you can perform ClassLoader Filtering by Adding the Following Entry in “<WEB_APPLICATION>/WEB-INF/weblogic.xml”
    <weblogic-web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://www.bea.com/ns/weblogic/90″ xsi:schemaLocation=”http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd”>
    <container-descriptor>
    *<prefer-web-inf-classes>true</prefer-web-inf-classes>*
    </container-descriptor>
    </weblogic-web-app>
    You can even go through the following link:
    http://middlewaremagic.com/weblogic/?page_id=192
    Few more links which might help you:
    Search for: prefer-web-inf-classes
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html
    Search for: Configuring a FilteringClassLoader
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1098468
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Come, Join Us and Experience The Magic…

  • EAR project facet and APP-INF/lib

    Hello,
    I have four Workshop 10.3 projects which comprise an EAR. The projects are like this:
    - MyCommonLib (Project Facets: EAR 5.0, WebLogic EAR Extensions 5.0)
    - MyCommonLibControls (Project Facets: Utility Module 1.0, WebLogic Utility Module Extensions 10.3, ...)
    - MyCommonLibSchemas (Project Facets: Utility Module 1.0, WebLogic Utility Module Extensions 10.3, ...)
    - MyCommonLibExtraControls (Project Facets: Utility Module 1.0, WebLogic Utility Module Extensions 10.3, ...)
    Basically, I am bundling 3 utility-jars into an EAR to be deployed collectively as a shared library. The problem is that I need to define at least one module in application.xml, otherwise deployment fails. Workshop however places all the jars in APP-INF/lib and leaves the application.xml empty.
    I tried to "hack my way around this" by creating an empty "dummy.jar" file and placing it in the EarContent folder of the "MyCommonLib" project and editing application.xml by hand. However, when I export an EAR, it does not make it into the archive (even if I add it to the J2EE Module Dependencies of the EAR project MyCommonLib) and therefore deployment fails because the dummy.jar referenced in my application.xml does not exist.
    What project settings do I need to achieve what I need?
    Edited by: akarypid on Nov 4, 2010 2:29 AM

    Hello,
    Thank you for your input; the WAR approach works, although I don't like the idea of publishing web pages by importing the shared library.
    However, I was hoping for an approach that would use the "standard J2EE" jar packaging approach whereby a project that is marked as a utilitiy module is not placed in the APP-INF/lib (thisi is weblogic-specific) but rather placed in the EAR's root and published in the standard application.xml as:
    <application ...>
        <module>
            <java>dummy.jar</java>
       </module>
    </application>This way I could bundle everything into the EAR, without having to include a web application in the shared library (and every app that uses it)... Could this be done using some project setup in Workshop?

  • Web application in EAR not finding class in APP=INF/lib jar file

    Hi,
    I have read some posts regarding this but am still not able to figure out anything.
    I have a war file in my EAR along with some EJB jars. I have the common jars in the APP-INF/lib. The EJBs can find the classes in the common jars easily. But the Web app gives me a NoClassDefFoundError when trying to load a class from a common jar.
    Here is the structure:
    <pre>
    EAR
    |---WAR
    |---WEB-INF
    | |---lib
    | |---a.jar (A.class)
    |---APP-INF
    |---lib
    |---b.jar (B.class)
    </pre>
    Class A is trying to load class B and I get the NoClassDefFoundError for class B
    Thanks for any help,
    Sameet

    I found the problem. The web-app was finding the class in the APP-INf/lib. But the problem was being caused due to a reference to another class that was being loaded by the webapp classloader which was not visible to the class inside the common jar. The solution was to make sure both classes were being loaded by one class loader.
    Thanks anyway
    Sameet

  • ClassNotFoundException from servelt inside app-inf/lib of an ear.

    Hi,
    I'm experiencing a ClassNotFoundException errors in WebLogic 9.1 running with JDK 1.5.0_04 when I try to start an ear application that has defined, in the web module, a servlet for which the base class is inside an ear library which in turns try to get a class defined in the web module using Class.forName(...) during it's initializzation.
    I've made a test ear project with the following structure:
    prova.ear
    - APP-INF
    ---- test.jar
    ------- com.ServletProva
    - META-INF
    ---- application.xml
    - prova.war
    ---- WEB-INF
    ------- classes
    ---------- com.ClasseDaLeggere
    ---------- com.ServletProvaDue [extends com.ServletProva]
    ------- web.xml
    the content of web.xml is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="WebApp_ID">
         <display-name>weblogic-prova_servlet</display-name>
         <servlet>
              <servlet-name>ServletProva</servlet-name>
              <display-name>ServletProva</display-name>
              <description></description>
              <servlet-class>com.ServletProvaDue</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>ServletProva</servlet-name>
              <url-pattern>/ServletProva</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    And the content of the com.ServletProva class is:
    package com;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ServletProva extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
         public ServletProva() {
              super();
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
         public void init() throws ServletException {
              try {
                   Class.forName("com.ClasseDaLeggere");
              } catch (Exception e) {
                   throw new ServletException(e);
              super.init();
    Trying to start the application i get the following error:
    <4-ago-2008 15.57.32 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "ServletProva" failed to preload on startup in Web application: "/prova".
    java.lang.ClassNotFoundException: com.ClasseDaLeggere
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:222)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:195)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:130)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.ServletProva.init(ServletProva.java:38)
    at com.ServletProvaDue.init(ServletProvaDue.java:37)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:493)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1688)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1665)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1585)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2678)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:874)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:25)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:640)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:252)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:567)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:
    131)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:101)
    at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:126)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:329)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:845)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1246)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:432)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(Deployment
    ReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiv
    erCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCal
    lbackDeliverer.java:67)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:876)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:326)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:114)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: com.ClasseDaLeggere
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:222)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:195)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:130)
    Truncated. see log file for complete stacktrace
    Someone can help me to figure out this problem?

    Check out this recent thread:
    Re: weblogic 10 ear problem-urgent
    If you're still having issues, then I recommend using the IDE tooling for WebLogic to do this in WTP or Workshop, then Export the EAR/WAR which will give you the structure.

  • Deployment of JSF Libraries to /WEB-INF/lib

    Good day.
    In our new web application we use three different JSF taglibs (richfaces, trinidad, tomahawk). All of them are managed as "JSF Libraries" (created in eclipse options->web->"JavaServer Faces Tools"->Libraries). To include jars from these libraries in webapp I've checked respective entries in project's options->"Java EE Module Dependencies"->"Web Libraries". However webapp doesn't contain jars from these libs at runtime even if webapp is served from separate folder within weblogic server's directory structure (don't remember how this option is called at server configuration page). Is it some kind of a bug or this feature is just not supported (tradeoff for being able to serve modules directly from the workspace)? I read throught OEPE help contents, but haven't found definite answer there.
    Env: Eclipse 3.4.1, WTP 3.0.3, OEPE 1.0, JVM Sun 1.6.0_11, Win32 XP SP2, WLS 10.3
    Thank you very much!

    Sorry, forgot to mention that web application is a part of ear archive. Don't know if "Stand-alone Web Application Deployment Mode" will have any signification effect in this case.
    However, here are contents of .beabuild file from ear and contents of temporary directory from wls with webapp contents if it will be of any importance.
    ru.bpc.sv.web is ear archive and ru.bpc.sv.web.iu is included webapp.
    .beabuild:
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/classes = APP-INF/classes
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/WebContent = ru.bpc.sv.web.ui.war
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/weboutput = ru.bpc.sv.web.ui.war
    C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/classes = ru.bpc.sv.web.ui.war/WEB-INF/classes
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-api-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-api-3.1.5.GA.jar
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-impl-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-impl-3.1.5.GA.jar
    C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-ui-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-ui-3.1.5.GA.jar
    C\:/projects/java/libs/org/apache/myfaces/tomahawk/1.1.6/tomahawk-1.1.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/tomahawk-1.1.6.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-api-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-api-1.0.9-jdk14.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-impl-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-impl-1.0.9-jdk14.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/backport-util-concurrent-3.1.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/backport-util-concurrent-3.1.jar
    C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/retrotranslator-runtime-1.2.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/retrotranslator-runtime-1.2.6.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.authClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.authClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.svboClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svboClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.ejb.svfeClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svfeClient.jar
    C\:/workspaces/web2008/ru.bpc.sv.commonitems/bin = APP-INF/lib/ru.bpc.sv.commonitems.jar
    C\:/workspaces/web2008/ru.bpc.sv.commonEjbUtils/bin = APP-INF/lib/ru.bpc.sv.commonEjbUtils.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/commons-logging-1.1.jar = APP-INF/lib/commons-logging-1.1.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/log4j-1.2.14.jar = APP-INF/lib/log4j-1.2.14.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/poi-3.0.1-FINAL-20070705.jar = APP-INF/lib/poi-3.0.1-FINAL-20070705.jar
    C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/quartz-all-1.6.1-RC3.jar = APP-INF/lib/quartz-all-1.6.1-RC3.jar
    dir:
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\1
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\public
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\crc.ser
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\des.ser
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs\war
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-collections-3.1.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-el-1.0.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-fileupload-1.2.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\itext-2.0.6.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-2.1.2u.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-rtf-2.1.2u.jar
    C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\tomahawk-sandbox-1.1.7-SNAPSHOT.jar

  • Working with tag-library which is packed in WEB-INF\lib\jar-file.jar:

    Hi,
    When importing a webworks war file, which contains default taglib.tld in the webworks.jar which is packed in /Web-Inf/lib/webworks.2.1.7.jar the war file.
    I am getting following error while running the jsp.
    Error(6): duplicated tag definitions within the same TLD: text
    Error(6): java.lang.NullPointerException
    Error(6): Unable to load taghandler class: /webwork
    Line which points to Errors is "<%@ taglib prefix="ww" uri="/webwork" %>"
    But, There is a taglib.tld in /Web-Inf/lib/webworks.2.1.7.jar!\meta-inf\tablib.tld
    which mentions uri as
    <taglib>
    <tlib-version>2.2.1</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>WebWork Taglib</short-name>
    <uri>/webwork</uri>
    </taglib>
    But, There is no following entry for '/webwork' (uri) in web.xml
    Same war is working fine in tomcat webserver.
    Can anybody explain me how to work with this kind of a setup, where taglib is packed in some jar which is packed in Web-Inf/lib dir.
    Thanks,
    Siva

    I found the problem. The web-app was finding the class in the APP-INf/lib. But the problem was being caused due to a reference to another class that was being loaded by the webapp classloader which was not visible to the class inside the common jar. The solution was to make sure both classes were being loaded by one class loader.
    Thanks anyway
    Sameet

  • APP-INF directory

    Hello All,
    Is APP-INF directory in an EAR file is a new feature in BEA8.0 + or was
    it present in prior versions...???
    We have 7.0. And trying to leverage APP-INF.
    All we have done is to put the third party jars in APP-INF\lib directory. Am
    I missing smthg..???

    It's a new feature in 8.1.
    -- Rob
    a wrote:
    Hello All,
    Is APP-INF directory in an EAR file is a new feature in BEA8.0 + or was
    it present in prior versions...???
    We have 7.0. And trying to leverage APP-INF.
    All we have done is to put the third party jars in APP-INF\lib directory. Am
    I missing smthg..???

  • APP-INF Fails APPC Destroyes Manifests

    We have an application with a hierarchy of utility jars. Each jar manifest
    lists only those jars it has a direct dependency on. Even for a large number
    of jars this is a clean simple and specification-compliant way to use
    utility jars.
    The appc command in WLS 8.1 blows away the manifest on, for example, our war
    file jar. Consequently it breaks an otherwise working application. I read up
    on the addition of the non-standard and entirely unecessary APP-INF folder
    and, since appc is killing our manifest, decided to try that. The jars in
    APP-INF/lib are not found and there are other posts to that effect here. So
    Weblogic has taken a simply specification compliant means of sharing jars,
    destoryed it, and added its own non-functional hack.
    Can anybody tell us how to stop appc from whacking our manifests?
    TIA

    (answering his own question :)
    The issue has to do with the fact that while Class has a "getResource" method, it does not have a "getResources" (plural) method. So I had to use Class.getClassLoader().getResources().
    It's hinted at in the docs for Class.getResource, but that method likes a "/" at the beginning of the String it gets; while ClassLoader.getResource and .getResources do not. In my example, if I use "META-INF/MANIFEST.MF" (note the lack of a preceding '/'), then getResources succeeds.
    I'd say either Class needs to add a getResources method that has the same semantics as Class.getResource so things are symmetric. A little more documentation on this in Class.getResource and ClassLoader.getResource(s) would be nice too.
    Donnie

  • Using the APP-INF directory

    If i create a folder inside APP-INF/ directory and put jar files inside it, weblogic apps cant see them?
    I'm using Weblogic 10.3.2. This structure used to work on WLS 8.1
    Above is my app-inf structure:
    APP-INF
    |
    --------->basic.jar
    --------->teste.jar
    |
    ---------->extra(folder)
    |
    ----------------> logica.jar
    Thanks in Advance
    Erick
    Edited by: ErickAkamine on 28/05/2010 11:12

    U Need to put your JARs inside
    *"APP-INF/lib"* directory
    Example: Suppose MyEAR name is TestEAR:
    TestEAR
        |
          APP-INF    _______________ lib (Put All application Jars Here)
        |
        |
          META-INF    _______________application.xml
        |
          TESTWEBAPP
        |
        |
        _______________WEB-INF;      _______________web.xml
    The Above Directory structure suggests that u need to put all your Jar files inside *"TestEAR/APP-INF/lib"* Directory.
    <font color=red> NOTE: The Jar file Names which are mentioned inside the "application.xml" file should be present in the ROOT directory of your EAR file....</font> Other Jars can be placed inside the APP-INF/lib directory.
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here)

  • Error while accessing a war with xmlbeans under WEB-INF/lib

    Hi All,
    I am trying to deploy a WAR file with XMLBean generated jar under WEB-INF/lib folder along with other jars.
    I am getting following error
    java.lang.NoClassDefFoundError: com/xx/DataServiceRequestDocument
         at java.lang.Class.getDeclaredFields0(Native Method)
         at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
         at java.lang.Class.getDeclaredField(Class.java:1880)
         at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610)
         at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
         at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
         at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:310)
         at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2216)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2347)
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2290)
         at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:74)
         at com.tangosol.coherence.component.net.extend.Channel.deserialize(Channel.CDB:15)
         at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
         at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
         at com.tangosol.coherence.component.net.extend.messageFactory.InvocationServiceFactory$InvocationRequest.readExternal(InvocationServiceFactory.CDB:5)
         at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:54)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:662)
    I tried multiple combinations like changing, but no success.
    <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    <wls:weblogic-version>10.3.2</wls:weblogic-version>
    <wls:context-root>CoherenceWS</wls:context-root>
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    </wls:container-descriptor>
    </wls:weblogic-web-app>
    I have very few classes in WEB-INF/class (trying to load java objects from lib)
    My WEB-INF/lib folder contains following jar
    coherence.jar
    commons-beanutils-1.8.0.jar
    commons-collections-3.2.jar
    commons-lang-2.4.jar
    commons-logging-1.1.1.jar
    dsRemoteCall.jar
    ezmorph-1.0.jar
    jackson-all-1.8.5.jar
    json-lib-2.1-jdk13.jar
    org.springframework.asm-3.1.0.M2.jar
    org.springframework.beans-3.1.0.M2.jar
    org.springframework.context-3.1.0.M2.jar
    org.springframework.core-3.1.0.M2.jar
    org.springframework.expression-3.1.0.M2.jar
    org.springframework.oxm-3.1.0.M2.jar
    org.springframework.web-3.1.0.M2.jar
    org.springframework.web.servlet-3.1.0.M2.jar
    schemaclasses.jar
    xbean.jar
    xom-1.2.7.jar
    Am I missing something? Any help is greatly appreciated
    Thanks
    sunder
    Edited by: 868704 on Sep 6, 2011 6:10 PM

    Note : schemaclasses.jar contains "com/xx/DataServiceRequestDocument" class file.
    WebLogic Server 10.3.5.0
    Thanks
    sunder
    Edited by: 868704 on Sep 6, 2011 6:26 PM

  • Jar file in web-inf\lib is not being loaded - weblogic 7.0

    I am callling a webservice from a jsp. everything works fine if I keep the interface
    classes under web-inf\classes....but If I put the interface classes in a jar file
    and put it under web-inf\lib, then weblogic does not seem to find that....
    I am getting following error :
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):14:
    class CustomerValue is public, should be declared in a file named CustomerValue.java
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):119:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):120:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):121:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    4 errors
    Wondering if it is a bug...?
    any thoughts ?
    -Girish Bhatia

    I wrote up a simple test case for this and it works fine for me.
    I suppose there are diffences. ;)
    I am using:
    WebLogic Server 7.0 SP1 Mon Sep 9 22:46:58 PDT 2002 206753
    Take the attached zip, unzip.
    cd to directory
    ant build
    then deploy it via the console, or
    java weblogic.Deployer -adminurl t3://127.0.0.1:7001 -user weblogic -password
    weblogic -activate -name mywebapp2 -source e:/weblogic/dev/sandbox/griffith/apps/output/exploded_mywebapp_lib/
    Then:
    http://c863775-d:7001/exploded_mywebapp_lib/frobber
    works for me. My servlet implments an interface in the jar in my lib dir.
    Cheers
    mbg
    "Girish" <[email protected]> wrote:
    >
    I am callling a webservice from a jsp. everything works fine if I keep
    the interface
    classes under web-inf\classes....but If I put the interface classes in
    a jar file
    and put it under web-inf\lib, then weblogic does not seem to find that....
    I am getting following error :
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):14:
    class CustomerValue is public, should be declared in a file named CustomerValue.java
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):119:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):120:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):121:
    cannot resolve symbol
    symbol : class RuntimeUtils
    location: package binding
    (source unavailable)
    4 errors
    Wondering if it is a bug...?
    any thoughts ?
    -Girish Bhatia
    [mywebapptest.zip]

Maybe you are looking for

  • To find number of parameter from request

    Freinds, Is there any way to find out number of parameter submitted from request object. But the constraint will be with out going through loop. Example int count = 0;           Enumeration list = request.getParameterNames();           while (list.ha

  • Can two ipods with the same email address face time independantly?

    Can two ipods with the same email address face time independantly?

  • What are the best Layout Managers to use in these cases?

    (1) I have a form with labels at text fields. Right now, there are three lables and three text fields. There is a good chance (90%) that I will need to add additional fields and labels, so it needs to be expandable. Now, all of these features reside

  • Playlist Order Not The Sames As In iTunes

    Hi, I am using a PC with iTunes 8.2. I have a playlist that consists of 60's Music, 70's Music, etc, then abba, bangles, billy Joel. In operating system 2.2 the playlist displayed properly with the 60's, 70's... then abba, bangles. However, when I up

  • Deleting photos in cs5 bridge - external hard drive

    I am trying to delete large numbers of images from an external hard drive through Adobe Bridge. I have tried dragging the images to the trash can. I have tried simply hitting the delete button with no luck. I have hit the delete button while holding