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);
}
Similar Messages
-
FTPSClient - Error when trying to connect - java.lang.NoSuchFieldError:
I'm working on trying to connect to an FTPS server to pull over a file. I've managed to create a test application that works just fine, however when I try to put it into the main application (Spring) it fails on the connection and gives this error:
[#|2010-03-16T08:08:01.441-0500|SEVERE|sun-appserver2.1|org.quartz.core.JobRunShell|_ThreadID=16;_ThreadName=jobScheduler_Worker-9;_RequestID=a3641bfd-a137-43c1-9611-4031e2ce24eb;|Job DEFAULT.eventsDataJobDetail threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'execute' on target class [class com.chw.job.daemon.jobs.eventsdata.EventsDataJob] failed; nested exception is java.lang.NoSuchFieldError: _controlInput_
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.NoSuchFieldError: _controlInput_
at org.apache.commons.net.ftp.FTPSClient.sslNegotiation(FTPSClient.java:243)
at org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:166)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:163)
at com.chw.job.daemon.jobs.eventsdata.BaseEventsDataFtpJob.test(BaseEventsDataFtpJob.java:78)
at com.chw.job.daemon.jobs.eventsdata.EventsDataJob.processFile(EventsDataJob.java:54)I've looked at the source code of where it errors on line 243 of the FTPSClient.html and it has the following:
214 /**
215 * SSL/TLS negotiation. Acquires an SSL socket of a control
216 * connection and carries out handshake processing.
217 * @throws IOException A handicap breaks out by sever negotiation.
218 */
219 private void sslNegotiation() throws IOException {
220 // Evacuation not ssl socket.
221 planeSocket = _socket_;
222
223 initSslContext();
224
225 SSLSocketFactory ssf = context.getSocketFactory();
226 String ip = _socket_.getInetAddress().getHostAddress();
227 int port = _socket_.getPort();
228 SSLSocket socket =
229 (SSLSocket) ssf.createSocket(_socket_, ip, port, true);
230 socket.setEnableSessionCreation(isCreation);
231 socket.setUseClientMode(isClientMode);
232 // server mode
233 if (!isClientMode) {
234 socket.setNeedClientAuth(isNeedClientAuth);
235 socket.setWantClientAuth(isWantClientAuth);
236 }
237 if (protocols != null) socket.setEnabledProtocols(protocols);
238 if (suites != null) socket.setEnabledCipherSuites(suites);
239
240 socket.startHandshake();
241
242 _socket_ = socket;
243 _controlInput_ = new BufferedReader(new InputStreamReader(
244 socket .getInputStream(), getControlEncoding()));
245 _controlOutput_ = new BufferedWriter(new OutputStreamWriter(
246 socket.getOutputStream(), getControlEncoding()));
247 }What I'm not understanding at this point of where controlInput is declared? It seems like with that error it is giving, it doesn't know what this is and must get declared somewhere.
Is this a conflict with some other JAR file, as there is quite the list of jar files that is in this application.
Thanks, MichaelSolution: Delete all the build path and all under the deploy path - it must have retained some OLD jar files and was still looking at those...I did that and now it works just fine.
-
Error: when connecting to sqlServer2005 java.lang.ClassNotFoundException:
Hi SDN,
I am trying to connect to sqlServer2005 using the following code
try{
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Connection con = java.sql.DriverManager.getConnection("jdbc:sqlserver://obtdev15:1433;DatabaseName=O50");
response.write("connection succeded<br>");
Statement st= con.createStatement();
response.write("statement created<br>");
ResultSet c = st.executeQuery("select * from [SAPO50DB].[OGP_PROJECT]");
response.write(" rows selected-->" + c.getString("PROJECTNAME"));
}catch(Exception e){
e.printStackTrace();
response.write("exception in --"+e);
when i execute it, it throws the following exception
<b>java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver Found in negative cache -
Loader Info -
ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@b460e20] Parent loader name: [com.sapportals.portal.prt.util.AutoClassLoader@a52a72a] References: not registered! Resources: F:\usr\sap\O50\DVEBMGS50\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\ConnectingtoDB\lib\api.jar -
</b>
Please suggest me to rectify the above error.
your help will be awarded.
Thanks in Advance.
Regards
BashaHi Basha,
basically, your application is missing a java class. However, the proper way to connect to a database is discussed in this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=86307">thread</a>.
Follow Detlev's advise:
<i>In general, using a J2EE server means that you have a DB connection pool at hand where you can attach your database and then retrieve the Datasource object from the JNDI. That way, you won't have to care about connection pooling etc, and using tools like oject-relational-mappers also is quite easy, for they also expect just the Datasource or even better the JNDI lookup name.</i>
You will find detailed information in the<a href="http://help.sap.com/saphelp_nw04/helpdata/de/bb/69da54d8aedc419d46d9ea074e4d41/frameset.htm">SAP Library</a>.
Best regards,
Martin -
When trying to connect to iTunes I get this message
An internal error occurred during: "FindSonarTrackJob".
java.lang.NullPointerExceptionI too am having this problem and have had, for about a week now.
I've found that by logging off itunes (if I can), closing it down, and then restarting it, sometimes allows it to work for one transaction (say downloading an updated app). After that it's back to the same error.
Really annoying. -
Java.lang.ClassNotFoundException when deploy application on Weblogic 10.3
Hi all, when I deploy an application on Weblogic 10.3 the following error occurs
the following detail is shown on the summary screen when I deploy the application via control
An error occurred during activation of changes, please see the log for details.
weblogic.application.ModuleException:
com.excellence.exoa.sso.SsoSessionListener
The deployment has been successfully installed
the following detail is shown on the log
Could not load user defined listener: com.excellence.exoa.sso.SsoSessionListener
java.lang.ClassNotFoundException: com.excellence.exoa.sso.SsoSessionListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35)
at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:117)
at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:65)
at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1765)
at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1126)
at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
the following listener is configured in the web.xml
<listener>
<listener-class>com.excellence.exoa.sso.SsoSessionListener</listener-class>
</listener>
and the SsoSessionListener class is packaged in the mainframe.jar. there are two mainframe.jar in this ear, the first which include SsoSessionListener in the souce directory and the other mainfrain.jar which extend the SsoSessionListener is in the ./extend/mainframe.jar
How can I fix this error ? any suggestion?
Thanks
Jayson
Edited by: Jayson on Feb 12, 2009 3:37 AM
Edited by: Jayson on Feb 12, 2009 3:54 AMI have in log:
2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
l setLifecycleContextBuilder
WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
lize
INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
sourceProvider <init>
INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
trap add
INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
tchCredential
WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
mains\base_domain\config\oracle.
2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
Exception
WARNING: Incomplete connection information
Edited by: Debuger on Mar 26, 2009 11:18 AM -
"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 updateDear 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 -
I am using Oracle forms 10.1.2.0.2 on Windows Xp and using a java bean taken from following location:
http://forms.pjc.bean.over-blog.com/ext/http://sheikyerbouti.developpez.com/forms-pjc-bean/first-bean/first_bean.pdf
Now when i deploy it in my development environment, then following errors is seen in Java Console:
>
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\mmunir
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\mmunir\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall_jinit.jar FormsProperties.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.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 oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
>
I have gone throug the following thread to fix this issue but to no avail.
Error oracle.forms.engine.Main not found.java.lang.ClassNotFoundException
Please help?Kindly find find below the required information:
<H1> formsweb.cfg file </H1>
>
[bean]
form=BEAN.fmx
userid=gl/xyz@orcl
baseHTMLjpi=basejpi.htm
baseHTMLJInitiator=basejpi.htm
jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
archive=frmall.jar FormsProperties.jar
jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
em_mode=0
>
<H1> Java Console </H1>
>
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\mmunir
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
basic: Starting applet teardown
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9a3fdba952bbd446e914da8fd1a8d5ecd with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/ with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9a3fdba952bbd446e914da8fd1a8d5ecd with proxy=DIRECT
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@7b7b11
basic: Plugin2ClassLoader.addURL parent called for http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 464428 us, pluginInit dt 53483491 us, TotalTime: 53947919 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@7b7b11
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
Loaded image: jar:http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar!/oracle/forms/icons/splash.gif
Loaded image: jar:http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar!/oracle/forms/icons/oracle_logo.gif
Loaded image: jar:http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar!/oracle/forms/icons/bgnd.gif
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/registry/Registry.dat, version: null]
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/registry/Registry.dat with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/ with proxy=DIRECT
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/registry/default.dat, version: null]
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/registry/default.dat with proxy=DIRECT
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/frmservlet?Config=bean&acceptLanguage=en-us&ifcmd=startsession with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df?ifcmd=getinfo&ifhost=ssi-mmunir&ifip=172.18.1.185 with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
basic: Finished applet teardown
Forms Applet version is : 10.1.2.0
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/demo/GetCanvasProp.class, version: null]
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/demo/GetCanvasProp.class with proxy=DIRECT
java.lang.ClassNotFoundException: oracle.forms.demo.GetCanvasProp
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/oracle/forms/demo/GetCanvasProp.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 21 more
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
basic: Applet started
basic: Told clients applet is started
network: Connecting http://ssi-mmunir.ssilhr.com.pk:8889/forms/lservlet;jsessionid=ac1201b922b9788bf36fce964dcdab6dd331b3d189df with proxy=DIRECT
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null]
network: Cache entry not found [url: http://ssi-mmunir.ssilhr.com.pk:8889/forms/java/frmall.jar FormsProperties.jar, version: null] -
Java.lang.ClassNotFoundException error when running a form
Hello,
On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
Steps executed:
1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
or in the IE browser:
2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
The applet is not starting and I receive the following error:
java.lang.ClassNotFoundException: oracle.forms.engine.Main
What does this mean? What should I do to make it work?
Any help will be appreciated.
Tahnk you.
danielaHello again,
I solved the problem.
In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
daniela -
Java.lang.ClassNotFoundException error when running form
Hello,
On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
Steps executed:
1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
or in the IE browser:
2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
The applet is not starting and I receive the following error:
java.lang.ClassNotFoundException: oracle.forms.engine.Main
What does this mean? What should I do to make it work?
Any help will be appreciated.
Tahnk you.
danielaHello again,
I solved the problem.
In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
daniela -
I am trying to connect to mysql Db through RMI but i am getting this exception.
When trying to connect to db through a normal class implementation without RMI it is connected succesfully.
What is causing the problem????
Thanks in advaceCLASSPATH, man. The RMI server needs to have the MySQL driver JAR in its CLASSPATH.
That's usually what that exception means.
% -
Hello All,
I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at OraThin.main(OraThin.java:13)The code I have is :
import java.io.*;
import java.sql.*;
public class OraThin {
public static void main(String[] args) {
try {
System.out.println(System.getProperty ("java.class.path") );
Connection con=null;
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection(
"jdbc:oracle:thin:@hostname:15282:ServiceName",
"scott",
"tiger");
Statement s=con.createStatement();
s.execute("SELECT SYSDATE FROM DUAL");
s.close();
con.close();
} catch(Exception e){e.printStackTrace();}
} Please suggest as to what am I missing, I am not that well versed with Java.
Thanks in advance,
SamHello Paul,
Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
import java.io.*;
import java.sql.*;
import oracle.jdbc.driver.*;
public class OraThin {
public static void main(String[] args) {
try {
System.out.println(System.getProperty ("java.class.path") );
Connection con=null;
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection(
"jdbc:oracle:thin:@hostname:15282:ServiceName",
"scott",
"tiger");
Statement s=con.createStatement();
s.execute("SELECT SYSDATE FROM DUAL");
s.close();
con.close();
} catch(Exception e){e.printStackTrace();}
}What am I missing here!! ?
Thanks again,
Sam -
RMI Error when trying to connect to remote server
We are getting an RMI error (below) when trying to connect to a remote weblogic 9 server with mission control.
We are running a portal application on the app server. If we connect using mission control before the app starts then mission control connects successfully.
If we wait until the portal application is running then we get the following error when we try to connect:
Could not open Management Console for UAT Live (1).
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl_Stub.getMBeanInfo(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getMBeanInfo(RMIConnector.java:1031)
at com.jrockit.console.rjmx.RJMXConnection.getMBeanInfos(RJMXConnection.java:262)
at com.jrockit.console.rjmx.RJMXConnection.getMBeanInfos(RJMXConnection.java:297)
at com.jrockit.console.rjmx.RJMXConnectorModel.initializeAttributeInfos(RJMXConnectorModel.java:294)
at com.jrockit.console.rjmx.RJMXConnectorModel.<init>(RJMXConnectorModel.java:99)
at com.jrockit.console.rjmx.RJMXConnectorModel.<init>(RJMXConnectorModel.java:113)
at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:36)
at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:73)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassNotFoundException: com.vignette.monitor.framework.VgnMBeanInfo (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:139)
... 11 more
thanksAs poorem suggested, I would check that the time is the same on both the identity and vcac appliances. It has been a while since I posted this question but I believe that did get me past that specfic error. I changed the timezone on each and made sure the times were correct and the same.
-
Problem XI 2.0 java.lang.ClassNotFoundException
We are trying to connect a DB2 system to XI via adapter. We get
java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.net.DB2Driver
error when we try the restart.
CLASSPATH includes the .jar and .zip fies for the DB2 JDBC driver.
xidadm> echo $CLASSPATH
/usr/opt/db2_08_01/java/db2java.zip:/usr/opt/db2_08_01/java/db2jcc.jar:/
usr/opt/db2_08_01/java/db2fs.jar:/usr/opt/db2_08_01/java/db2jcc_license_
cu.jar:/usr/opt/db2_08_01/java/Common.jar:/usr/sap/XID/SYS/global/tech_a
dapter/aii_rfcadapter.jar:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server/add
itionallib/servlet.jar:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server/additi
onal-lib/sapjco.jar:
We updated EXTLIBS and ADAPTERLIBS with the .jar and .zip locations.
What is missing ?Hi Hart - Our Basis person made the change noted, but still getting the same problem. He also posted the problem in OSS. Adapter configuration are --
jdbc adapter java class
classname=com.sap.aii.messaging.adapter.ModuleDB2XMB
mode=DB2XMB
Integration Engine address and document settings (example, see docu)
XMB.TargetURL=http://xid:50000/sap/xi/engine?type=entry
XMB.SenderBusinessSystem=abcXXXX
XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo
XMB.SenderInterfaceName=ExtAdapterSenderIF
XMB.QualityOfService=EO
db.jdbcDriver=COM.ibm.db2.jdbc.net.DB2Driver
db.connectionURL=jdbc:db2://xxxxx.xxxxxxx.com:50000;user=xxxxxxx;databaseName=xxxxx
db.table=<sapprodorders>
db.processDBSQLStatement=select zorder status from sac.sapprodorders where status = 'R'
db.pollInterval=600
Log msg--
15:57:48 (4205): JDBC adapter stopped
15:57:59 (4207): JDBC adapter terminated
Thu Sep 23 15:57:59 EDT 2004 *****
15:57:59 (4210): ERROR: Attempt to load JDBC driver failed ("java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.net.DB2Driver ")
Attempt to intialize JDBC adapter failed
15:57:59 (4203): Unable to start JDBC adapter (not initialized) -
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> -
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
Maybe you are looking for
-
Trouble with 3d model's transparency in iBooks Author
I have a 3d model with transparency and while it is imported without problems, there's something wrong with the transparency rendering inside 3d widget. I attach 3 screenshots to showcase the problem. The first two are from the iBook in iPad while th
-
Hi, I have a problem with signed applets in IE. I#m using JDeveloper to develop a simple applet which needs to connect to database in order to perform certain tasks. when I try to use self-signed cab files - I get error "load class --myClassName-- no
-
Help Me! My webpage rollover images goes away
Hi all. I'm realy stuck there with my rollover images. I got created my website using dreamweaver CS5 and when I opened it in firefox by myself all was ok, but when my friend opened page all rollover images jump to left side of webpage. So it mean th
-
URLConnection vs sockect connection
I need to connect to a dataserver it seems i have two choice, I can use URL myURL = new URL("http://server:port#/../.... " ) URLConnection mycon = myURL.openConnection( ) ; or I can use socket connection by passing server name and prot number. Here i
-
OT: Experience with PHP based forum ?
Hey there, I was curious if anyone has experience with a PHP/MySQL forum... I know there are plenty out there, but I also heard that some have had some security troubles lately. I never paid much attention, but now I may have a project lined up where