EJB accessing web application classes

Hi,
what is the right method to enable packaged EJB to access classes of a
web application? Packaging both the EJB and web application in same
ear is not possible in this situation. We are running WebLogic 6.0 and
ejb is in
wlserver6.0/config/mydomain/applications/EJB.jar
and the classes it should use are in
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
i.e. not packed into war -package. adding
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
other deployments.

Please address calling and EJB from a JSP using the EJB to JSP tags...?I'm throwing
ClassCast errros on Object...
William Kemp <[email protected]> wrote:
This is addressed numerous times in this newsgroup and others. So, if
you are
insterested in additional explanations, a search of the newsgroups will
be
productive.
The WLS 6.x classloading scheme for enterprise apps, ejbs, and webapps
does
not permit and ejb to access webapp classes in the WEB-INF/classes directory
unless those classes are placed in the java system classpath, which,
you have
found, creates other problems.
If classes are needed by both webapp and ejb, place them in a utility
jar file
that is packaged in the ear with the ejb, or webapp, or both, and refer
to
them with the Class-Path manifest directive in the ejb jar file or the
webapp
war file.
For the details, see:
http://e-docs.bea.com/wls/docs61/programming/packaging.html#1029830
and the 7.0 stuff is good, too:
http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
Bill
janne wrote:
Hi,
what is the right method to enable packaged EJB to access classes ofa
web application? Packaging both the EJB and web application in same
ear is not possible in this situation. We are running WebLogic 6.0and
ejb is in
wlserver6.0/config/mydomain/applications/EJB.jar
and the classes it should use are in
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
i.e. not packed into war -package. adding
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
other deployments.

