Problem in j2ee coomand

i m trying to start j2ee server through command prompt by using
j2ee -verbose
i m getting the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: download\oss\oss_trou
ble_ticket-1_0_2-src-ri\ossj_tt_spec-1/0/src/jar;C:\prabhat1\my

Hi ,
I am also facing the same problem for compiling JSP Pages.
If the Flow of J2EE logic is HTM->JSP page then this works fine after deployement.
But if the presentation starts from JSP page then SUN Application Server8 is showing -
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
     org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
     org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
     org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
..............................................----(manymore)....
Can anyone kindly help in this ?
(expecting a reply from User Profile: sbodoff)
Thanks in advance,
Regards,
Bhaskar.

Similar Messages

  • Urgent! Serious problem with J2EE Classloader!

    Hi all,
    I'm having a serious problem with j2ee Classloading.
    I have "inherited" a J2EE application where all business classes (invoked by the EJB) are placed in the Application's Server classpath (Weblogic 8.1.4).
    Very bad because every time a class is changed the a.s. must be restarted.
    So I re-enginereed the package putting the business classes in a jar that is referenced by the EJB's MANIFEST file.
    This way all the classes would be loaded by the EJB classloader and no need to start/stop weblogic.
    Unfortunately it's not such !! I discovered that all business classes are loaded via REFLECTION
    Object objCommand = objClass.newInstance();
    Object[] param = new Object[1];
    param[0] = aDataContainer;
    objDataContainerReturn = (DataContainer) objMethod.invoke(objCommand,param);
    and the application server cannot find them using the standard J2EE Classloader mechanism.
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at irma.business.Dispatcher.callService(Dispatcher.java:70)
    Caused by: java.lang.NoClassDefFoundError: irma/utility/log/LogPrintStream
    at irma.business.service.LoginService.login(LoginService.java:79)
    On the other hand they're found if I put the classes on the application server classpath.
    Has anybody got advice for this ? Should I refactor the application giving up reflection ?
    Thanks a lot in advance.

    Reflection uses the classloader as well so it should work fine.
    A common cause of a NoClassDefFoundError is something in a parent classloader that refers to something only available in a child loader.
    For instance, do you have any of your application classes which are in the $CLASSPATH but reference something that is only (now) in the business.jar in your ear?
    -- Rob
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problem About J2EE RI and PetStore Demo

    Hello ^^
    I have a problem about j2ee & petstore.
    I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
    Everything run ok. But when I changed web port 8000 to any port (included
    80),
    j2ee ri server showed the error message below :
    java.net.ConnectException: Connection refused: connect
    java.security.PrivilegedActionException: javax.servlet.ServletException:
    An error occurred while evaluating custom action attribute "items" with
    value "${catalog.categories.list}": An error occurred while getting
    property "categories" from an instance of class
    com.sun.j2ee.blueprints.catalog.client.CatalogHelper
    I used root to start j2ee & cloudscape on linux,
    and changed database to postgresql, too.
    but the error is the same.
    How to solve this problem ??
    Thank you ~~
    Jovi

    Hi,
    I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
    If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
    One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
    Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
    Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
    Change those urls and redeploy the ears.
    Hope this solves the problem.
    Regards,
    Archit

  • Shared folder access problem in j2ee application

    Hi,
    We are using SAP Netweaver 04s JAVA system.
    In our j2ee application we are trying to access shared resource(file), but ejb is giving exception. Our code is as follows:
    File srcDir = new File("\machine_namefolder");
    if(!srcDir.exists())
    {throw new Exception("directory does not exist", srcSys);
    It gives expection "FileNotFoundException".
    The same j2ee application is working fine when deployed on IBM Websphere.
    We trired to access same shared path from windows, it is also working.
    Please help us. Thanks in advance.
    --sagar

    Hi,
    Please follow Shared Folder acess problem in J2ee application.
    -Vladimir

  • Problem starting j2ee RI

    I've got a problem starting j2ee RI. I've got a NumberFormatException
    Does anyone has an idee?
    j2ee -verbose
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: For input string: ""
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: For input string: ""
    Error executing J2EE server ...

    It appears that there is a file that is @ $J2EE_HOME/lib/security/secure.seed that is corrupted or empty. THE RI doesn't check if the file is valid. The solution is to delete the file and allow the RI to recreate the file.

  • WebSAPconsole - problem with J2EE

    I am trying to install WebSAPconsole (GUI 6.40), but I have some problems with J2EE (SAPJ2EE620C_39-10001433.sar). OS is Win XP Pro Polish.
    After instalation of J2EE I've tried to start dispatcher and server, and next check HTTP service - but there is no listening on 80 port, and there is no listening on p4 port (3011 - because of this no possibility to start visual administrator).
    Dispatcher and server are listening on ports 2055 and 2077, and I have 2 java.exe processes in Task Manager...
    No any other software occupying 80 and 3011 ports.
    Any suggestions?

    Hello vjara,
    I' new to SAP.Could you please tell me where I can find jstartup/trimming_properties = standard in the instance profile.I try to install WS 6.4 sneak preview and I'm getting error,Unable to start SAP J2EE Engine at step 22.I would appreciate for your help and guidance
    Thanks
    Subha

  • Problem reinstalling J2EE 1.4 on Windows XP

    Hi everyone,
    I installed once the j2ee 1.4 package without any problems, but I had to uninstall it.
    Now during the last 3 days I've been trying to reinstall it, but everytime I try I got the same error during the installation process:
    ERROR - default domain creation returned following exception: abnormal subprocess termination: Detailed Message:> was unexpected at this time.
    was unexpected at this time.---------------------------------------------------------------------------------------
    Can someone help me with this?
    P.S.:
    Everytime I have unistalled it, I have deleted the folder (C:\Sun) delete the "productregistry" and nothing seems to work.. Please help me!

    Check your PATH environment variable - it is likely that > character referenced in the error message is coming from there. So, clean up that entry from the PATH and rerun the installation.

  • Crystal Report problem with J2EE - OutOfMemory

    Dear All,
    I am having a problem about generating PDF from J2EE (Tomcat, Java 1.4)  WebApplication by Crystal report.
    When generating a PDF it sometimes got an out of memory error.
    However the Web Application is still working fine, just when regenerate the same crystal report the out of memory error occur again. when i generate the other report it works fine.
    Please help .
    Many Thanks

    Hi,
    It's a good idea to set the minimum and maximum heap size to the same value. In any case, don't let the minimum heap size exceed the maximum.
    Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.
    Look at the file tomcat-install/bin/catalina.sh or catalina.bat for how this variable is used.
    For example,
    set CATALINA_OPTS="-Xms512m -Xmx512m"  (Windows)
    export CATALINA_OPTS="-Xms512m -Xmx512m" (ksh/bash)
    setenv CATALINA_OPTS "-Xms512m -Xmx512m"  (tcsh/csh)
    In catalina.bat or catallina.sh, you may have noticed CATALINA_OPTS, JAVA_OPTS,
    or both can be used to specify Tomcat JVM options.
    What is the difference between CATALINA_OPTS and JAVA_OPTS?
    The name CATALINA_OPTS is specific for Tomcat servlet container,
    whereas JAVA_OPTS may be used by other java applications (e.g., JBoss).
    Since environment variables are shared by all applications, we don't want Tomcat to inadvertently pick up the JVM options intended for other apps. I prefer to use CATALINA_OPTS.
    You have specified size by a capiital "M" ?(3072M) use "m".
    Please let me know the results.
    Regards,
    Neeraj

  • Problem creating j2ee web service

    Hello. I'm having an issue deploying a given java class as a web service. I believe that problem is caused because, in the generated WSDL, the target namespace is set via the package name (i.e. http://myapplication.mycompany.com ), which is not a valid host. I tried changing every occurrence of that URL, in the WSDL, to the context root of my local host, but it still can't resolve the bindings. Given the following deployment message, what should my target namespace be:
    (from OC4J startup):
    Target URL -- http://localhost:8988/myApp-myProject-context-root/MyWebServiceSoapHttpPort
    06/06/12 13:34:17 Web service MenuWebService has been started on the embedded server
    06/06/12 13:34:17 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Any help would be appreciated. Thanks. Take care.

    here are the classes:
    service class:
    package com.test.service
    public class MenuService {
        public MenuService() {
        public String echo(String payload) {
            return payload;
        public ViewRight echoViewRight(ViewRight viewRight) {
            return viewRight;
    }view right class:
    package com.test.service
    public class ViewRight {
      private Integer id;
      private String name;
      private String description;
      private String members;
        public ViewRight() {
      //setters/getters
    }Here's the exception I get (if I just try to inovke the string echo method):
    java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
         javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:100)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.<init>(MenuWebServiceSoapHttpPortClient.java:19)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.main(MenuWebServiceSoapHttpPortClient.java:27)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)
         at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
         at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:713)
         at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:673)
         at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:664)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:201)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:77)
         ... 2 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)
         ... 9 more
    Message was edited by:
    sean_m_flannery

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Problem with J2EE

    Hi, I am new to Java Enterprise Edition. I am trying to install J2EE 1.3.1 on Win 2000 with service pack 4, and I am getting the following error
    16 bit Windows Subsystem
    c:\WINNT\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MSDOS and Microsoft Windows applications. Choose 'Close' to terminate the application.
    Plz help me to solve this problem.

    Open that autoexec.nt and check if it matches with this:
    @echo off
    REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
    REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
    REM different startup file is specified in an application's PIF.
    REM Install CD ROM extensions
    lh %SystemRoot%\system32\mscdexnt.exe
    REM Install network redirector (load before dosx.exe)
    lh %SystemRoot%\system32\redir
    REM Install DPMI support
    lh %SystemRoot%\system32\dosx

  • Intermittend connection problem from J2EE (separate) engine to ABAP

    When i run the test report FP_CHECK_DESTINATION_SERVICE the first time it works and returns the number of bytes transmitted. The second time it does not . The third time it works , the fourth time it does not etc etc etc  No matter how long I wait in between the attempts so not random.
    Any ideas would be helpfull.
    The error i get on the java side is :
    com.adobe.ads.destination.DestinationException: IO error detected while opening DEST connection: http://servername.domain.nl:4100/sap/bc/fp/form/layout/FP_TEST_00.XDP?fp-language=DE
            at com.adobe.ads.destination.Destination.readUrlStream(Unknown Source)
            at com.adobe.ads.destination.Destination.readTemplate(Unknown Source)
            at com.adobe.ads.data.DestURLData.setData(Unknown Source)
            at com.adobe.ads.data.DestURLData.<init>(Unknown Source)
            at com.adobe.ads.data.PDFData.createFromURL(Unknown Source)
            at com.adobe.ads.data.PDFData.create(Unknown Source)
            at com.adobe.ads.request.Template.setPDFData(Unknown Source)
            at com.adobe.ads.request.Template.initialize(Unknown Source)
            at com.adobe.ads.request.Renderer.initializeTemplates(Unknown Source)
            at com.adobe.ads.request.Renderer.execute(Unknown Source)
            at com.adobe.BaseADSRequest.doWork(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.processRender(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
            at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
            at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
            at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
            at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
            at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
            at SoapServlet.doPost(SoapServlet.java:51)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
            at java.security.AccessController.doPrivileged1(Native Method)
            at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: org.w3c.www.protocol.http.HttpException: org.w3c.www.protocol.http.HttpException: <b>Unable to contact target server servername.domain.nl:4100 after 1 tries.</b>
            at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.a(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            ... 41 more
    p.s. I changed the real server name for servername.domain.nl in the output

    After restarting the entire J2EE engine, this strange problem disappeared.

  • Problem accessing J2EE DataSource with BC4J

    I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
    The errors I receive:
    Launching OC4j...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
    password drivertype user sid connectionstring host encryptiontype port
    ApplicationModuleProvidernull
    java.lang.NullPointerException
    at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
    ionProvider.java:606)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
    pplicationModuleProvider.java:331)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
    ApplicationModuleProvider.java:200)
    at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
    vider.java:669)
    at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
    ger.java:607)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:168)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:92)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
    onnection(DataSourceHandlerImpl.java:331)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
    pplicationModule(DataSourceHandlerImpl.java:874)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
    ataSourceSet(DataSourceHandlerImpl.java:462)
    at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
    ceSet.java:538)
    at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
    ava:502)
    at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
    urce.java:251)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
    etController.java:439)
    at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
    JhsHttpServletController.java:70)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
    tController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:797)
    at java.lang.Thread.run(Unknown Source)
    ApplicationModuleProvider: ApplicationModuleProvidernull
    GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
    depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
    inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
    See also thread MySQL at the JHeadstart forum.
    data-sources.xml (oc4j\j2ee\home\config):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@172.16.2.240:1521:dev2"
              inactivity-timeout="30"
         />     
    cle-providers.xml:
    <cle-providers>
    <provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
    <property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
    <property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
    <property name="failover" value=""/>
    <property name="scope" value="request"/>
    <property name="managestate" value="false"/>
    <property name="configuration" value="Bc4jModuleLocal"/>
    </provider>
    </cle-providers>
    bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="Bc4jModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
    <JDBCName>ScottTiger</JDBCName>
    <jbo.project>empdep</jbo.project>
    <AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
    <ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="ScottTiger">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="localhost"/>
    <ENTRY name="user" value="Scott"/>
    <ENTRY name="ConnectionName" value="ScottTiger"/>
    <ENTRY name="SID" value="orcl"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    </BC4JConfig>

    Thank you Dhiraj,
    On my Oracle database it is working. But on MySQL I still have the same problem.
    I'm still ivestigating it.
    Thanks anyway.
    Marcel

  • RFC Calling Problem in J2EE

    Hi Friends,
    I can call a web service in my java application. But if i try to call <b>exactly same code</b> in J2EE application (in Netweaver or Tomcat), First<b> I got java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [sapjcorfc (Not found in java.library.path)]. java.library.path [/opt/IBMJava2-amd64-142/jre/bin:/opt/IBMJava2-amd64-142/jre/bin:/opt/IBMJava2-amd64-142/jre/bin:/opt/IBMJava2-amd64-142/jre/bin/j9vm:/opt/IBMJava2-amd64-142/jre/bin:/usr/sap/FND/DVEBMGS00/exe:/usr/sap/FND/DVEBMGS00/exe:/usr/sap/FND/DVEBMGS00/exe:/tmp/sapinst_exe.10865.1173958600:/usr/sap/FND/SYS/exe/run:/oracle/client/10x_64/instantclient:/usr/lib:/usr/sap/FND/DVEBMGS00/j2ee/os_libs:/usr/sap/FND/DVEBMGS00/exe:/usr/sap/FND/DVEBMGS00/exe:/usr/sap/FND/DVEBMGS00/exe:/usr/sap/FND/SYS/exe/run:/oracle/client/10x_64/instantclient]
    </b>, and i i refresh page i got
    <b> java.lang.NoClassDefFoundError: com.sap.mw.jco.JCO</b> Error...
    Why exactly same code run in java but doesnt run in j2ee???
    My Code is blow.
    Thanks For Your Helps
    try {
                JCO.Client client = JCO.createClient("800","USER","PASS","en","fitides","00");
                client.connect();
                System.out.println(client.getAttributes());
                JCO.Repository mRepository;
                mRepository = new JCO.Repository("FIT", client);
                JCO.Table codes = null;
                JCO.Function function = null;
                IFunctionTemplate ft = mRepository.getFunctionTemplate("YIDO_ISKELE_LIST");
                function = ft.getFunction();
                client.execute(function);
                codes = function.getTableParameterList().getTable("T_ISKELE");
                System.out.println("ROWS :"+codes.getNumRows());
                for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
                    codes.setRow(i);
                    System.out.println("KOD :"+codes.getString(1) +" - " + codes.getString(2));
                    System.out.println("ddd");
                client.disconnect();
            } catch(Exception ex) {
                ex.getMessage();

    Hi Eray,
    Congratulation!!! You got the solution!!!
    The applications in Portal resides @ X:\usr\sap[SID]\JC00\j2ee\cluster\server0\apps\sap.com
    Find your application there inside your application there will a WEB_INF directory.
    Inside it there will be a folder named "classes" at this level create a folder named "lib" insert all your related lib files there and then after restarting the server you can check whether your problem is solved or not.
    Let me know if the problem still exists!!!
    Regards,
    Prashil

  • Double submission problem in J2EE application under Weblogic 8.1 SP2 server

    Hi,
    We are facing double submission problem in our J2EE application which is running under Weblogic 8.1 SP2 and for the same we already implemented or added the below preventive solutions.
    1. We disable the SUBMIT button once the user clicks it.
    2. We preventated pressing 'F5' button and clicking 'Refresh' button in the browser.
    3. Also we tried to prevent by declaring the idempotent is 'true' under weblogic-ejb-jar.xml as below.
    <stateless-bean-methods-are-idempotent>true</stateless-bean-methods-are-idempotent>
    So please somebody help us on this issue like how to prevent in some other way.
    Regards,
    Dinesh.

    I have no idea why you would think changing your EJB configuration would have anything to do with preventing double submission at your servlet layer.
    One technique I've seen for preventing double submission was first used in the Struts framework several years ago. When a page is "prepared" for display, a token value is created and stored in the session. The page is displayed with a hidden field containing that value. When the page is submitted, the value of the hidden field is compared with the value stored in the session. If they're not equal, the submission is ignored.

Maybe you are looking for

  • Having trouble setting up the volume on my ipod...

    when i put on the sound check on on my pod it really knocks the volume way down, and i find if i boost the volume to my music tracks in my itunes settings {even with sound check off} that a certain percentage of my volume control {roughly the last te

  • Custom Scheduling

    I am asking my question prematurely as the business requirement is fluid at the moment. The need here is to schedule reports based on the last business day of the week. If the end of month fall mid-week, then the report should run on that day too. My

  • Rounding a decimal value to 3 digits

    I have opened a UDF and copied the value of Total (LC) column in that field. I want to round off the copied value to 2 digits. Below is the query written to copy the value. SELECT ($[$38.21.NUMBER] * $[$38.U_GST.1.11]) / 100 Below is the query writte

  • Creating Table - Preserve Case

    Hi, While Creating a table in Apex, we get a option PRESERVE CASE (Check Box). What is the function of This Check Box. Thanks. Shijesh

  • Business Server is email pdf with a .dat extention after 8398280

    Customer applied 8398280. After which ran into a few problems, one which is that when they schedule a report to run and send via email (that they had chosen to run as pdf) the attached file of the report gets sent with a .dat extention. If they save