ForName method
what is the main purpuse of class.forName() method.
pls give me the detailed discription.
What's wrong with [this detailed description|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#forName(java.lang.String)]?
Similar Messages
-
What should be the parameter for forName() method if i use MS SQL server
if i use the MS SQL Server Personnal Edition, what string i should pass as parametter to forName() method of class Class.
Class.forName ("XXXXXXXX");
ie what should be in the place of XXXXXXX in the above line of code if i use SQL server
thank ucom.microsoft.sqlserver.jdbc.SQLServerDriver
http://msdn2.microsoft.com/en-us/library/ms378956.aspx -
Query on Class.forName() method
What is the difference between instantiating using Class.forName() method and instantiating using the new operator?
You can do one of them at runtime.
For example:
public static void main(String[] args) {
String className = args[0];
Object o = Class.forName(className).newInstance();
}It's essentially a part of the reflection API which is generally used when you don't know exactly what you want to manipulate at compile time. -
Help accessing methods in classes load with forName()
Hi all,
I am dynamically loading classes at runtime by using Class.forName() and .newInstance(). Is there any way I can access the methods of those classes after they are dynamically loaded? It doesnt seem that they are available for use.
Any help would be appreciated.
RyanTo clarify, are you asking how to invoke a method on an Object without knowing its class? In any case you should use the reflection api that are avaliable.
Ex: cl = Class.forName(); Method[] methods = cl.getMethods(); for(int i = methods.length; i-- > 0;) System.out.println(methods[i-1].getName());
or
methods[i-1].invoke(cl.newInstance(), new Object[]{}); -
Hi,
I'm using "Java Invocation API" to load a class and call a generic method of it,
but the "forName" call fails with error:
Exception in thread "Thread-4" java.lang.ClassNotFoundException: HelloWorld
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
here is my (pseudo) code:
// connect to my class "HelloWorld"
myClass = (*envP)->FindClass(env, "HelloWorld")
// connect to class "Java/lang/Class"
classClass = (*env)->FindClass(env, "java/lang/Class")
// get the id of Class.forName method
forNameID = (*env)->GetStaticMethodID(env, classClass, "forName", "(Ljava/lang/String;)Ljava/lang/Class;")
// j name of HelloWorld
jClassName = (*env)->NewStringUTF(env, "HelloWorld")
// call forName -> fails
jClassObject = (*env)->CallStaticObjectMethod(env, classClass, forNameID, jClassName)
-----> Exception in thread "Thread-4" java.lang.ClassNotFoundException: HelloWorld
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
Sustem: MacOSX 10.2.8
Java Version: 1.4.1
$CLASSPATH env var: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Classes
Can somebody help me or point me to some useful URL about this?
ThanksHere is a simple app that demonstrates my problem. I compiled and ran it on MacOSX but I have the same problem on windows. Copy the following code in a file named "javatest.c", cd to that directory and compile it with commad:
gcc -o javatest javatest.c -framework JavaVMthen run it with:
./javatestCode:
#include <JavaVM/jni.h>
//===========================================================================================
static void print_exception(JNIEnv *envP)
// output the exception
if (envP && ((*envP)->ExceptionOccurred(envP) != NULL))
{ (*envP)->ExceptionDescribe(envP);
(*envP)->ExceptionClear(envP);
//===========================================================================================
int main()
JavaVMInitArgs vm_args;
JavaVM *jvm;
JavaVMOption options[5];
char *classPathEnv;
char *classPathString;
jint res;
JNIEnv *envP = NULL;
jclass jlcClass;
jmethodID forNameID;
jstring jClassName;
jobject jClassObject;
vm_args.version = JNI_VERSION_1_2;
// options
vm_args.nOptions = 5;
options[0].optionString = "-verbose:class" ;
options[1].optionString = "-verbose:jni" ;
options[2].optionString = "-verbose:gc" ;
classPathEnv = (char *)getenv( "CLASSPATH" );
if (!(classPathString = (char*)malloc(strlen( "-Djava.class.path=" ) + strlen(classPathEnv) + 1)))
printf("malloc failed\n");
exit(1);
sprintf(classPathString, "%s%s" ,"-Djava.class.path=" , classPathEnv);
options[3].optionString = classPathString;
options[4].optionString = "vfprintf" ;
options[4].extraInfo = vfprintf;
vm_args.options = options;
vm_args.ignoreUnrecognized = JNI_FALSE;
// Load the jvm
res = JNI_CreateJavaVM(&jvm, (void**)&envP, &vm_args);
if (res != JNI_OK)
{ printf("CreateJavaVM failed\n");
exit(1);
// find the class "java/lang/Class"
if (!(jlcClass = (*envP)->FindClass(envP, "java/lang/Class")))
{ printf("FindClass java/lang/Class failed\n");
print_exception(envP);
exit(1);
// find the method ID of Class.forName
if (!(forNameID = (*envP)->GetStaticMethodID(envP, jlcClass, "forName", "(Ljava/lang/String;)Ljava/lang/Class;")))
{ printf("GetStaticMethodID forName failed\n");
print_exception(envP);
exit(1);
// make a java string of my "HelloWorld" class
if (!(jClassName = (*envP)->NewStringUTF(envP, "HelloWorld")))
{ printf("NewStringUTF failed\n");
print_exception(envP);
exit(1);
// call method Class.forName
if (!(jClassObject = (*envP)->CallStaticObjectMethod(envP, jlcClass, forNameID, jClassName)))
{ printf("CallStaticObjectMethod of forName failed\n");
print_exception(envP);
exit(1);
// fail with:
// java.lang.ClassNotFoundException: HelloWorld
// at java.lang.Class.forName0(Native Method)
// at java.lang.Class.forName(Class.java:115)
return 0;
}HelloWorld java code (compiled in a .class file located in $CLASSPATH folder):
public class HelloWorld
public static void main (String args[]) throws Exception
System.out.println ("HelloWorld");
}Someone can help me about this? -
Class.forName() throws null exception in servlet
Hi, just wondering if anyone having this similar problem:
when i try to load a class using Class.forName() method inside a servlet, it throws null exception.
1) The exception thrown is neither ClassNotFoundException nor any other Error, it's "null" exception.
2) There's nothing wrong with the code, in fact, the same code has been testing in swing before, works perfectly.
3) I have include all necessary jars/classes into the path, even if i haven't, it should throw ClassNotFoundException instead, not "null" exception.I have tried to detect any possible nullable variable, and it is able to run until line 15. The exception thrown is actually null only... not NullPointerException... which is why i have confused...
the message i received is "PlugInException: null".
The code is at follow:
* Load plugin
* @return ArrayList of plugins
* @exception PlugInException PlugInException
01 public ArrayList loadPlugin()
02 throws PlugInException
03 {
04 PlugIn plugin;
05 ArrayList plugins = new ArrayList();
06
07 for (int i = 0; i < configLoader.getPluginTotal(); i++)
08 {
09 try
10 {
11 if (debugger > 0)
12 {
13 System.out.print("Loading " configLoader.getPluginClass(i) "...");
14 }
15 if (Class.forName(configLoader.getPluginClass(i)) == null)
16 {
17 if (debugger > 0)
18 {
19 System.out.print(" not found");
20 }
21 }
22 else
23 {
24 if (debugger > 0)
25 {
26 System.out.println(" done");
27 }
28 plugin = (PlugIn)(Class.forName(configLoader.getPluginClass(i)).newInstance());
29 plugin.setContainer(container);
30 plugins.add(plugin);
31 }
32 }
33 catch (Exception e)
34 {
35 throw new PlugInException("PlugIn Exception: " + e.toString());
36 }
37 }
38
39 return plugins;
40 } -
Use of Class.forName() in JDBC
Hi,
I know that in JDBC "Class.forName()" is used to load the JDBC driver classes.
Is this the only purpose of "Class.forName()" method specially in JDBC?thanks much..
ok so. calling the Class.forName automatically
creates an instance of a driver and registers it with
the DriverManager.more or less
When we use the string / string buffer class we don�t
need to explicitly load the classes exist in
�java.Lang� package.they get loaded - as do all classes - when your code first tries to use them.
But to get the JDBC connection, we need to insert the
code
�Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");�..
please clear my confusion.it's really because the JDBC driver might not be known at compile-time. Class.forName allows us to load classes at runtime we didn't know about at compile-time. you could just as easily load java.lang.String using the above method, but since the method takes a string, the class will be loaded already! you could also just as easily do
import sun.jdbc.odbc.JdbcOdbcDriver;
new JdbcOdbcDriver();that would also load the class. but that then couples your code to that particular driver. generally, in real applications, the driver classname would come from a config file, rather than hard-coded in the application. Class.forName() gives us that flexibility -
For class.forName()
Class.forName()
method is used in DataBase Connection
we cannot trap the returned value why n how it works in DataBase ConnectionClass.forName()
method is used in DataBase Connection
we cannot trap the returned value why n how it works
in DataBase ConnectionYes, you can "trap" the returned value, but you don't need to. This call loads the driver class. For all JDBC drivers it is mandatory to have a static initializer that registers the driver at the DriverManager, so loading the class is all you need to do in order to make it known to JDBC. -
Hello !
Below I am giving my Problem.....
I hav a List Class Named as : DepartmentList and a method called getInstance()
Now if that is a class then i must call it as :
DepartmentList deptInst=new DepartmentList()
then method call as : deptInst.getInstance()
But unfortuntly,
now I've a String strClass="DepartmentList";
and String strMethod="getInstance";
I've to invoke that method.. How ???
Plz give the solution..
Hint: Check forName(..) to get the appropiate Class then it's method... But unable to invoke that method..
Thanks !
BSYou can get a class using the Class.forName method like this:
Class clazz = Class.forName ("DepartmentList");Note that you have to add any package names to this name as well or else it will not find the class.
Then there's a getMethod method available that takes the name of the method and any number of parameter classes. In your case this would be:
Method meth = clazz.getMethod ("getInstance");you can then call invoke on this method object. See the javadoc for what parameters you exactly need, if any :)
good luck ! -
Database connectivity without using Class.forName()
Hi,
Can anyone please tell how we can connect to a database without in java without using the Class.forName() method , and then how the database driver gets loaded.
Regards,
TanmoyHi,
I recently wrote code that connects to a database without using Class.forName() in order to be compatible with Microsoft's JVM. I read about it here:
http://www.idssoftware.com/faq-e.html#E1
Basically, you create a new Driver object and use its connect method.
Here's what my particular code ended up being:
String url = "jdbc:mysql://localhost:3306/test?user=root&password=mypass";
Driver drv = new org.gjt.mm.mysql.Driver();
Connection con = drv.connect(url,null); -
Need Help Loading Sqlbase Driver Using Class.forName(...
I'm having trouble connecting to a Sqlbase database on my PC. The problem seems to be with loading the driver with the "Class.forName" method. My source code (listed below) is in the "C:\My Documents\java" folder. I installed the Sqlbase driver in "C:\com\centurasoft\java\sqlbase" folder. The driver installation modified my autoexec.bat file to include the line "SET CLASSPATH=C:\com\centurasoft\java\sqlbase".
The epdmo database is in a folder on my D:\ drive.
It seems to find the SqlbaseDriver.class file, but for some reason it can't load it. I would greatly appreciate any suggestions as to how I can fix this.
With the line -- Class.forName("centura.java.sqlbase.SqlbaseDriver");
The SqlbaseEx.java program will compile, but I get the following error
when I try to run it:
Exception in thread "main" java.lang.NoClassDefFoundError: SqlbaseDriver (wrong name: com/centurasoft/java/sqlbase/SqlbaseDriver)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
... [several more lines like these]
at SqlbaseEx.main(SqlbaseEx.java:25)
With the line -- DriverManager.registerDriver(new SqlbaseDriver());
The SqlbaseEx.java program will NOT compile. I get the following error:
SqlbaseEx.java:21: cannot access SqlbaseDriver
bad class file: C:\com\centurasoft\java\sqlbase\SqlbaseDriver.class
class file contains wrong class: com.centurasoft.java.sqlbase.SqlbaseDriver
Please remove or make sure it appears in the correct subdirectory of the classpath.
Also, does the line -- String url = "jdbc:sqlbase:epdmo";
look OK? I've seen numerous examples and they all have some values separated by slashes //. Am I
missing something here that will bite me when I get past this driver loading error?
import java.sql.*;
// Create the ...
public class SqlbaseEx {
public static void main(String args[]) {
String url = "jdbc:sqlbase:epdmo";
Connection con;
String createString;
createString = "create table COFFEES " +
"(COF_NAME varchar(32), " +
"SUP_ID int, " +
"PRICE float, " +
"SALES int, " +
"TOTAL int)";
Statement stmt;
try {
Class.forName("centura.java.sqlbase.SqlbaseDriver");
// DriverManager.registerDriver(new SqlbaseDriver());
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url, "SYSADM", "SYSADM");
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());Thanks for the reply.
Upon further testing, I think my original post was slightly incorrect: if I use either of the following lines --
Class.forName("com.centurasoft.java.sqlbase.SqlbaseDriver");
or
Class.forName("centura.java.sqlbase.SqlbaseDriver");
I get the following error at runtime:
ClassNotFoundException: com.centurasoft.java.sqlbase.SqlbaseDriver
or
ClassNotFoundException: centura.java.sqlbase.SqlbaseDriver
It is when I use the line -- Class.forName("SqlbaseDriver");
that I get the long error message in my original post.
I don't understand why it can't find/load the driver. I feel like I've covered all the bases -- I've tried numerous variations of the driver name in the Class.forName method, my classpath variable seems to be set correctly. Does it matter what folder I compile my program in? Right now, I've just been compiling it in the same folder as the driver file -- c:\com\centurasoft\java\sqlbase. -
Instantiating object using Class.forName()
What is the difference between instantiating using Class.forName() method and instantiating using the new operator?
The difference is that you can use the new operator to instantiate an object, but you can't do it using Class.forName().
But seriously folks...
Presumably you're talking about Class.newInstance()--which often appears right on the heels of Class.forName().
New gives you compile-time checks you don't get with Class.forName(). If it compiles with new, then you know the constructor in question exists on the class in question.
With Class.newInstance() (and it's cousin (also called newInstance, I think) in the Constructor class), you can't be sure until you actually execute it whether that constructor even exists.
New requires you to know the class at compile time. NewInstance lets you defer the specific class until runtime.
New is simpler and more direct.
(Did I just do your homwork for you? Hope not.) -
Jdbc - Class.forName(...)
can anyone explain to me the exact mechanism of using this statement to load a driver? I thought the forName method was supposed to return a reference he name of the class of the Object supplied as a parameter. All of a sudden the DriverManager knows what driver to use???
Class.forName("some.driver.package");ThanksAll of a sudden the DriverManager knows
what driver to use???And following on from what whoisfred said...
The DM doesn't really "know" which driver to use, but by registering itself with the DM, the driver makes itself eligible to be used for a given connection. Driver has a method [url http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Driver.html#acceptsURL(java.lang.String)]acceptsURLurl. Presumably the DM calls this method on each registered driver until it either finds one that returns true, or it runs out of drivers (in which case it throws and exception with the message "No suitable driver found.")
You can look at the source for DriverManager if you want to confirm my assumption. -
Error while testing a web service using JMSAdapter in ESB
Hi,
I have configured a JMS adapter to produce a message on a Topic.
When ever I test the web service to invoke this service I get the following error :
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:Server</faultcode><faultstring>oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.server.common.exceptions.BusinessEventRejectionException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
; nested exception is:
ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console.
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:623)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:726)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(Unknown Source)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(Unknown Source)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console.
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.createJCAConnectionFactory(WSIFPort_JCA.java:1585)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.newPoolObject(WSIFPort_JCA.java:1439)
at oracle.tip.adapter.fw.common.ObjectPool.checkOut(ObjectPool.java:125)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.checkOut(WSIFPort_JCA.java:1656)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA.obtainJCAConnection(WSIFPort_JCA.java:984)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:327)
... 32 more
Caused by: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
at oracle.tip.adapter.fw.wsdl.WSDLUtils.setupManagedConnectionFactory(WSDLUtils.java:461)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.createJCAConnectionFactory(WSIFPort_JCA.java:1517)
... 37 more
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at oracle.tip.adapter.fw.wsdl.WSDLUtils.setupManagedConnectionFactory(WSDLUtils.java:454)
... 38 more
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(Unknown Source)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(Unknown Source)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source)
at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.processMessage(Unknown Source)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
; nested exception is:
ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console.
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:623)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:726)
... 31 more
Caused by: ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
esb:///ESB_Projects/LearningESB_AQJMS2DB/ProduceTestMsg.wsdl [ Produce_Message_ptt::Produce_Message(InputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console.
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.createJCAConnectionFactory(WSIFPort_JCA.java:1585)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.newPoolObject(WSIFPort_JCA.java:1439)
at oracle.tip.adapter.fw.common.ObjectPool.checkOut(ObjectPool.java:125)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.checkOut(WSIFPort_JCA.java:1656)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA.obtainJCAConnection(WSIFPort_JCA.java:984)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:327)
... 32 more
Caused by: ORABPEL-12529
ManagedConnectionFactory problem.
Could not instantiate ManagedConnectionFactory oracle.tip.adapter.jms.JmsManagedConnectionFactory due to:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
Please make sure the corresponding JCA Resource Adapter has been deployed.
at oracle.tip.adapter.fw.wsdl.WSDLUtils.setupManagedConnectionFactory(WSDLUtils.java:461)
at oracle.tip.adapter.fw.wsif.jca.WSIFPort_JCA$JCAConnectionPool.createJCAConnectionFactory(WSIFPort_JCA.java:1517)
... 37 more
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
This load was initiated at esb-rt.web.provider-war:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at oracle.tip.adapter.fw.wsdl.WSDLUtils.setupManagedConnectionFactory(WSDLUtils.java:454)
... 38 more
</faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
I have done the following :_
In the oc4j-ra.xml file located at /Oracle_Home/j2ee/home/application-deployments/default/JmsAdapter
<connector-factory location="eis/Jms/OEMS" connector-name="JmsAdapter">
<config-property name="connectionFactoryLocation" value="java:comp/resource/OEMS/TopicConnectionFactories/yTCF"/>
<config-property name="factoryProperties" value=""/>
<config-property name="acknowledgeMode" value="AUTO_ACKNOWLEDGE"/>
<config-property name="isTopic" value="true"/>
<config-property name="isTransacted" value="false"/>
<config-property name="username" value="jmsuser"/>
<config-property name="password" value="jmsuser"/>
<connection-pooling use="none"></connection-pooling>
<security-configuse="none"></security-config>
</connector-factory>
the application.xml file has the following :
<resource-provider class="oracle.jms.OjmsContext" name="OEMS">
<description>Resource provider for the OEMS database</description>
<property name="url" value="jdbc:oracle:thin:jmsuser/jmsuser@localhost:1521:XE" />
</resource-provider>
Localhost , XE : this is replaced with the Database host name and service name on which the Topic is hosted .
The application-client.xml file located at /Oracle_Home/bpel/system/classes/META-INF has the following :
<application-client/>
Plz let me know how can i go about to resolve this issue .
Thanks
Shilpayour problem:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more) -
I just downloaded JDev and try to run web application who works fine on EA1 and get:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
D:\jdevstudio1013\jdk\bin\javaw.exe -server -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
2006-01-30 16:23:09.144 WARNING J2EE OJR0107 Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
2006-1-30 16:23:09 com.evermind.server.ApplicationStateRunning initConnector
SEVERE: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
06/01/30 16:23:09 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
06/01/30 16:23:09 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
at com.evermind.server.Application.setConfig(Application.java:391)
at com.evermind.server.Application.setConfig(Application.java:308)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
... 11 more
Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
... 13 more
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.informix.jdbc.IfxDriver
Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
Loader: oc4j:10.1.3
Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
... 15 more
2006-1-30 16:23:09 com.evermind.server.ApplicationStateRunning initConnector
SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
at com.evermind.server.Application.setConfig(Application.java:391)
at com.evermind.server.Application.setConfig(Application.java:308)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
... 11 more
Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
... 13 more
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.informix.jdbc.IfxDriver
Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
Loader: oc4j:10.1.3
Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
... 15 more
2006-1-30 16:23:09 com.evermind.server.Application setConfig
WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
06/01/30 16:23:09 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
2006-01-30 16:23:09.222 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.informix.jdbc.IfxDriver
Ready message received from Oc4jNotifier.
06/01/30 16:23:13 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
Embedded OC4J startup time: 14687 ms.
Target URL -- http://194.12.245.233:8988/Classification2-VeiwController-context-root/classificationList.jsfGreat, This works. Thanks.
I hav another problem.
Now my VirtualMashine is clyent.
If I choos ojvm :
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
D:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Process exited with exit code 128.
Can u resolv this problem?
Thanks
Message was edited by:
KrasiG
Maybe you are looking for
-
I want an iPhone 3gs as I currently have a nokia lumia 620 but can I use my micro sim in the 3gs
Hi i want an iPhone 3gs but can i use my micro sim or do i need a sim adapter? answer soon
-
How to get Authorization for Certified (1z0-047) Exam
Hello Team, I've done the 1z0-047 Exam on 03/20/10 with 98%. And I tried to check the Authorization, But I forgot some details to fill. So now I just have 1 last attempt. Please help me how to proceed further. Regards, Jyothsna
-
Using Sales Forecast packaged application
Hi, i wish to use the sales forecast packaged application but, trying with different users all the users see the same data, i mean the Sales Rep A see the selling cycle of Sales rep B. Since the manager is right to be able to look to Rep's opportunit
-
Mail transfer from the old macbook to the newer retina macbook pro
Hey, My father moved from an old macbook to the new retina macbook pro about 2 months back. Now as he is a business man he requires all his emails from his old mac onto the new macbook. The problem is to integrate his old mail data with 2 months of h
-
Export users , roles and tablespace definotion
Hello, I would like to export (and after then import to another DB) users and roles from DB. How can I simply do this? And second question: how can I export tablespace definitions? Thanks SASA