Deploying web application to OC4J  - servlet class not found

Hi,
Im trying to deploy war file with web application,
that I run before on Tomcat.
During deployment procces everything seems to be OK.
But when I try to log on web, I get 500 error...
log file:
07/07/12 15:10:14.562 webapp1: Servlet error
javax.servlet.ServletException: Error instantiating servlet 'org.apache.jsp.index_jsp'. Servlet class org.apache.jsp.index_jsp not found in web-application webapp1
where org.apache.jsp.index_jsp is path from web.xml and servlet index_jsp.class is in
Web-Inf/classes/org/apache/jsp/ dir.
Any Idea?
Thanks a lot.
H.

Hi Steve,
thanks for your answer, because my question is quite stupid, I know.
But I'm not so much interested in pre-translated jsp files dependences on java container.
Yes, my application use some parts of catalina lib, but I would like to just get index.jsp
and this compiled class (org.apache.jsp.index_jsp.class) is "catalina lib free" I think?
Or should I change my build.xml?
Thanks.
H.

Similar Messages

  • Servlet class not found error deploying a WAR on Web Logic Server 8.1

    I'm re-deploying an updated web application to a web logic server, but when I navigate to the login page of the web application to test it, I get a class not found error for my login servlet. I have both the web.xml and the weblogic.xml descriptors in my WEB-INF directory, and all of my compiled classes are in the WEB-INF/classes directory, is there something else I'm missing? Any help would be much appreciated.

    Thanks for the response. Here's the web.xml file:
    <?xml version="1.0" ?>
    <!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>
         <display-name>Web Forms</display-name>
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <display-name>ChangePasswordServlet</display-name>
    <servlet-class>ChangePasswordServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <display-name>LogoutServlet</display-name>
    <servlet-class>LogoutServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <display-name>PageServlet</display-name>
    <servlet-class>PageServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>UploadServlet</servlet-name>
    <display-name>UploadServlet</display-name>
    <servlet-class>UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <url-pattern>/ChangePasswordServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/LogoutServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>UploadServlet</servlet-name>
    <url-pattern>/UploadServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    None of the classes are in a package (I know it's not the best idea, but I didn't write these, I'm just doing some updates). So the file structure is pretty much just WEB-INF/classes/
    At the moment I've got a fix by just putting the entire project (not in any sort of archive) on the server itself instead of deploying it as a WAR, any thoughts on why the WAR isn't working would be much appreciated though.

  • Deploying web applications - jsp generated servlet's may be written over the same file!

    Hi, I have made the following test:
    Created two simple web applications with one jsp page, and deployed it
    with different context names, in weblogic.properties I have:
    weblogic.httpd.webApp.weirdApp=\java\weblogic\myserver\weirdApp.war
    weblogic.httpd.webApp.weirdAppTwo=\java\weblogic\myserver\weirdAppTwo.war
    (Note: I have used two diferent war files, because I have a different
    implementation of the jsp page, I could have used the same warfile, and
    deployed it two times with the same different names I have used)
    These two applications have a jsp named myHomePage.jsp
    If I access the first application, like this:
    http://myServer:7001/weirdApp/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    If I access the second application, like this:
    http://myServer:7001/weirdAppTwo/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    It overrides the first one! Because the servlets are keeped in memory by
    a different class loader this seems to not affect the other servlet, but
    I am wondering what may happen with this strange beaver from weblogic!
    Bruno Antunes,
    Java Software Engineer
    email: mailto:[email protected]
    Phone: +351.21.7994200
    Fax : +351.21.7994242
    WhatEverSoft - Java Center
    Centro de Competencia Java
    Praca de Alvalade, 6 - Piso 4
    1700-036 Lisboa - Portugal
    URL: http://www.whatevernet.com
    ****************** Internet Mail Footer ****************************
    A presente mensagem pode conter Informação considerada Confidencial.
    Se o receptor desta mensagem não for o destinatário indicado, fica
    expressamente proibido de copiar ou endereçar a mensagem a terceiros.
    Em tal situação, o receptor deverá destruir a presente mensagem e
    por gentileza informar o emissor de tal facto.
    Privileged or Confidential Information may be contained in this
    message. If you are not the addressee indicated in this message,
    you may not copy or deliver this message to anyone. In such case,
    you should destroy this message and kindly notify the sender by
    reply email.

    I have a separate java class that gets my data and returns a Result object. Do you mean java.sql.ResultSet?
    In my main servlet I do the following:
    request.setAttribute("supporttracker",
    supporttracker.findsupporttracker(monthYear));
    and then in my JSP I can iterate through the Result
    like the following with no problems:
    <c:forEach var="supporttracker" begin="0"
    items="${supporttracker.rows}" varStatus="counter">
    My problem is that I can only iterate through this
    once in the page whereas I have no problem doing
    multiple forEach loops through other types of
    lists/collections such as an ArrayList. Right, because a ResultSet is a database cursor and doesn't act the same way that an ArrayList does. It's more like an InputStream - once you read it, you close it. If you want to re-read it, you have to re-initialize it again.
    Iterators behave that way, too. Once you walk through them, you have to re-initialize them.
    I've looked
    on the web and in a couple of books, I first thought
    it may be scope or some attribute in forEach that I
    was missing but I'm stumped. It seems like it's
    because the pointer to the result set is at the end
    of the result set when trying the second iteration,
    but I thought by using the begin="0" would put the
    pointer at the first row again, on my second
    iteration I'm getting no rows/data outputed.
    Please help and thanks in advance!The better thing to do is for your method to return a List of objects, one per row, that represent what the ResultSet returns. Have that method iterate through the ResultSet, loading the rows into the List, and close it before you leave in a finally block. A database cursor is a scarce resource, so it's a good idea to close it as soon as you can.
    %

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • Error when deploying BPM application: The specified process was not found

    Hi,
    I was trying to deploy a simple BPM application to a SOA Server, when I got the following error:
    [04:55:19 PM] Error deploying archive sca_PRUEBABPM_rev1.0.jar to partition "default" on server WLS_SOA2 [http://myserver:8001]
    [04:55:19 PM] HTTP error code returned [500]
    [04:55:19 PM] Error message from server:
    There was an error deploying the composite on WLS_SOA2: Operation failed - Member(Id=1, Timestamp=2013-07-15 19:30:56.492, Address=myadress:8088, MachineId=15229, Location=site:,machine:soadev1vhn1,process:29545, Role=WeblogicServer):Error occurred during deployment of component: PruebaManual to service engine: implementation.bpmn, for composite: PRUEBABPM: java.lang.RuntimeException: oracle.bpm.metadata.exception.MetadataException: BPM-70812: Process 'PruebaManual' not found.  Cause: The specified process was not found.  Action: Check that the name of the process is correct: oracle.bpm.metadata.exception.MetadataException: BPM-70812: Process 'PruebaManual' not found.  Cause: The specified process was not found.  Action: Check that the name of the process is correct; .  Please see the server diagnostic logs on WLS_SOA2 for details.
    [04:55:19 PM] Check server log for more details.
    [04:55:19 PM] Error deploying archive sca_PRUEBABPM_rev1.0.jar to partition "default" on server WLS_SOA2 [http://myserver:8001]
    The log file in the server console shows this:
    Error during deployment oracle.fabric.common.FabricException: Operation failed - Member(Id=1, Timestamp=2013-07-15 19:30:56.492, Address=192.168.168.231:8088, MachineId=15229, Location=site:,machine:soadev1vhn1,process:29545, Role=WeblogicServer):Error occurred during deployment of component: PruebaManual to service engine: implementation.bpmn, for composite: PRUEBABPM: java.lang.RuntimeException: oracle.bpm.metadata.exception.MetadataException: BPM-70812: Process 'PruebaManual' not found. Cause: The specified process was not found. Action: Check that the name of the process is correct: oracle.bpm.metadata.exception.MetadataException: BPM-70812: Process 'PruebaManual' not found. Cause: The specified process was not found. Action: Check that the name of the process is correct; . Please see the server diagnostic logs on WLS_SOA2 for details at oracle.integration.platform.blocks.deploy.CompositeDeploymentCoordinatorMessages.throwOperationFailedOnNode(CompositeDeploymentCoordinatorMessages.java:132) at oracle.integration.platform.blocks.deploy.CoherenceCompositeDeploymentCoordinatorImpl.submitRequestAndWaitForCompletion(CoherenceCompositeDeploymentCoordinatorImpl.java:351) at oracle.integration.platform.blocks.deploy.CoherenceCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(CoherenceCompositeDeploymentCoordinatorImpl.java:214) at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467) at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268) at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203) at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147) at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134) at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100) at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221) at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) 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:301) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Restart the server as I found in some pages and even a thread here (https://forums.oracle.com/thread/1557156) is not the better solution, the real issue still unknown. I need to find a solution without restarting the server machine.
    Thanks,
    AAPDL

    That error means you don't have rights to the Mailbox your trying to access. In Exchange by default the only user that has access to mailbox is the owner of the Mailbox, Exchange Administration rights does not grant you access to another users mailbox. You
    need to either specifically grant rights to each mailbox using Add-MailboxPermissions or use EWS impersonation where you can impersonate the owner of the Mailbox see
    http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.140).aspx and
    http://msdn.microsoft.com/en-us/library/office/dd633680(v=exchg.80).aspx
    Cheers
    Glen

  • Error accessing web application in OC4J-reg.

    Hi All,
    We deployed a web application into oc4j 903.
    We got the ERROR 1 when trying to access the application. Then we replaced the jaxb-rt-1.0-ea.jar & jaxp.jar in oc4j with the latest
    version from jwsdk1.1. Then we got the ERROR 2. This error is thrown because it is trying to use JXDocumentBuilderFactory from
    xmlparserv2.jar in oc4j instead of DocumentBuilderFactory in jaxp.jar. Then we tried to uncomment the tag "<web-app-class-loader
    search-local-classes-first="true" include-war-manifest-class-path="true" />" in orion-web.xml file. This ensures the use of jaxp.jar
    instead of xmlparserv2.jar but we got the ERROR 3. Now we don't know how to proceed further. Are we going in the right direction or
    are we missing anything?
    I will appreciate if any of you can provide any inputs.
    Please reply to me directly.
    ERROR 1:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at
    ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at
    EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Unknown Source)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
    Initialization of modules mappings source failed.
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: javax.xml.bind.JAXBException: Provider
    com.sun.xml.bind.ContextFactory could not be instantiated:
    java.lang.IncompatibleClassChangeError: Implementing class - with
    linked exception:[java.lang.IncompatibleClassChangeError: Implementing
    class]
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:118)
    at
    javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:233)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:153)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:228)
    ... 12 more
    ERROR 2:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading
    failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at
    ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at
    EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Unknown Source)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
    Initialization of modules mappings source failed.
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: java.lang.IllegalArgumentException
    at
    oracle.xml.jaxp.JXDocumentBuilderFactory.setAttribute(JXDocumentBuilderFactory.java:133)
    at
    ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:235)
    ... 12 more
    ERROR 3:
    500 Internal Server Error
    ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
    at ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
    at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
    J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException: Initialization of modules mappings source failed.
    at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
    at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
    ... 11 more
    Caused by: java.lang.ClassCastException
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139)
    at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:231)
    ... 12 more
    Thanks & Regards,
    Yoga

    Thanks Avi -- I did have a JDK versioning problem when first deploying in OC4J 9.0.4 -- but when I used JDK1.4.1 things worked. The problem appears to be that some classes are present in several different JAR files in the JDev libraries. Can anyone tell me about the dependencies out there between these JAR files? I can run the application in JDeveloper's OC4J container but cannot get it to deploy on 9.0.4 standalone.
    1) I had this error for a bit... the problem was caused by bc4jmt.jar and mc4jct.jar in my MT deployment.
    java.lang.IncompatibleClassChangeError
         at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:418)
    2) now I get this error -- looks like another version incompatibility. Can anyone shed light on this??
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.LinkageError, msg=Class oracle/jbo/ApplicationModule violates loader constraints
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532)

  • Deploy web application in jbuilder 9 with weblogic 7 problem

    when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
    where options include:
    -help Print this help message.
    -version Print version information.
    -adminurl <https://<server>:<port>> The URL of the administration server: default
    http://localhost:7001
    -user <user> A user other than the default of
    "installadministrator"
    -password <password> Specifies the password on the command line.
    If this option is absent the user is
    prompted.
    -verbose Displays additional status during the
    deployment process, including notifications
    when the application is prepared and
    activated on each target.
    -debug Displays debug level messages to the standard
    output.
    -examples Display example usage of this tool.
    -upload Causes the specified source file(s) to be
    transferred to the adminstration server. This
    is used when the Deployer tools is not being
    used on the same machine as the adminstration
    server and the user does not otherwise have
    access to place the targeted files on the
    adminstration server.
    -delete_files Causes the server to remove the files that
    are specified in the file list and leave the
    application activated. This option is valid
    only for unarchived web applications.
    -remote Signals that the tools is not runnning on the
    same machine as the adminstration server and
    that the source path should be made passed
    through unchanged as it represents the path
    on the remote server.
    -nostage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged and the
    original source is be used.
    -external_stage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged but the
    value of the staging path will be used when
    preparing the application.
    -stage Sets the stagingMethod staging attribute on
    the application when it is created so that
    the application will always be staged. This
    value will override the stagingMethod
    attribute on any targeted servers.
    -nowait Once the action is initiated the tool will
    print the task id and exit. This is used to
    initiate multiple tasks and then monitor them
    later using the -list action.
    -timeout <seconds> The maximum time in seconds to wait for the
    completion of the deployment task. When the
    time expires the current status is printed
    and the program exits.
    -source <archive file or directory> Location of the file or directory that
    represents the enterprise component or
    application tha is being (re)activated. If
    the source file is relative it is relative to
    the current directory, unless the -remote
    option is used. To specify individual files
    within an application for reployment or
    addition list them at the end of the command
    line.
    -name <application name> The name of the application being deployed.
    -targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
    cluster names. Each target may be qualified
    with a J2EE component name. This enables
    different components of the archive to
    deployed on different servers.
    -id <task identifier> Optional client supplied unique identifier
    for the deployment task. The id is first
    specified to -activate, -deactivate,
    -unprepare or -remove. It is then used later
    as an argument to -cancel or -list.
    -activate (Re)activates the <source> application on the
    <targets> with the <name>.
    -deactivate Deactivates the application <name> on the
    <targets> leaving an staged application files
    in a state where the may be quickly
    reactivated.
    -unprepare Deactivates and unloads classes for the
    application <name> on the <targets> leaving
    an staged application files in a state where
    the may be quickly reloaded.
    -remove Deactivates the application <name> on the
    <target> and removes any files that were
    staged for this application. If there are no
    longer any targets for the application, the
    associated configuration is completely
    removed.
    -cancel Atempts to cancel the task <id> if it is has
    not yet completed.
    -list Lists the target status of each task <id>
    -deploy a convenient alias for activate.
    -undeploy a convenient alias for unprepare.
    Optionally a list of the specific files in the archive that are to be
    redeployed may be specified. If a directory is specified the entire subtree is
    redeployed.
    Full documentation on this tool is available at:
    http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
    No actions was specified. Please specify one and only one of:
    -activate, -deactivate, -cancel, -remove, -unprepare, or -list.
    Type java weblogic.Deployer -examples for example usage.

    you use "deploy" under DOS-Mode to deploy your web application?
    i found some differences between "deploy" and "redeploy" function in jbuilder 9.
    when i choose "deploy" ,jbuilder shows me the commond below:
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility

  • Unknown site error while deploying web services using OC4J

    Hi,
    I have been testing the deploying webservices examples using demo.zip on OTN site.
    I have trouble in binding the web application name to stand alone OC4J.
    I am running stand alone OC4J server fine. I verified the website http://localhost:8888, which is running fine.
    If I issue the command
    java -jar admin.jar ormi://localhost:23791 admin password1 -bindwebapp demo_ejb_web_service HelloService_web http://localhost:8888/ sejb_webservices
    I get error
    oracle.oc4j.admin.internal.DeployerException: Unknown site: http://localhost:8888/
    What is the http-web-site address that needs to be given for binding web app, if I am running local standalone OC4J with no default port changes?
    Thanks,
    Mohan

    Eric,
    Thanks for the response. But, still I am not able to bind web-application to OC4J.
    Here is how my server.xml has defined the web-site tag:
    <web-site default="true" path="./http-web-site.xml" />
    My http-web-site.xml has following web-site tag:
    <web-site port="8888" display-name="OC4J 10g (10.0.2) HTTP Web Site">
    <default-web-app application="default" name="defaultWebApp"/>
    <web-app application="default" name="dms0" root="/dms0" access-log="false" />
    <web-app application="default" name="dms0" root="/dmsoc4j" access-log="false" />
    <web-app application="default" name="admin_web" root="/adminoc4j"/>
    <access-log path="../log/http-web-access.log"/>
    </web-site>
    I used the following command to bind the example web service:
    java -jar c:\XtendTools\oc4j\j2ee\home\admin.jar ormi://localhost admin password1 -bindWebApp demo_ejb_service HelloService_web default-web-site /sejb_services
    I get "oracle.oc4j.admin.internal.DeployerException: Unknown site: default-web-site" error.
    I tried to use following names as http-web-site, but nothing works.
    "http://localhost:8888"
    "dms0"
    "adminoc4j"
    I downloaded stand alone OC4J 10.1.2 from OTN and tried these samples.
    Your help will be appreciated.
    Thanks,
    Mohan

  • Class not found problem in Tomcat Web app

    Hi,
    I created a Web Service using JWSDP. I want to invoke a Web service method from my servlet. It works fine on Win NT Workstation, but on Windows 2000 it gives class not found error because it fails to pick up the jars that come with the pack in common\lib directory. I copied the jars to all possible lib paths as below, but looks like there's something wrong with the class loader. This problem comes in all our win2k machines. Does anyone have any clue about this.
    /WEB-INF/lib/*.jar of your web application
    $CATALINA_HOME/common/endorsed/*.jar
    $CATALINA_HOME/common/lib/*.jar
    $CATALINA_HOME/shared/lib/*.jar
    Thanks in advance,
    Sriram.

    If it can't find servlet.jar in the Tomcat dir, you should do what I did. I copied servlet.jar to C:\j2sdk1.4.0_01\jre\lib\ext\servlet.jar
    Then I added that to my CLASSPATH, and it finally found servlet.jar (it never found it in the Tomcat folder where it was).

  • How to deploy web application to Weblogic?

    Does anyone know how to deploy web application to Weblogic8.1?

    Hello,
    I found one error in what I have done. I add the '<context-root>' in '<weblogic-web-app>', which are not required in some other containers, and I can find the application of hello2. However, when I clicked 'submit' I got the following message:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: java/lang/StringBuilder
         at servlets.ResponseServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    I do not want to make changes in 'web.xml' file as it worked in other container. I guess I miss something that is special, probably basic, to WebLogic, but I do not know what it is.
    Bye the way, who know how to reward points to other people? I cannot find the 'assign points icon'.
    Thanks hoos. Your answer give me confidence that a web application could be deployed by copy war file to some directory (I guess from my experience of other containers).

  • Deploying web application in webshpere?

    Dear All,
    Can I deploy a simple web application, contains a servlet and few jsp pages, in Websphere instead of Tomcat for testing in system?
    Can anyone suggest for this request?
    Regards,
    Muthu

    Hi,
    yes you can. For more information see the Websphere documentation that you can access from teh vendor's website.
    Frank

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,
              I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
              If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
              Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
              thanks in advance for any suggestions or ideas.

    Hi,
              This is a known limitation/issue with WL. There is also no way around this.
              Regards,
              LG

  • Class not found for class generated by autotype when deploy

    I'm getting a ClassNotFoundException when I attempt to deploy a webservice that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute. Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDL files. source2wsdd specified the "javaSource" attribute and points to the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JAR file for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" I specify the class files that goes with the "javaSource" specified in step 2. I also take the JAR file created in step 2 (which contains all the code generated by step 1) and use "utilJars" to put in the the /lib directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classes that is in the utility jar file I created in step 2. I have verified that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to not find the class?
    Thanks in advance...
    Wayne

    Bruce: Got it working. (Bad news is I'm not sure what I did to fix it. :-( )
    My service now deploys, but I'm having problems doing a "source2wsdd" from inside
    Eclipse. Found another customer in this group with the same issue, and added my
    info to his message.
    For now I have to run the build outside Eclipse, but at least my service is deployable.
    Thanks for taking the time to reply to my message!
    Wayne
    Bruce Stephens <[email protected]> wrote:
    I think attachments are working again, so you might post a short example
    and we can take a look...
    Bruce Stephens wrote:
    Hi Wayne,
    Could it be something simple like not being capital "WEB-INF"
    ...probably not, but who knows. Also, in step 1, is your destDir going
    to WEB-INF/classes ?? Might review the working example Manoj generated
    [1].
    HTH,
    Bruce
    [1]
    http://www.manojc.com/?sample43
    Wayne Holmes wrote:
    I'm getting a ClassNotFoundException when I attempt to deploy a webservice
    that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute.Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDLfiles. source2wsdd specified the "javaSource" attribute and points to
    the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JARfile for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" Ispecify the class files that goes with the "javaSource" specified in
    step 2. I also take the JAR file created in step 2 (which contains all
    the code generated by step 1) and use "utilJars" to put in the the /lib
    directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classesthat is in the utility jar file I created in step 2. I have verified
    that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to notfind the class?
    Thanks in advance...
    Wayne

  • Class Not found : oracle.jdbc.driver.OracleDriver when calling web service

    Hi,
    I have installed the Oracle Data Integrator Public Web Services on Apache Tomcat 5.5 application server with Apache Axis2
    When I try to call the web service OdiInvoke using the operation "listScenario" using only the JdbcDriver as input parameter, the response I get back from the web service call is:
    java.lang.ClassNotFoundException: Class Not found : oracle.jdbc.driver.OracleDriver
    Using the operator "getWebServiceVersion" I get a successfull response back som the connection seems fine.
    Obviously the error has to do with the driver not beeing available but where should I put the driver? Or how do I make it available? When working from Topology Manager, all connections are fine.
    Best regards
    M

    Solved it on my own by putting ojdbc14.jar in the following directory: <Apache-Tomcat install dir>/webapps/axis2/WEB-INF/lib/
    Thought I'd share in case some one else has same issue
    /M

  • Failed in deploying Web Application (.ear file)

    I am trying to deploy a web application (file1.ear) but I got FileNotFoundException
    in webnohup.out.
    I did include this application in config.xml, as follows:
    <Application Deployed="true" Name="file1" Path="opt/weblogic6/config/ejbjars/file1.ear">
    <EJBComponent Name="EJB1" Targets="mysrv" URI="EJB1.jar"/>
    <WebAppComponent Name="App1" Targets="mysrv" URI="App1.war"/>
    <EJBComponent Name="EJB2" Targets="mysrv" URI="EJB2.jar"/>
    </Application>
    In webnohup.out file, the following exception is thrown:
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <Application care:Name=file1,Type=Application
    not found at ./opt/weblogic6/config/ejbjars/file1.ear>
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <IOException opening application
    care:Name=file1,Type=Application, loading from path opt/weblogic6/config/ejbjars/file1.ear
    java.io.FileNotFoundException: file does not exist: ./opt/weblogic6/config/ejbjars/file1.ear
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:431)
    at weblogic.management.mbeans.custom.Application.load(Application.java:3
    87)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    If you looked at the exception, it looks like that we can not put ABSOLUTE PATH
    in Path of config.xml since it will append the Weblogic home to the Path defined
    in config.xml.
    Is this correct or I missed anything?
    How do we use ABSOLUTE PATH in config.xml if you want to deploy Web application?
    Environment: SUNOS, Weblogic 6.1.
    Thanks

    Hi,
    specifying a leading slash shoul be enough to let the system know that it is an absolute path.
    Regards,
    Christian Buchegger
    Developer Relations Engineer
    BEA Support
    TJ schrieb:
    I am trying to deploy a web application (file1.ear) but I got FileNotFoundException
    in webnohup.out.
    I did include this application in config.xml, as follows:
    <Application Deployed="true" Name="file1" Path="opt/weblogic6/config/ejbjars/file1.ear">
    <EJBComponent Name="EJB1" Targets="mysrv" URI="EJB1.jar"/>
    <WebAppComponent Name="App1" Targets="mysrv" URI="App1.war"/>
    <EJBComponent Name="EJB2" Targets="mysrv" URI="EJB2.jar"/>
    </Application>
    In webnohup.out file, the following exception is thrown:
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <Application care:Name=file1,Type=Application
    not found at ./opt/weblogic6/config/ejbjars/file1.ear>
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <IOException opening application
    care:Name=file1,Type=Application, loading from path opt/weblogic6/config/ejbjars/file1.ear
    java.io.FileNotFoundException: file does not exist: ./opt/weblogic6/config/ejbjars/file1.ear
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:431)
    at weblogic.management.mbeans.custom.Application.load(Application.java:3
    87)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    If you looked at the exception, it looks like that we can not put ABSOLUTE PATH
    in Path of config.xml since it will append the Weblogic home to the Path defined
    in config.xml.
    Is this correct or I missed anything?
    How do we use ABSOLUTE PATH in config.xml if you want to deploy Web application?
    Environment: SUNOS, Weblogic 6.1.
    Thanks

Maybe you are looking for