Urgent Issue:Err-REP-50125 : java.lang.ClassNotFoundException  - 11.1.1.3.0

I'm trying to use custom destination with oracle fusion middleware 11.1.1.3.0 In-Process report server. I have added a custom destination section in the rwserver.conf file. Added the (customdest.jar - my jar file) jar file to the system classpath and reports_classpath. Still receiving class not found error.
Here are the details:
rwserver.conf:/opt/oracle/Middleware/user_projects/domains/ReportsDomain/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.1.2.0/configuration/rwserver.conf
<?xml version = '1.0' encoding = 'UTF-8'?>
<server xmlns="http://xmlns.oracle.com/reports/server" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="11.1.1.2.0" xsi:schemaLocation="http://xmlns.oracle.com/reports/server file:/opt/oracle/Middleware/as_1/reports/dtd/rwserverconf.xsd">
<cache class="oracle.reports.cache.RWCache">
<property name="cacheSize" value="50"/>
<!--property name="cacheDir" value="your cache directory"/-->
<!--property name="maxCacheFileNumber" value="max number of cache files"/-->
</cache>
<!--Please do not change the id for reports engine.-->
<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->
*<engine class="oracle.reports.engine.EngineImpl" engLife="50" id="rwEng" maxEngine="1" minEngine="1" jvmOptions="-Xmx512M" classPath="/opt/oracle/Middleware/as_1/jlib/jsp-api-2.1-6.0.1.jar:/opt/oracle/Middleware/as_1/jlib/jsch-0.1.26.jar:/opt/oracle/Middleware/as_1/reports/jlib/customdest.jar">*
<property name="sourceDir" value="/opt/ogreports/catalog:/opt/ogreports/catalog/img"/>
<!--property name="tempDir" value="your reports temp directory"/-->
<!--property name="keepConnection" value="yes"/-->
</engine>
<engine class="oracle.reports.urlengine.URLEngineImpl" engLife="50" id="rwURLEng" maxEngine="1" minEngine="0" classPath="/opt/oracle/Middleware/as_1/jlib/jsp-api-2.1-6.0.1.jar:/opt/oracle/Middleware/as_1/jlib/jsch-0.1.26.jar:/opt/oracle/Middleware/as_1/reports/jlib/customdest.jar"/>
<security class="oracle.reports.server.RWJAZNSecurity" id="rwJaznSec"/>
<!--destination destype="oraclePortal" class="oracle.reports.server.DesOraclePortal">
<property name="dbuser" value="$$PORTAL_DB_USERNAME$$"/>
<property name="dbpassword" value="csf:$$CSF_ALIAS$$:$$PORTAL_DB_PASSWORD_KEYE$$"/>
<property name="dbconn" value="$$PORTAL_DB_TNSNAME$$"/>
</destination-->
<destination class="oracle.reports.plugin.destination.ftp.DesFTP" destype="ftp"/>
<destination class="oracle.reports.plugin.destination.webdav.DesWebDAV" destype="WebDav"/>
*<destination destype="rcpfile" class="com.ubizen.og.offline.reporting.oracle.RcpDestination">*
*<property name="user" value="tomcat"/>*
*<property name="destype" value="rcpfile"/>*
*</destination>*
<job engineId="rwEng" jobType="report"/>
<job engineId="rwURLEng" jobType="rwurl"/>
<notification class="oracle.reports.server.MailNotify" id="mailNotify">
<property name="succnotefile" value="succnote.txt"/>
<property name="failnotefile" value="failnote.txt"/>
</notification>
Error:/opt/oracle/Middleware/user_projects/domains/ReportsDomain/servers/WLS_REPORTS/logs/reports/rwserver_diagnostic.log
[2011-09-29T10:52:26.871-04:00] [WLS_REPORTS] [INCIDENT_ERROR] [REP-50125] [oracle.reports.server] [tid: 46] [userId: <anonymous>] [ecid: 0000JApf0iF9XbpSoQjc4m1EOGV800001d,1:18769] [APP: reports#11.1.1.2.0] [dcid: fa0c1bc817f5aeb4:-3e9d1a3b:1322b067681:-7fff-000000000000876f] REP-50125 : java.lang.ClassNotFoundException: com.ubizen.og.offline.reporting.oracle.RcpDestination [[
java.lang.ClassNotFoundException: com.ubizen.og.offline.reporting.oracle.RcpDestination
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at oracle.reports.server.Destination.invokeShutdown(Destination.java:492)
at oracle.reports.server.Destination.shutdownDest(Destination.java:125)
at oracle.reports.server.RWServer.shutdown(RWServer.java:463)
at oracle.reports.server.RWServer.run(RWServer.java:364)
at java.lang.Thread.run(Thread.java:662)
ClassPath:.:/opt/oracle/Middleware/as_1/jlib:/opt/oracle/Middleware/as_1/reports/jlib
File in classpath: /opt/oracle/Middleware/as_1/reports/jlib
aolj.jar customdest.jar rwadmin.jar rwenv.jar rwxdo.jar
confmbean.jar runtimembean.jar rwbuilder.jar rwrun.jar
Relates to Oracle Bug:
https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(viewingMode=1143&from=BOOKMARK&bmDocTitle=Can%20Not%20Find%20Class%20From%20Custom%20Destinations%20Jar%20File%20-%20REP-50125%20:%20java.lang.ClassNotFoundException&bmDocID=1263455.1&bmDocType=PROBLEM&bmDocDsrc=KB))
Note:
I'm not sure where the In-Process report server is looking for the classpath. I added them in all possible classpaths ans none of them worked.
This is an urgent issue in our team. We are migrating from 10g oracle application server to fusion middleware 11g report server. This functionality is working in 10g report server but not in 11g due to classpath issues.
Please let me know if additional info needed. Please respond.