Similar Messages

  • EJB accessing web app classes

    hi,
    From an ejb classs, How can i access the classes in WEB-INF/classes folder of web application.
    I am using websphere application server.
    Thanks,
    Sridhar

    If you're using Java EE 5, the best way to share classes between the
    modules in an .ear is to put them in a .jar and place the .jar in a directory
    called "lib" at the top-level of the .ear. That guarantees that all
    modules have visibility to the shared classes.
    If you're using J2EE 1.4 or earlier, it's a bit more involved. You can put
    the shared .jar anywhere at the top-level of the .ear, but you need to
    edit the MANIFEST.MF of each module that needs to share the classes
    and set its Class-Path attribute to the relative location of the shared
    .jar.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Some users hitting error page when trying to access Web Applications...why?

    Hi,
    I have a SharePoint 2010 setup with 4 WFE, 4 APP Servers and 1 DB Server.
    After reading up a while back which services should be running on which server layer I remove the Web Application Service from APP Server (using Central Admin). The service is currently in error state on that machine. I had also removed a WFE Server which
    was not required and ensured all WFE had Web Application Service running as Microsoft Specified. I have checked each WFE and they have all same Web Applications in IIS. I have accessed a specific Web Application (that a user said they couldn't access) on 2
    of the 3 WFE servers when remoted into them, but one prompts me for login details. I have looked at the NLB on each WFE Server and saw that 2 out of three servers had all three servers in cluster. One that didn't was not same server as had problems accessing
    Web Application. I have removed a Server from Cluster and added it back as I saw Priorities were 1,2,4 (3 must have been initial removed server) and added it back again so Priorities were 1,2,3.
    Can anyone explain what may have happened in this scenario? It seems I think to be hitting this server with the problem accessing the Web Application. It seems to time out. How do I resolve this? DO I need to resync?
    Thanks.
    John.    

    Hi John,
    For your issue, it can be caused by that you remove  and  re-add a WFE from the NLB cluster. As  the Priority was changed, you need to disconnect and reconnect your SharePoint using SharePoint Products Configuration Wizard.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • 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)

  • Limit on users accessing web-application simultaneously

    My web-application's requirement is at any given time only one user should be allowed to access the application. How can I do this in JSP?? Got suggestions from my colleagues here that we can use App Scope variables.. Pls help me on this...
    Thanks in advance...
    Project Environment -- Tomcat 5.0, Java 1.4.2
    NOTE:: STRUTS and EJB NOT USED

    Use servlet context to store some variable.

  • Accessing web application from users' PC

    Hi there,
    My server is up and running, appsets are working nicely and everything works perfectly. But I have an issue when accessing the web application from a user PC on the same domain, and I'm not sure if it's down to me or not.
    From the users' PC, with BPC for Excel open, I click on the link for BPC Web, and Internet Explorer opens and attempts to take me to the web app. But if the address contains the server name, it doesn't work. If I manually type the IP address in instead it works.
    Why is this? Have I forgotten to do something, or is it a DNS problem, or other local IT issue?
    I'm sure I've missed something really silly, but can't figure out what!
    Any ideas appreciated!
    Thanks a lot,
    Jason

    Hi Akim,
    I think this is actually part of a wider problem - I have been testing this on my local PC (over the clients' VPN) and now it works fine. But I just logged onto the clients PC using Webex and I can't get into ANYTHING! Not the Admin client, not BPC for Office, not the web application - nothing.
    I think I need to go there on monday and actually go through this with one of their network guys - I'm not convinced that it's a problem with the server anymore!
    Thanks for your help - I will keep you posted!
    Jason

  • Server Hangs when I tried to Access web Application that deployed in Managed Server

              Hai All!
              Here is my problem ! I started Admin Server and Managed server in a same machine.
              I deployed HttpClusterServlet in web.xml of Managed server. When i started servers
              they start fine and says Clustering started.... But when i tried to Access index.jsp
              that is in Managed Server default web application ..Nothing happens. It neither
              throws exception nor shows the desired page.. Seems to be Browser hang and server
              hang. At this stage i am unable to access Admin console also.(I can access before
              i tried index.jsp of managed server).. It seems to be Hang Allover..
              Pls suggest me how to come out of this hanging...
              Rgds
              Manohar
              

    See my answer to your last post. The short answer is that the HttpClusterServlet is
              likely to be the problem and not the cluster. You can try one of the web server plugins
              or a hardware load balancer as a temporary workaround. You should file a case with
              support too...
              Manu Kar wrote:
              > Hai All!
              >
              > Here is my problem ! I started Admin Server and Managed server in a same machine.
              > I deployed HttpClusterServlet in web.xml of Managed server. When i started servers
              > they start fine and says Clustering started.... But when i tried to Access index.jsp
              > that is in Managed Server default web application ..Nothing happens. It neither
              > throws exception nor shows the desired page.. Seems to be Browser hang and server
              > hang. At this stage i am unable to access Admin console also.(I can access before
              > i tried index.jsp of managed server).. It seems to be Hang Allover..
              >
              > Pls suggest me how to come out of this hanging...
              >
              > Rgds
              > Manohar
              

  • Accessing web application JAR files from applet

    I've got an applet which is part of a web application.
    All the web application JARs are in the webapps/myappl/WEB-INF/lib directory, and I
    can't seem to place anything in that directory on the archive attribute of <OBJECT> tag.
    I'm running into trouble because I'm sending objects from the servlet to the applet and keep getting classnot found during deserialization because I've missed some jar file on the archive attribute. I've had to copy lots of jar files up to where the codebase in the HTML file is to make this run. My question is this.
    Is it better to just change the tomcat security policy file (catalina.policy in tomcat conf directory) so that the JARs are directly accessible and I don't have to copy them from WEB-INF/lib???? Has anyone done this before? What would the line look like?
    I'm assuming that I have to follow the instructions (THAT I DON'T UNDERSTAND)
    at the bottom of the policy file. Can someone help me out here????
    should I have something like
    grant codeBase "file:${catalina.home}/webapps/myappl/WEB-INF/classes/-"
    { permission java.security.AllPermission; };
    grant codeBase "file:${catalina.home}/webapps/myappl/WEB-INF/lib/-"
    { permission java.security.AllPermission; };
    Will this allow me to place references to jar files (and the classes directory) in the archive attribute, such as
    <OBJECT .....  >
        <param name="archive" value="../WEB-INF/lib/applet.jar,../WEB-INF/lib/someapp.jar,../WEB-INF/classes" />trailer for catalina.policy is
    // You can assign additional permissions to particular web applications by
    // adding additional "grant" entries here, based on the code base for that
    // application, /WEB-INF/classes/, or /WEB-INF/lib/ jar files.
    // Different permissions can be granted to JSP pages, classes loaded from
    // the /WEB-INF/classes/ directory, all jar files in the /WEB-INF/lib/
    // directory, or even to individual jar files in the /WEB-INF/lib/ directory.
    // For instance, assume that the standard "examples" application
    // included a JDBC driver that needed to establish a network connection to the
    // corresponding database and used the scrape taglib to get the weather from
    // the NOAA web server.  You might create a "grant" entries like this:
    // The permissions granted to the context root directory apply to JSP pages.
    // grant codeBase "file:${catalina.home}/webapps/examples/-" {
    //   permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
    //   permission java.net.SocketPermission "*.noaa.gov:80", "connect";
    // The permissions granted to the context WEB-INF/classes directory
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/classes/-" {
    // The permission granted to your JDBC driver
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar" {
    //   permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
    // The permission granted to the scrape taglib
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/scrape.jar" {
    //   permission java.net.SocketPermission "*.noaa.gov:80", "connect";
    // };

    Thank you for your reply.
    As I mentioned in my first post I had seen a couple of posts mentioning ServletContext before, but dismissed them as I am not using any servlets of my own. However, since you showed me exactly how it was used I realised I could probably just use a dummy servlet to get this information.
    The following page suggests a couple of techniques for doing just this.
    http://www.jguru.com/forums/view.jsp?EID=1087411
    So I think that's me sorted, cheers.

  • Exception while accessing web application

    Hi All,
    I have deployed my web application on OC4J 10.1.3. But while accessing application i am geeting NullPointer Exception below is the complete stack trace for the same.
    java.lang.NullPointerException
    at org.mortbay.servlet.jetty.IncludableGzipFilter$IncludableGzipStream.setContentEncodingGzip(IncludableGzipFilter.java:54)
    at org.mortbay.servlet.GzipFilter$GzipStream.doGzip(GzipFilter.java:482)
    at org.mortbay.servlet.GzipFilter$GzipStream.checkOut(GzipFilter.java:531)
    at org.mortbay.servlet.GzipFilter$GzipStream.write(GzipFilter.java:465)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:539)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:436)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.assureSpace(EvermindJSPWriter.java:922)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.javaCharsToAL32UTF8(EvermindJSPWriter.java:1058)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.print(EvermindJSPWriter.java:849)
    at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag(Unknown Source)
    at public.login._jspService(_login.java:1817)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.zimbra.webClient.servlet.JspServlet.service(JspServlet.java:38)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.zimbra.webClient.filters.SetHeaderFilter.doFilter(SetHeaderFilter.java:264)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
    at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:415)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

    I am having the same issue has anyone found a solution to this I have deployed a WAR file to the server an I am getting this error when I try to run the application. I would appreciate some input as this is a PRODUCITON issue
    the following statement is where this problems
    ps = conn1.prepareStatement("<string variable>");
    09/12/14 13:42:07 sfrracl: Servlet error
    java.lang.NullPointerException
    at sfrracl.SfrraclUpd.doPost(SfrraclUpd.java:269)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Calling EJB from web application

    Hi All,
    i am writing the one j2ee application. i have the one web application and one stateless bean. now i want to call the session bean from the web application using the struts frame work... how can i call the ejb from the normal web applicaion....
    i deployed both in web logic successfully.. now how can i integrate those two applicaitions........
    Thanks
    Rao

    http://www.oracle.com/technology/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/servlettoejb.jar
    download one of the classical example from oracle code base and reverse-engineer it after extraction of the application.

  • Accessing Web Application

    Hi,
    I have created a sample ear with the ejb archive & the web archive & deployed to the J2ee engine. I have a jsp in the web module. What is the url i need to give to access this from the browser?
    Thanks in advance

    application.xml Entry
    <application>
        <display-name>myEnterpriseApplicationProject</display-name>
        <description>EAR description</description>
        <module>
            <ejb>myEJBProject.jar</ejb>
        </module>
        <module>
            <web>
                <web-uri>myWebProject.war</web-uri>
                <context-root>contextRoot</context-root>
            </web>
        </module>
    </application>
    JSP name = Test.jsp
    Am giving in the url
    http://localhost:50000/myWebProject/Test.jsp
    also tried
    http://localhost:50000/myWebProject.war/Test.jsp
    it shows an Error
    Details: File D:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root\myWebProject\Test.jsp does not exist.
    Thanks in advance

  • Access Application Class from Model Class in BSP

    Hello,
    I am developing a BSP Application based on MVC. Is there any way, I can access the Application Class's Attribute from a Method in the Model Class?
    Thanksin Advance.
    Regards
    Gladson

    Hello,
    I solved it by passing the application class attribute to the model method, from the controller class.
    Regards
    Gladson

  • Can you reload web application from the Weblogic console?

              Good day, eh!
              Can you reload all your jsp/servlet classes of your
              web application from the Weblogic console?
              A one big button labeled 'Reload application' would be very
              good property in Weblogic
              Thanks for Your answers
              - hoser
              

    Hi,
              I agree it is a much needed feature. Suppose I just change an init
              param of one application in the web.xml, I don't want to take down the
              15 other webapps running on my server just to be able to have that web
              app restart and re-read is configuration. Of course, I could program
              some servlet that allows changing application attributes and to enable
              restarting, but really this a)does not cover all the cases (i.e. addind
              an EBJ reference binding to web.xml) b) should be provided by the app
              server, not programmed by every little programmer again & again.
              Mathieu
              Jeff Nowakowski wrote:
              >
              > The URL you give refers to redeploying EJBs, not web applications. Being
              > able to redeploy a web application would be a very convenient feature.
              >
              > -Jeff
              >
              > Gene Chuang <[email protected]> wrote in message news:[email protected]...
              > > Button is already there!
              > >
              > > http://www.weblogic.com/docs51/techdeploy/hotdeploy.html#consoledeployejb
              > >
              > > Gene
              > >
              > > "hoser" <[email protected]> wrote in message
              > > news:[email protected]...
              > > >
              > > > Good day, eh!
              > > >
              > > > Can you reload all your jsp/servlet classes of your
              > > > web application from the Weblogic console?
              > > >
              > > > A one big button labeled 'Reload application' would be very
              > > > good property in Weblogic
              > > >
              > > > Thanks for Your answers
              > > >
              > > > - hoser
              > >
              > >
              

  • Influencing JAR order for Application Class Loader

              I have seen some questions about this in the past but there has never been a definitive
              reply one way of the other.
              Is it possible to influence the order in which the web application class loader
              looks through the JAR files located in the /WEB-INF/lib directory?
              I have two JAR files - one contains the base release version of some software
              and the other contains some fixes so I need the fixes JAR to be loaded first.
              Thanks
              Gary Johnson
              

    Hi Gary,
              The order jars searched in WEB-INF/lib is not defined.
              You may cosider merging those two jars in one jar.
              Regards,
              Slava Imeshev
              "Gary Johnson" <[email protected]> wrote in message
              news:[email protected]..
              >
              > I have seen some questions about this in the past but there has never been
              a definitive
              > reply one way of the other.
              >
              > Is it possible to influence the order in which the web application class
              loader
              > looks through the JAR files located in the /WEB-INF/lib directory?
              >
              > I have two JAR files - one contains the base release version of some
              software
              > and the other contains some fixes so I need the fixes JAR to be loaded
              first.
              >
              > Thanks
              > Gary Johnson
              

  • How to access an EJB from a web application deployed in the same server

    Hey All,
    I deployed an EJB named EventServerBean to Sun Application Server 9.0, and put the client side jar file (named eventserver.jar which is generated by Sun Application Server) to C:\Sun\AppServer\lib. Now, I have a web application which is a simple jave file -- lookup EventServer EJB and invoke a remote method in this EJB. However, the web application always throws an exception "java.lang.NoClassDefFoundError: eventserver/EventServerRemoteHome"
    Here is my java class that access the ejb:
    public class Post_Event {
        public HashMap<String, String> getEventInfo(String event_name, String site) {
            System.out.println("Post_Event, the class path: " + System.getProperty("java.class.path"));       
            System.out.println("Post_Event, user.dir: " + System.getProperty("user.dir"));
            System.out.println("Post_Event, java.library.path: " + System.getProperty("java.library.path"));
            HashMap<String, String> result = null;
            EventServerRemote remote = null;
            StringTokenizer st, st2;
            // here get the event information from host
            try {
                String lookupStr = "corbaname:iiop:" + site + ":3700#ejb/EventServerBean";
                InitialContext initialContext = new InitialContext();
                EventServerRemoteHome remoteHome = (EventServerRemoteHome) javax.rmi.PortableRemoteObject.narrow(initialContext.lookup(lookupStr), EventServerRemoteHome.class);
                if (remoteHome != null) {
                    remote = remoteHome.create();
            } catch (javax.naming.NamingException ne) {
                ne.printStackTrace();
                return null;
            } catch (javax.ejb.CreateException ce) {
                ce.printStackTrace();
                return null;
            } catch (java.rmi.RemoteException re) {
                re.printStackTrace();
                return null;
            } catch (java.io.IOException ioe) {
                ioe.printStackTrace();
                return null;
            System.out.println("look up remote event server successfully.");
         result = remote.getEvent(event_name);
            return result;
        } I output the class path in this java file, and the class path DOES include the path C:\Sun\AppServer\lib where eventserver\EventServerRemoteHome.class is.
    Does anyone know why it happens? Why a java class can't find a class that is in its class path?
    appreciate any help!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Wael Abbas ([email protected]):
    Thank you for your great topic.
    I think you need to copy the snippet code and past it to every application, applet, servlet or JSP every time you need to use your EJB.
    Its better to include this snippet code in a simple JavaBean and use this bean as a bridge to your EJB, you may include a connect method in your JavaBean or but the connection code in the constructor and include a setters, getters and other methods to encapsulate your EJB methods.
    You can use your JavaBean in any application, applet, servlet or JSP just create an object form it and call its methods.
    Its just an idea
    I hope it will be useful.
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for