Hi,
Thanks very much for responding. I added my jar file(customdest.jar) as you have suggested to setDomainEnv.sh. Now the In-Process report server just hangs when I try to bring it up through em and I don't see any errors in the log files. Any ideas where to look for errors? The jar files were created for 10g , we are just migrating them to 11g. I have setup the trace at highest level still don't see any error in rwserver_diagnostic.log.
Here is the details:
/opt/oracle/Middleware/user_projects/domains/ReportsDomain/bin/setDomainEnv.sh :
if [ "${SERVER_NAME}" = "WLS_REPORTS" ] ; then
POST_CLASSPATH="/opt/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/opt/oracle/Middleware/as_1/opmn/lib/nonj2eembeans.jar:/opt/oracle/Middleware/as_1/jdbc/lib/ojdbc6.jar:/opt/oracle/Middleware/as_1/opmn/lib/optic.jar:/opt/oracle/Middleware/as_1/opmn/lib/iasprovision.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar:/opt/oracle/Middleware/as_1/jlib/dfc.jar:/opt/oracle/Middleware/as_1/dvt/lib/dvt-jclient.jar:/opt/oracle/Middleware/as_1/dvt/lib/dvt-utils.jar:/opt/oracle/Middleware/oracle_common/jlib/ewt3.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.iau_11.1.1/fmw_audit.jar:/opt/oracle/Middleware/as_1/oui/jlib/http_client.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.idm_11.1.1/identitystore.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.idm_11.1.1/identityutils.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jaccprovider.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.jps_11.1.1/jacc-spi.jar:/opt/oracle/Middleware/as_1/ord/jlib/jai_codec.jar:/opt/oracle/Middleware/as_1/ord/jlib/jai_core.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.oc4j-obsolete_11.1.1/jazn.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.oc4j-obsolete_11.1.1/jazncore.jar:/opt/oracle/Middleware/oracle_common/jlib/jewt4.jar:/opt/oracle/Middleware/as_1/jlib/jta.jar:/opt/oracle/Middleware/oracle_common/modules/oracle.ldap_11.1.1/ldapjclnt11.jar:/opt/oracle/Middleware/as_1/lib/mail.jar:/opt/oracle/Middleware/as_1/jlib/netcfg.jar:/opt/oracle/Middleware/as_1/jlib/oracle_ice.jar:/opt/oracle/Middleware/oracle_common/jlib/share.jar:/opt/oracle/Middleware/as_1/jlib/zrclient.jar:/opt/oracle/Middleware/as_1/reports/jlib/aolj.jar:/opt/oracle/Middleware/as_1/reports/jlib/confmbean.jar:/opt/oracle/Middleware/as_1/reports/jlib/runtimembean.jar:/opt/oracle/Middleware/as_1/reports/jlib/rwadmin.jar:/opt/oracle/Middleware/as_1/reports/jlib/rwbuilder.jar:/opt/oracle/Middleware/as_1/reports/jlib/rwenv.jar:/opt/oracle/Middleware/as_1/reports/jlib/rwrun.jar:/opt/oracle/Middleware/as_1/reports/jlib/rwxdo.jar:/opt/oracle/Middleware/as_1/jlib/rts2.jar:*/opt/oracle/Middleware/as_1/reports/jlib/customdest.jar*:${CLASSPATHSEP}${POST_CLASSPATH}"
export POST_CLASSPATH
Log file: rwserver_diagnostic.log
/opt/oracle/Middleware/user_projects/domains/ReportsDomain/servers/WLS_REPORTS/logs/reports
<destination class="oracle.reports.plugin.destination.ftp.DesFTP" destype="ftp"/>
<destination class="oracle.reports.plugin.destination.webdav.DesWebDAV" destype="WebDav"/>
<destination destype="rcpfile" class="com.ubizen.og.offline.reporting.oracle.RcpDestination">
<property name="user" value="tomcat"/>
<property name="destype" value="rcpfile"/>
</destination>
<job engineId="rwEng" jobType="report"/>
<job engineId="rwURLEng" jobType="rwurl"/>
<notification class="oracle.reports.server.MailNotify" id="mailNotify">
<property name="succnotefile" value="succnote.txt"/>
<property name="failnotefile" value="failnote.txt"/>
</notification>
<!--notification id="wfNotify" class="oracle.reports.server.WorkflowNotify">
<property name="connStr" value="%WF_DB_USERNAME%/%WF_DB_PASSWORD%@%WF_DB_TNSNAME%" encrypted="no"/>
</notification-->
<!--jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
<property name="dbuser" value="$$REPO_DB_USERNAME$$"/>
<property name="dbpassword" value="csf:$$CSF_ALIAS$$:$$REPO_DB_PASSWORD_KEYE$$"/>
<property name="dbconn" value="$$REPO_DB_TNSNAME$$"/>
</jobStatusRepository-->
<connection idleTimeOut="15" maxConnect="50"/>
<queue maxQueueSize="1000"/>
<!--jobRecovery auxDatFiles="yes"/-->
<pluginParam name="mailServer" value="%MAILSERVER_NAME%">
<!--property name="enableSSL" value="yes"/-->
<!--UserName and Password that can be used to connect to the mail server-->
<!--property name="mailUserName" value="%MAIL_USERID%" /-->
<!--property name="mailPassword" value="%MAIL_PASSWORD%"/-->
</pluginParam>
</server>
[2011-10-02T23:31:51.431-04:00] [WLS_REPORTS] [TRACE:32] [REP-56025] [oracle.reports.server] [tid: 22] [userId: weblogic] [ecid: 0000JB7par79XbpSoQjc4m1EYIaI00000F,0] [SRC_CLASS: oracle.reports.utility.RWLogger] [APP: reports#11.1.1.2.0] [dcid: fa0c1bc817f5aeb4:7b3253ab:132c7c7f2e9:-8000-00000000000000fa] [SRC_METHOD: writeln] RWServer:startServer Reports Server is starting up.
[2011-10-02T23:31:51.435-04:00] [WLS_REPORTS] [TRACE:16] [] [oracle.reports.server] [tid: 22] [userId: weblogic] [ecid: 0000JB7par79XbpSoQjc4m1EYIaI00000F,0] [SRC_CLASS: oracle.reports.utility.RWLogger] [APP: reports#11.1.1.2.0] [dcid: fa0c1bc817f5aeb4:7b3253ab:132c7c7f2e9:-8000-00000000000000fa] [SRC_METHOD: writeln] Multicast:registerReceiver Packet handler registered
[2011-10-02T23:31:51.435-04:00] [WLS_REPORTS] [NOTIFICATION:16] [] [oracle.reports.server] [tid: 22] [userId: weblogic] [ecid: 0000JB7par79XbpSoQjc4m1EYIaI00000F,0] [APP: reports#11.1.1.2.0] [dcid: fa0c1bc817f5aeb4:7b3253ab:132c7c7f2e9:-8000-00000000000000fa] ServerPacketHandler:start ServerPacketHandler started successfully
[2011-10-02T23:31:51.441-04:00] [WLS_REPORTS] [NOTIFICATION:16] [] [oracle.reports.server] [tid: 22] [userId: weblogic] [ecid: 0000JB7par79XbpSoQjc4m1EYIaI00000F,0] [APP: reports#11.1.1.2.0] [dcid: fa0c1bc817f5aeb4:7b3253ab:132c7c7f2e9:-8000-00000000000000fa] SecurityHelper:start Security system rwJaznSec successfully started.
No more error logged after this line. but in-process server just hung up indefinitely when I tried stating via the em and also via getserverinfo URL.
In rwserver.conf: I have defined the following for custom destination
/opt/oracle/Middleware/user_projects/domains/Repdomain/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.1.2.0/configuration/rwserver.conf
<destination destype="rcpfile" class="com.ubizen.og.offline.reporting.oracle.RcpDestination">
<property name="user" value="tomcat"/>
<property name="destype" value="rcpfile"/>
</destination>

Similar Messages

  • REP-50125 java.lang.RuntimeException

    Hi Oracle people,
    I have a problem. I have all my services up, except for the in-process reports server. I can't start it for nothing. I was now trying to install a new rep server with the command rwserver.sh -install server=RepSrv02 and i got this error "REP-50125 java.lang.RuntimeException: Error reading reports server logging configuration".
    I can't find anything about this error. Any ideas? I could really aprecciate some help as i'm getting desperate.
    Thank you

    yes.
    export DISPLAY=ip adrees:0.0
    xhost +
    and make sure you are able to invoke xclock .
    Rajesh Alex

  • Java.lang.ClassNotFoundException - classloader issue ?

    Hi All
    We tried to deploy our ADF ear file to 10.3.6 weblogic.
    Our app uses 3rd party jars put in WEB-INF/lib in war which in turn is in our app ear file.
    Our web.xml is configured
       <listener>
        <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
      </listener>
    When we deploy our ear app, we get this error:
    Is this a classloader issue ? If it is, at what level of classloader this is failing ?
    What file should we configure ?
    Where should we put our third-party jars as we do not have control over the install weblogic servers owned by another team.
    Any help is appreciated.
    Sincerely
    ####<Sep 18, 2013 10:54:50 AM PDT> <Error> <Console> <host> <AdminServer> <[ACTIVE] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <085fcd85a0c1669b:64c5b0f5:141284171fa:-8000-00000000000001eb> <1379526890738> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException: [Deployer:149233]An unexpected error was encountered during the deployment process.
      at weblogic.deploy.internal.targetserver.DeployHelper.handleException(DeployHelper.java:385)
      at weblogic.deploy.internal.targetserver.DeployHelper.convertThrowableForTransfer(DeployHelper.java:511)
      at weblogic.deploy.internal.targetserver.DeploymentManager.notifyCommitFailure(DeploymentManager.java:1442)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:457)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.ClassNotFoundException: ch.qos.cal10n.MessageConveyorException
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)
      at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:115)
      at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)
      at org.jboss.weld.logging.WeldMessageConveyor.getMessage(WeldMessageConveyor.java:66)
      at org.jboss.weld.exceptions.WeldExceptionKeyMessage.getAsString(WeldExceptionKeyMessage.java:67)
      at org.jboss.weld.exceptions.WeldException.getMessage(WeldException.java:87)
      at org.jboss.weld.exceptions.WeldException.getLocalizedMessage(WeldException.java:82)
      at java.lang.Throwable.toString(Throwable.java:343)
      at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:26)
      at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:29)
      at com.bea.logging.BaseLogRecord.setThrown(BaseLogRecord.java:172)
      at com.bea.logging.BaseLogRecord.<init>(BaseLogRecord.java:100)
      at weblogic.logging.WLLogRecord.<init>(WLLogRecord.java:63)
      at weblogic.logging.JDKLoggerFactory.createBaseLogRecord(JDKLoggerFactory.java:85)
      at com.bea.logging.LoggingService.log(LoggingService.java:234)
      at weblogic.i18n.logging.Loggable.log(Loggable.java:158)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.complete(AbstractOperation.java:429)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:326)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
      at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

    Please check if the clas ch.qos.cal10n.MessageConveyorException is available.
    check permissions.
    check if exist.
    check if the directory is into JAVA_CLASSPATH.

  • MBean Execution  in 10.1.3.1 - java.lang.ClassNotFoundException: Issue

    I have a weird problem in 10.1.3.1 application server. Hope somebody can help me.
    I have an operation in MBean deployed on OC4J which gets executed fine when invoked from the ApplicationServerControl. But the same operation when invoked through JConsole it gives me an exception.
    This is what MBean does: MBean look's up EJB1 which in turn look's up EJB2 via RMIInitialContextFactory. I get the below exception mentioned during the EJB2 lookup.
    07/04/20 17:00:31 javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: oracle.j2ee.rmi.RMIInitialContextFactory]
    07/04/20 17:00:31 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
    07/04/20 17:00:31 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    07/04/20 17:00:31 at javax.naming.InitialContext.init(InitialContext.java:223)
    07/04/20 17:00:31 at javax.naming.InitialContext.<init>(InitialContext.java:197)
    07/04/20 17:00:31 at SB.<init>(MySessionBean.java:77)
    07/04/20 17:00:31 at TaskQueueScheduler_RemoteProxy_5kgg2f4.OC4J_createBeanInstance(Unknown Source)
    07/04/20 17:00:31 at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:37)
    07/04/20 17:00:31 at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
    07/04/20 17:00:31 at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
    at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
    07/04/20 17:00:31 at TaskQueueScheduler_RemoteProxy_5kgg2f4.submitJob(Unknown Source)
    07/04/20 17:00:31 at MyManager.startOperation1(MyManager.java:374)
    07/04/20 17:00:31 at MyMBean.initializeTimer(MyManager.java:494)
    07/04/20 17:00:31 at MyMBean.initializeTimer.startAllOperations(MyManager.java:140)
    07/04/20 17:00:31 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    07/04/20 17:00:31 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    07/04/20 17:00:31 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/04/20 17:00:31 at java.lang.reflect.Method.invoke(Method.java:585)
    07/04/20 17:00:31 at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
    07/04/20 17:00:31 at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    07/04/20 17:00:31 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    07/04/20 17:00:31 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    07/04/20 17:00:31 at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
    07/04/20 17:00:31 at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    07/04/20 17:00:31 at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    07/04/20 17:00:31 at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
    07/04/20 17:00:31 at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
    07/04/20 17:00:31 at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    07/04/20 17:00:31 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/04/20 17:00:31 at java.lang.reflect.Method.invoke(Method.java:585)
    07/04/20 17:00:31 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
    07/04/20 17:00:31 at sun.rmi.transport.Transport$1.run(Transport.java:153)
    07/04/20 17:00:31 at java.security.AccessController.doPrivileged(Native Method)
    07/04/20 17:00:31 at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    07/04/20 17:00:31 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    07/04/20 17:00:31 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    07/04/20 17:00:31 at java.lang.Thread.run(Thread.java:595)
    07/04/20 17:00:31 Caused by: java.lang.ClassNotFoundException: oracle.j2ee.rmi.RMIInitialContextFactory
    07/04/20 17:00:31 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    07/04/20 17:00:31 at java.security.AccessController.doPrivileged(Native Method)
    07/04/20 17:00:31 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    07/04/20 17:00:31 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    07/04/20 17:00:31 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    07/04/20 17:00:31 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    07/04/20 17:00:31 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    07/04/20 17:00:31 at java.lang.Class.forName0(Native Method)
    07/04/20 17:00:31 at java.lang.Class.forName(Class.java:242)
    07/04/20 17:00:31 at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
    07/04/20 17:00:31 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
    07/04/20 17:00:31 ... 37 more
    Will be happy to provide you more information.
    Thanks.
    -Rama

    Anybody,
    Any ideas will be appreciated.
    -Rama

  • "Java Concurrent Program" java.lang.ClassNotFoundException:

    I am creating one Concurrent Program Type "Java Concurrent Program",
    I followed steps as notes "250964.1"
    Deployed the java file to specific Directory in $JAVA_TOP
    Bounce the apache.
    I am getting this issue?
    java.lang.ClassNotFoundException: oracle.apps.fnd.cp.sample.Hello
         at java.net.URLClassLoader.findClass(URLClassLoader.java:376)
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:502)
         at java.lang.Class.forName1(Native Method)
         at java.lang.Class.forName(Class.java:180)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    I am not getting this issue OA Framework Classes (CO, AM ....)
    Looking for this solution ? This is urgent to me.
    Let us know what may be issue?
    Thanks, Avaneesh

    Avaneesh,
    What do you mean by "
    I am not getting this issue OA Framework Classes (CO, AM ....)"?
    Did you test your java code on command line?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.dr

    Hi
    I am trying to use type 4 driver to connect to my Oracle 9i Rel2 database. I downloaded the odbc14.jar from oracle and added in the C:\Oracle9i\jdbc\lib path. As on the website, I setup my environment:
    Setting Up Your Environment
    On Win95/Win98/NT:
    - Add [ORACLE_HOME]\jdbc\lib\classes111.zip and
    [ORACLE_HOME]\jdbc\lib\nls_charset11.zip to your CLASSPATH.
    (Add classes12.zip and nls_charset12.zip if JDK 1.2.x or 1.3 is
    used. Add ojdbc14.jar and nls_charset12.zip if JDK 1.4 is used.)
    - Make sure [ORACLE_HOME]\bin is in your PATH.
    Still I am getting the following error during runtime:
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at jdbc.InsertQueryEx.main(InsertQueryEx.java:11)
    Below is the source code:
    import java.sql.*;
    import java.io.*;
    public class InsertQueryEx {
    public static void main(String[] args)throws Exception{
    Class.forName("oracle.jdbc.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@Prashy:1521:orcl", "scott", "tiger");
    DataInputStream din = new DataInputStream(System.in);
    Statement stmt = con.createStatement();
    while(true){
    try{
    System.out.println("enter emp name");
    String name = din.readLine();
    System.out.println("enter emp no");
    int no = Integer.parseInt(din.readLine());
    System.out.println("enter emp salary");
    float sal = Float.parseFloat(din.readLine());
    System.out.println("enter emp address");
    String addr = din.readLine();
    int count = stmt.executeUpdate("insert into myemp values("+no+",'"+name+"',"+sal+",'"+addr+"')");
    if(count>0)
    System.out.println("Record added");
    else
    System.out.println("Failed");
    catch (Exception e){
    System.err.println("Exception: "+e.getMessage());
    Any help is appreciated
    Thanks
    Prashant

    I am sorry but I did add those in the classpath but still getting this error:
    This is what I have for user variable in classpath:
    .;C:\Oracle9i\jdbc\lib\ojdbc14.jar;C:\Oracle9i\jdbc\lib\nls_charset12.jar
    error is:
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at jdbc.InsertQueryEx.main(InsertQueryEx.java:14)
    Thanks

  • Lookup form standalone client  fails with java.lang.ClassNotFoundException

    Hi,
    I have an issue under Weblogic 11g when a standalone client tries to lookup for an ejb deployed in an ear.
    The ear is correclty deployed without any errors and the EJB is correctly defined in the jndi tree (i see it using the jndi browser through the weblogic console).
    When my client tries to lookup the EJB using its correct JNDI name, the client receives the following exception :
    java.lang.AssertionError: java.lang.ClassNotFoundException: com.gemalto.contactless.securearm.services.api.IRepositoryServiceRemote
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:57)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
         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:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
         at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.gemalto.contactless.securearm.client.SarmProv.main(SarmProv.java:167)
    Caused by: java.lang.ClassNotFoundException: com.gemalto.contactless.securearm.services.api.IRepositoryServiceRemote
         at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:116)
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
         ... 26 more
    No error found in the server logs !
    If you have an idea that can helps mee ....
    Thank you
    Franck.

    Yes it is in my classpath. You can take a look at my command line generated by my IDE :
    D:\bea11g\jdk160_11\bin\java -Xrunjdwp:transport=dt_socket,address=127.0.0.1:15251,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "D:\bea11g\jdk160_11\jre\lib\charsets.jar;D:\bea11g\jdk160_11\jre\lib\deploy.jar;D:\bea11g\jdk160_11\jre\lib\javaws.jar;D:\bea11g\jdk160_11\jre\lib\jce.jar;D:\bea11g\jdk160_11\jre\lib\jsse.jar;D:\bea11g\jdk160_11\jre\lib\management-agent.jar;D:\bea11g\jdk160_11\jre\lib\plugin.jar;D:\bea11g\jdk160_11\jre\lib\resources.jar;D:\bea11g\jdk160_11\jre\lib\rt.jar;D:\bea11g\jdk160_11\jre\lib\ext\dnsns.jar;D:\bea11g\jdk160_11\jre\lib\ext\localedata.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunjce_provider.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunmscapi.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunpkcs11.jar;_D:\cless2009\classes\production\SecureARM_;D:\cless2009\classes\production\Util;D:\cless2009\classes\production\Shared;D:\cless2009\CoreBuild\res\gemalto\telecom\FRWK\v4.0\FRWK_4.0_patch07\api\FRWK\ci_api.jar;D:\glassfish\domains\domain1\lib\ext\vbsec.jar;D:\glassfish\domains\domain1\lib\ext\common.jar;D:\glassfish\domains\domain1\lib\ext\container.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\FRWK\v4.0\FRWK_4.0_patch07\api\FRWK\ci_extends.jar;D:\glassfish\domains\domain1\lib\ext\lm.jar;D:\glassfish\domains\domain1\lib\ext\vbjorb.jar;D:\glassfish\domains\domain1\lib\ext\basesystem.jar;D:\cless2009\CoreBuild\res\ext\Log4j\v1.2.13\lib\log4j-1.2.13.jar;D:\cless2009\CoreBuild\res\ext\commons-lang\v2.3\commons-lang-2.3.jar;D:\cless2009\CoreBuild\res\ext\junit\v4.1\junit-4.1.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_cmdmgr-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\tools\oti_linqusconnector-mock.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\install\OTA_IPInfra_1.0.2.0016_sun.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_history-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\OTAIPInfra.ear;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_connectivity-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_shared-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_notification-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\libext.zip;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_loginmodule-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\domain.zip;D:\cless2009\CoreBuild\ECLIPSE_LIB\oti-linqusconnector-jmx-custom.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_otagateway-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_trigsms-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\main\mmserver_ref.zip;D:\bea11g\user_projects\domains\cless\lib\wllog4j.jar;D:\bea11g\user_projects\domains\cless\lib\ojdbc14.jar;D:\bea11g\wlserver_10.3\server\lib;D:\bea11g\user_projects\domains\cless\lib\eclipselink.jar;D:\bea11g\user_projects\domains\cless\lib\log4j-1.2.14.jar;D:\cless2009\classes\production\SharedCustom;D:\cless2009\CoreBuild\res\gemalto\telecom\REUSE\v1.0\REUSE_1_0_b0148_071211_1059\lib\reuse.jar;D:\cless2009\CoreBuild\res\gemplus\telecomtlvtools\v1.0\build1\tlvtools.jar;D:\bea11g\wlserver_10.3\server\lib\wlfullclient.jar;D:\bea11g\wlserver_10.3\server\lib\wljmxclient.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" com.gemalto.contactless.securearm.client.SarmProv

  • JSF/Tiles: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.Til

    Hi,
    I am working on JSF1.2 in SAP NetWeaver CE and I am using Tiles. Please help me to resolve the following issues.
    ~~~~~~~~~~~~~~~~~~~
    1. File:G:\ws_wd\ce_ws.jdi\LocalDevelopment\DCs\demo.sap.com\lbsjsf\ear\_comp\gen\default\deploy\demo.sap.com~lbsjsf~ear.ear
         Name:lbsjsf~ear
         Vendor:demo.sap.com
         Location:localDevelopment
         Version:20090402105707
         Deploy status:Warning
         Version:NEW
         Description:
              1. Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: servlet class "org.apache.tiles.servlets.TilesServlet" cannot be found in the application class path. Possible reasons: 1) package or class name not correct; 2) missing referenced component (application or library); 3) missing reference to component (application or library)., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
    Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: The servlet "com.cg.lbs.ui.controller.StartupConfigurationServlet" must implement "javax.servlet.Servlet"., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
              2. Warning exception has been returned while the 'demo.sap.com/lbsjsf~ear' was starting. Warnings:
    Warning occurred on server 4585250 during startApp demo.sap.com/lbsjsf~ear : Cannot load servlet [org.apache.tiles.servlets.TilesServlet]. Error is: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.TilesServlet
    ------------------------- Loader Info -------------------------
    ClassLoader name: [demo.sap.com/lbsjsf~ear]
    Living status: alive
    Direct parent loaders:
    [system:Frame]
    [service:servlet_jsp]
    [service:ejb]
    Resources:
    F:\usr\sap\CE1\J00\j2ee\cluster\apps\demo.sap.com\lbsjsf~ear\servlet_jsp\lbsjsf\root\WEB-INF\classes
    ++++++++++++++below is my web.xml+++++++++
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">
         <display-name>
              LocalDevelopment~LocalDevelopment~lbsjsf(2fweb~demo.sap.com
         </display-name>
         <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>
                   org.apache.myfaces.webapp.filter.ExtensionsFilter
              </filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>Faces Servlet</servlet-name>
         </filter-mapping>
         <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
         <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
         <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>*.jsf</url-pattern>
         </filter-mapping>
         <servlet>
              <servlet-name>Tiles Servlet</servlet-name>
              <servlet-class>
                   org.apache.tiles.servlets.TilesServlet
              </servlet-class>
              <init-param>
                   <param-name>definitions-config</param-name>
                   <param-value>/WEB-INF/tiles.xml</param-value>
              </init-param>
              <load-on-startup>3</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <servlet>
              <servlet-name>StartupConfiguration</servlet-name>
              <servlet-class>
                   com.cg.lbs.ui.controller.StartupConfigurationServlet
              </servlet-class>
              <init-param>
                   <param-name>log4j-init-file</param-name>
                   <param-value>sswblog4j.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
         </welcome-file-list>
    </web-app>

    That's a pretty decent error message. Have you eliminated the potential causes which were listed in the message?

  • "java.lang.ClassNotFoundException" when creating a CFC instance inside a webservice

    This question is also up on stack overflow: http://stackoverflow.com/questions/10089962/coldfusion-web-service-failing-to-see-componen t
    I've got a CFC that I'm going to access with ?wsdl as a SOAP webservice.
    If I call the CFC directly in a browser, my results render fine:
        http://server/webservice/calc.cfc?method=doStuff&foo=bar
    If I try to access it as a web service:
        ws = CreateObject("webservice", 'http://server/webservice/calc.cfc?wsdl');
        result = ws.doStuff('bar');
    I get an error:
    Cannot perform web service invocation doStuff.
    The fault returned when invoking the web service operation is:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: coldfusion.xml.rpc.CFCInvocationException:
    [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
    com.calculations.calc][java.lang.NullPointerException : null]]
    faultActor:
    faultNode:
    faultDetail:
        {http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:          [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :    
    com.calculations.calc][java.lang.NullPointerException : null]]
        at     coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
        at coldfusion.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
        at webservice.calc.doStuff(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.r... ''
    The problem is because the doStuff function is declaring an instance of a CFC inside it:
    remote struct function doStuff(foo) {
      var objReturn = {};
        objReturn.msg = 'A message';
        // do a calculation
        var objCalc = new com.calculations.calc(foo);
        objReturn.calc = objCalc;
      return objReturn;
    So my CFC that I'm using as a webservice has got another CFC being declared inside a function. Browsing directly to my webservice CFC works fine, but trying to call it using the CreateObject/webservice route fails, as it can't create an instance of the **com.calculations.calc** component.
    It doesn't error, wierdly, if I comment out the objReturn.calc = objCalc line. So it seems I can create the instance, but the error isn't thrown till I assign it to my return struct.
    Also I've found, If I refresh the page a few times, sometimes the error changes to:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: coldfusion.xml.rpc.CFCInvocationException:
        [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :    
        com.calculations.calc][coldfusion.xml.rpc.CFCInvocationException :
        returnType must     be defined for remote CFC functions.]]
         faultActor:
         faultNode:
         faultDetail:
        {http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:
        [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
        com.calculations.calc][coldfusion.xml.rpc.CFCInvocationException :
        returnType must be defined for remote CFC functions.]]
        at coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
    at coldfusion.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
    at webservices.TaxCalc.feed.getTaxCalc(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
    at sun.reflect.Nat... ''
    Message was edited by: PeteComcar - impvoed code formatting and added returntype update

    Dear All Technology Expert's,
    I have a query related to Coldfusion SOAP services, that is most commonly asked in all the forum's but NONE of them has got answer.
    If there is NO solution so I think Adobe has to come up with some patches so developer can able to do some customization.
    I like to share with you all, in all other language ( PHP, JAVA, .NET etc) this option is available and you can customize the error.
    Ok let me again explain the very basic error:
    SOAP Request:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    SOAP Response:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>java.lang.Exception: Body not found.</faultstring>
             <detail>
                <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.Exception: Body not found.
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)...</ns1:s tackTrace>
                <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">Coldfusion Error</ns2:hostname>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    HOW we can customize the error, in all other languages you can simple customize the error like
    Other languages SOAP response:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>BODY_NOT_FOUND</faultcode>
             <faultstring>Body is missing in your request</faultstring>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    But the same is NOT possible in Coldfusion, right?
    AS you know it is vulnerability to display exception messages in the response.
    We are developing this web service to access  from other language website (PHP, .NET).
    We are also planning to upgrade server the Coldfusion 11, but do you think there is any solution with latest Coldfusion version.
    Please response only if you know about these issue's or solution. 
    Thanks
    Niyaz

  • Java.lang.ClassNotFoundException: Animate

    Hi,
    I noticed that other developers are facing same issue, but here what happens with my applets .
    Just for info: I'm new to Java development....
    I'm using JDK 1.4.2_05 under WinMe for development purposes and using Dreamweaver 2.0 (little bit old) but don't think it matters.
    I published my web pages on my ISP's web server. Some of those pages contain "simple" applets.
    1. When I access my web site from the computer where the JDK is installed, the display is correct and I can see the applets working fine.
    Then I go: Tools> Internet options > (Tab) Advanced
    I uncheck the option: Use Java 2 1.4.2_05 for applets.
    My applets in the web pages will stop display when accessing thru the web.
    2. When I access thru another computer (I tried accessing from 2 different ones) which run under XP, I have the following error in the Javaconsole.
    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810
    ==============================================
    ==============================================
    Error loading class: Animate
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: Animate
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/applet/AppletPanel.securedClassLoad
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    Under "XP" I tried to change the security "Internet" and "Intranet" Java related settings in IE, but didn't make any difference.
    Does anyone has a hint or a solution??
    Tx in advance.

    I don't believe it to be a matter of OS or Browser. The JVM can not find the .class file it needs in order to run. Check to make sure all the .class files are in the working directory (or jar).
    Class not found exception occurs when the JVM is attempting to load a class but can not find the .class file. This occurs when the file is not in the classpath. The classpath is the working directory by default (the directory in which the init() for applets and main() for applications is located. Move you Animate.class file into the working directory and try.
    If this doesn't work I guess I don't fully understand the problem. Post more information.
    DeltaCoder
    "I'll change if you change, but only because if you change I've changed to you even if I haven't changed to me. So change yourself to change others."

  • Java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory

    Hi All,
    I am getting the below error repeatedly in logs after installing BP7 in OIM 11gR2. wlclient.jar is present in <OIM_HOME>\server\lib. But I am able to login to OIM consoles.
    What is the root cause of this issue? Appreciate your response.
    <Aug 22, 2013 8:07:54 AM MST> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBaseClient/bindToInstance encounter some problems: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
    oracle.iam.platform.utils.ServiceInitializationException: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
      at oracle.iam.platform.Platform.getService(Platform.java:265)
      at oracle.iam.platform.OIMInternalClient.getService(OIMInternalClient.java:188)
      at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBaseClient.java:151)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.recoverConnection(tcDataBaseClient.java:401)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:385)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    Caused By: java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:137)
      at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:104)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
      at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
      at org.springframework.jndi.JndiObjectTargetSource.afterPropertiesSet(JndiObjectTargetSource.java:96)
      at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.createJndiObjectProxy(JndiObjectFactoryBean.java:284)
      at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.access$000(JndiObjectFactoryBean.java:273)
      at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:176)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
      at oracle.iam.platform.utils.SpringBeanFactory.getBean(SpringBeanFactory.java:75)
      at oracle.iam.platform.Platform.getBean(Platform.java:214)
      at oracle.iam.platform.Platform.getService(Platform.java:255)
      at oracle.iam.platform.OIMInternalClient.getService(OIMInternalClient.java:188)
      at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBaseClient.java:151)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.recoverConnection(tcDataBaseClient.java:401)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:385)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    >
    <Aug 22, 2013 8:07:54 AM MST> <Error> <XELLERATE.JAVACLIENT> <BEA-000000> <Class/Method: tcDataBaseClient/getInterface encounter some problems: RuntimeException encountered. Reconnecting!
    java.lang.NullPointerException
      at oracle.iam.platform.context.ContextManager.getCounter(ContextManager.java:694)
      at oracle.iam.platform.context.ContextManager.incrementCounter(ContextManager.java:681)
      at oracle.iam.platform.auth.impl.util.AuthenticationContextUtilForEJB.setAuthenticationContextInEJB(AuthenticationContextUtilForEJB.java:80)
      at com.thortech.xl.ejb.interfaces.tcDataBaseEJB.isOpenx(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1294.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
      at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
      at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy384.isOpenx(Unknown Source)
      at com.thortech.xl.ejb.interfaces.tcDataBase_dco355_tcDataBaseRemoteImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
      at com.thortech.xl.ejb.interfaces.tcDataBase_dco355_tcDataBaseRemoteImpl.isOpenx(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1293.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
      at $Proxy385.isOpenx(Unknown Source)
      at com.thortech.xl.ejb.interfaces.tcDataBaseDelegate.isOpen(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1292.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.security.Security.runAs(Security.java:41)
      at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
      at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
      at $Proxy386.isOpen(Unknown Source)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:364)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    >
    <Aug 22, 2013 8:07:54 AM MST> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBaseClient/close encounter some problems: Bean has been deleted.
    javax.ejb.NoSuchEJBException: Bean has been deleted.
      at weblogic.ejb.container.swap.DiskSwap.read(DiskSwap.java:200)
      at weblogic.ejb.container.manager.StatefulSessionManager.getBean(StatefulSessionManager.java:421)
      at weblogic.ejb.container.manager.StatefulSessionManager.preInvoke(StatefulSessionManager.java:493)
      at weblogic.ejb.container.internal.BaseRemoteObject.preInvoke(BaseRemoteObject.java:229)
      at weblogic.ejb.container.internal.StatefulRemoteObject.__WL_preInvoke(StatefulRemoteObject.java:57)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:24)
      at com.thortech.xl.ejb.interfaces.tcDataBase_dco355_tcDataBaseRemoteImpl.closex(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1341.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
      at $Proxy385.closex(Unknown Source)
      at com.thortech.xl.ejb.interfaces.tcDataBaseDelegate.close(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1340.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.security.Security.runAs(Security.java:41)
      at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
      at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
      at $Proxy386.close(Unknown Source)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    >
    <Aug 22, 2013 8:07:54 AM MST> <Warning> <XELLERATE.ACCOUNTMANAGEMENT> <BEA-000000> <com.thortech.xl.dataaccess.tcClientDataAccessException: >
    <Aug 22, 2013 8:07:54 AM MST> <Error> <oracle.iam.platform.context.ContextManager> <BEA-000000> <IAM-0030007
    org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
      at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
      at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:414)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:355)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
      at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
      at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuilder.java:163)
      at oracle.iam.platform.context.ContextManager.loadWrappedContext(ContextManager.java:569)
      at oracle.iam.platform.auth.impl.util.AuthenticationContextUtilForEJB.setAuthenticationContextInEJB(AuthenticationContextUtilForEJB.java:79)
      at com.thortech.xl.ejb.interfaces.tcDataBaseEJB.isOpenx(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1294.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
      at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
      at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy384.isOpenx(Unknown Source)
      at com.thortech.xl.ejb.interfaces.tcDataBase_dco355_tcDataBaseRemoteImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
      at com.thortech.xl.ejb.interfaces.tcDataBase_dco355_tcDataBaseRemoteImpl.isOpenx(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1293.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
      at $Proxy385.isOpenx(Unknown Source)
      at com.thortech.xl.ejb.interfaces.tcDataBaseDelegate.isOpen(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1292.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.security.Security.runAs(Security.java:41)
      at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
      at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
      at $Proxy386.isOpen(Unknown Source)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:364)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    >
    <Aug 22, 2013 8:07:54 AM MST> <Warning> <oracle.iam.platform.Platform> <BEA-000000> <IAM-0070016>
    <Aug 22, 2013 8:07:54 AM MST> <Warning> <oracle.iam.platform.Platform> <BEA-000000> <IAM-0070016
    java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:137)
      at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:104)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
      at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
      at org.springframework.jndi.JndiObjectTargetSource.afterPropertiesSet(JndiObjectTargetSource.java:96)
      at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.createJndiObjectProxy(JndiObjectFactoryBean.java:284)
      at org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.access$000(JndiObjectFactoryBean.java:273)
      at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:176)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
      at oracle.iam.platform.utils.SpringBeanFactory.getBean(SpringBeanFactory.java:75)
      at oracle.iam.platform.Platform.getBean(Platform.java:214)
      at oracle.iam.platform.Platform.getService(Platform.java:255)
      at oracle.iam.platform.OIMInternalClient.getService(OIMInternalClient.java:188)
      at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBaseClient.java:151)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.recoverConnection(tcDataBaseClient.java:401)
      at com.thortech.xl.client.dataobj.tcDataBaseClient.getInterface(tcDataBaseClient.java:385)
      at com.thortech.xl.dataaccess.tcDataBaseClient.close(tcDataBaseClient.java:349)
      at com.thortech.xl.server.tcDataBaseClient.close(tcDataBaseClient.java:62)
      at com.thortech.xl.server.tcDataBaseClient.finalize(tcDataBaseClient.java:43)
      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    >

    have you tried copying wlfullclient.jar in OIM_HOME/server/lib, restart and see if that resolve issue?

  • Java.lang.ClassNotFoundException: error's

    Hi i tried connecting to a digi chat site for 3 days now and all it has been giving me is errors (for example the one below):
    java.lang.ClassNotFoundException: com.diginet.digichat.client.DigiChatApplet
    Java will not load up the applet.
    But i noticed one thing, when i used an Anonymizer Proxy software which enables you to surf the web hiding your real ip or given a fake one....(link below):
    http://www.anonymizer.com/consumer/products/anonymous_surfing/
    When i used this software it loaded the digi chat applet up fine but, then had connection issues connecting to digi chat room which in return an error applet window popped up saying :
    DigiChat could not connect to the specified host.
    Please verify that the DigiChat Server is running and
    that you are using the correct host name.
    java.net.ConnectException: Connection timed out:
    connect
    Note: I have 3 computers in my house hold and all of them access the same isp and all three have the same problem while connecting to this certain host.
    If anyone has any ideas or regards to this malfunction or error please contact me.
    Thank you so much!!!

    you have to download the jdbc drivers for a perticular database. These are nothing but jar files. You have to then add these jar files to yor project library. An your problem will be solved

  • Java.lang.ClassNotFoundException: HTTPClient.HTTPConnection

    I am getting ClassNotFoundException while creating DataControl using URL Service Data Control for REST WebService. I am getting this after entering Connection information (Second screen on the wizard) and click on the Next. Below is the complete exception. Do I need to add any libraries. Any help would be appreciated. Thank YOU.
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( ApplicationController.jpr, ApplicationController.jpr, OrderTrackingMobilApp.jws ) ]
    java.lang.NoClassDefFoundError: HTTPClient/HTTPConnection
    java.lang.NoClassDefFoundError: HTTPClient/HTTPConnection
    o.adf.model.connection.url.HttpURLConnection.<init>(HttpURLConnection.java:146)
    o.adf.model.connection.url.URLProviderFactory.newInstance(URLProviderFactory.java:117)
    o.adfdtinternal.model.adapter.url.URLDCWizard$2.wizardValidatePage(URLDCWizard.java:515)
    o.bali.ewt.wizard.WizardPage.processWizardValidateEvent(WizardPage.java:710)
    o.bali.ewt.wizard.WizardPage.validatePage(WizardPage.java:680)
    o.bali.ewt.wizard.BaseWizard.validateSelectedPage(BaseWizard.java:2367)
    o.bali.ewt.wizard.BaseWizard._validatePage(BaseWizard.java:3072)
    o.bali.ewt.wizard.BaseWizard.doNext(BaseWizard.java:2152)
    o.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3952)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:682)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:643)
    j.a.EventQueue$1.run(EventQueue.java:641)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(Even.;.;..tQueue.java:652)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
    j.a.Dialog$1.run(Dialog.java:1044)
    j.a.Dialog$3.run(Dialog.java:1096)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1094)
    j.a.Component.show(Component.java:1584)
    j.a.Component.setVisible(Component.java:1536)
    j.a.Window.setVisible(Window.java:841)
    j.a.Dialog.setVisible(Dialog.java:984)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
    o.adfdtinternal.model.adapter.url.URLDCWizard.runWizard(URLDCWizard.java:1191)
    o.adfdtinternal.model.adapter.url.JdxPKURLAddin.invokeDCWizard(JdxPKURLAddin.java:153)
    o.adfdtinternal.model.adapter.url.JdxPKURLAddin.invoke(JdxPKURLAddin.java:91)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:682)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:643)
    j.a.EventQueue$1.run(EventQueue.java:641)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:652)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by:
    java.lang.ClassNotFoundException: HTTPClient.HTTPConnection
    org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    j.lang.ClassLoader.loadClass(ClassLoader.java:247)
    o.adf.model.connection.url.HttpURLConnection.<init>(HttpURLConnection.java:146)
    o.adf.model.connection.url.URLProviderFactory.newInstance(URLProviderFactory.java:117)
    o.adfdtinternal.model.adapter.url.URLDCWizard$2.wizardValidatePage(URLDCWizard.java:515)
    o.bali.ewt.wizard.WizardPage.processWizardValidateEvent(WizardPage.java:710)
    o.bali.ewt.wizard.WizardPage.validatePage(WizardPage.java:680)
    o.bali.ewt.wizard.BaseWizard.validateSelectedPage(BaseWizard.java:2367)
    o.bali.ewt.wizard.BaseWizard._validatePage(BaseWizard.java:3072)
    o.bali.ewt.wizard.BaseWizard.doNext(BaseWizard.java:2152)
    o.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3952)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:682)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:643)
    j.a.EventQueue$1.run(EventQueue.java:641)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:652)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
    j.a.Dialog$1.run(Dialog.java:1044)
    j.a.Dialog$3.run(Dialog.java:1096)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1094)
    j.a.Component.show(Component.java:1584)
    j.a.Component.setVisible(Component.java:1536)
    j.a.Window.setVisible(Window.java:841)
    j.a.Dialog.setVisible(Dialog.java:984)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
    o.adfdtinternal.model.adapter.url.URLDCWizard.runWizard(URLDCWizard.java:1191)
    o.adfdtinternal.model.adapter.url.JdxPKURLAddin.invokeDCWizard(JdxPKURLAddin.java:153)
    o.adfdtinternal.model.adapter.url.JdxPKURLAddin.invoke(JdxPKURLAddin.java:91)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:682)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:643)
    j.a.EventQueue$1.run(EventQueue.java:641)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:652)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Thanks,
    Rama

    Hi, Rama, we are researching into this issue. One question - can you verify that from JDeveloper, you can hit that URL? Do you need to go through Proxy Server to hit that URL? JDeveloper has its own proxy setting (in preference-http/web...) that it uses to try to resolve proxy server and hit external network sources.
    Thanks,
    Joe Huang

  • When trying to connect, java.lang.ClassNotFoundException;

    I can't seem to resolve this error:
    SearchServlet.java [48:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    db.connect();
    ^
    =========The error is in the following Servlet:
    SinglesSearch.Database db=new SinglesSearch.Database();
    db.connect(); //this line throws the exception
    =========
    I've searched the web for servlets connecting to the database, but couldn't find anything that would help me figure out this issue.
    Can you help ?
    thanks,
    Dennis
    P.S.
    My database helper class.
    * Database.java
    package SinglesSearch;
    import java.sql.*;
    import java.io.*;
    public class Database {
    //Helper Class -- Takes care of DB connections and SQL
    /** Creates a new instance of Database */
    public String dbURL = "jdbc:mysql://localhost/singles";
    public String dbDriver = "com.mysql.jdbc.Driver";
    private Connection dbCon;
    public Database() {
    super();
    public boolean connect() throws ClassNotFoundException,SQLException
    { //Connect to DB
    Class.forName(dbDriver);
    dbCon = DriverManager.getConnection(dbURL,"test", "test");
    return true;
    public void close() throws SQLException
    { //Close connection to DB
    dbCon.close();

    Why is writing a servlet is so tough ?
    It seems it must be simpler. .. I mean I had to specify every last exception handling.
    I mean compare these 4 lines:
    Class.forName(dbDriver);
    dbCon = DriverManager.getConnection(dbURL,"xxx", "xxx");
    Statement stmt= dbCon.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    To the monster (in P.S.) I had to write, just for the thing to compile !!
    Is that supposed to be like that ? Or am I missing something ?
    thanks,
    Dennis
    P.S.
    //Start connection to the database
    Connection dbCon=null;
    Statement stmt=null;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(ClassNotFoundException cne) {
    //Exception handling here
    out.println(cne);
    try {
    dbCon = DriverManager.getConnection("jdbc:mysql://localhost/singles","singles", "zaq123");
    } catch(SQLException sqle) {
    out.println(sqle);
    ResultSet rs = null ;
    try {
    stmt= dbCon.createStatement(); }
    catch(SQLException cne) {
    out.println(cne);
    try { rs = stmt.executeQuery("SELECT libnum FROM profiles"); }
    catch(SQLException cne) {
    out.println(cne);
    if (rs == null)
    out.println("<P>NOTHING in the database</P>");
    else
    try {
    while(rs.next())
    out.println("<BR>");
    out.println( rs.getString("libnum") );
    } catch(SQLException cne) {
    out.println(cne);
    }

  • Servlet error: java.lang.ClassNotFoundException:

    After deploying a JDeveloper .ear file to OAS, I try to run the jsp file from OAS and receive the following error:
    500 Internal Server Error
    Servlet error: java.lang.ClassNotFoundException: lcfsreport.lcfsSearchReport
    _lcfsreport. = context root
    _lcfsSearchReport = .jsp file to execute
    I am new to JDeveloper and OAS and am flying blind, any help would be appreciated.

    I've found other post concerning this very same issue and it appears there could be other issues involved than those pointed to by Oracle documentation.
    Is there a direct way to check to see if my jsp's are generating with the version supported by oas 10.1.2?
    I am beginning to understand the frustrations I hear with J2EE development and why many developers do not move to the latest J2EE versions.
    I should have stuck with using old versions of JDeveloper, hind-sight is 20/20...

Maybe you are looking for

  • Startup error message on Satellite M30-107

    I get the following message when trying to boot up: Windows could not start because the following file is missing or corrupt \windows\system32\config\system You can attempt to repair this file by starting windows setup using the original setup CD-ROM

  • US / CAN Workshops -- feedback?

    As announced at the Congress, the North American UA program will be offering workshops at three locations in June and July.  The date and locations below are firm.  The topics taught at each location and the class length are still flexible -- we woul

  • Burned a disc in Encore, plays fine on DVD player, but not in Windows Media

    Hi, I was just wondering if anyone else has had playback issues in Windows Media Player with DVDs burned in Encore.  We recently produced a 14 minute film that plays skip free and glitch free on any standalone DVD player we test it in, but when we te

  • Upgrade from 9.2.0.7 to 9.2.0.8

    Can any one give suggestions on this ... How to upgrade? Should I use DBUA or etc.....

  • Component and it's use?

    Hi, what's the use of component? Thanks