OC4J/J2EE
I have two OC4J standalone (10.0.3.0.0 build 040227.1923)
The containers work on Windows2000 in different machines connected by the LAN.
First container has JMS queue (jms.xml):
< queue name = "ITCQueue1"
location = "jms/ITCQueue1" >
<description> Queue for replication scheduler </description>
</queue>
< queue-connection-factory
name = "ITCQueue1ConnectionFactory"
location = "jms/ITCQueue1ConnectionFactory" / >
There is application "EMDBQueueRCA" with Message Driven Bean (adjusted on queue ITCQueue1) is established in first OC4J.
The second container has j2ee application that sending JMS messages in the queue of the first container.
Code:
Hashtable env = new Hashtable ();
env.put (Context. INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi. RMIInitialContextFactory");
env.put (Context. SECURITY_PRINCIPAL, "snow");
env.put (Context. SECURITY_CREDENTIALS, "snow");
env.put (Context. PROVIDER_URL, "ormi://127.0.0.1:23791/EMDBQueueRCA");
env.put ("dedicated.connection", "true");
QueueConnectionFactory connectionFactory = (QueueConnectionFactory) ctx.lookup ("jms/ITCQueue1ConnectionFactory");
Queue queue = (Queue) ctx.lookup ("jms/ITCQueue1");
QueueConnection connection = connectionFactory.createQueueConnection ();
QueueSession queueSession = connection.createQueueSession
(false, Session. AUTO_ACKNOWLEDGE);
while (true)
JMSSender jMSSender = new JMSSender ();
TextMessage messageDat = queueSession.createTextMessage ();
sender.send (messageDat);
The second oc4j established JMS connection with first oc4j and begins to pass the messages.
First oc4j creates some system thread for this JMS connection.
If the 2-nd oc4j lose network connection (example- break the cable) then created in 1-st oc4j system thread is not destroyed.
Saw if this situation repeats some times that amount of the system thread in 1-st oc4j is grow.
Question:
How can 1-st oc4j terminate this system threads by automatic?
Hello,
Have you followed the installation instruction from the following documentation that provides information about the classpath configuration:
- Using Hibernate in OracleAS 10.1.3
Regards
Tugdual Grall
Similar Messages
-
JAX-RPC vs OC4J J2Ee web service
Hi,
Currently we use Oracle10G 10.0.3 developer preview edition. we deployed same web service on both JAX-RPC platfrom and OC4J J2EE web service platfrom (RPC encoding style). We found that old platform seems to perform better than JAx-RPC platfrom with regard to serialization and de-serialzation. We also did the test on Doc/literal style in JAX-RPC platfrom and its performance is not as good as the one deployed on old platform. We understand JAX-RPC is new implementation and Oracle10.0.3 is under developer preview edition and so it may not be optimized. We have following questions
1. Is this a known issue in JAX-RPC platform?
2. Is there anyway to optimize JAX-RPC web service? Like using different XMl parser (instead of Oracle XML parser)
3. When is the final release of 10.0.3 expected?
4. Will Oracle be supporting old web service platfrom (OC4J J2EE web service platform)? If so how long?
Thanks and regards
__HariHi,
Currently we use Oracle10G 10.0.3 developer preview edition. we deployed same web service on both JAX-RPC platfrom and OC4J J2EE web service platfrom (RPC encoding style). We found that old platform seems to perform better than JAx-RPC platfrom with regard to serialization and de-serialzation. We also did the test on Doc/literal style in JAX-RPC platfrom and its performance is not as good as the one deployed on old platform. We understand JAX-RPC is new implementation and Oracle10.0.3 is under developer preview edition and so it may not be optimized. We have following questions
1. Is this a known issue in JAX-RPC platform?
2. Is there anyway to optimize JAX-RPC web service? Like using different XMl parser (instead of Oracle XML parser)
3. When is the final release of 10.0.3 expected?
4. Will Oracle be supporting old web service platfrom (OC4J J2EE web service platform)? If so how long?
Thanks and regards
__Hari -
How to run ejb application OC4J J2EE Container
Hi all,
I unable run ejb applications in OC4J J2EE Container.
I have configure following files.
in config directory
Server.xml
I have .ear file if configured in server.xml. this .ear copied into home/application directory
I have create following deployment discriptor file.
in META-INF for ejb.
ejb-jar.xml
application.xml
I have specify all ejb classes details in ejb-jar.xml
Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
Thnaks,Hi all,
I unable run ejb applications in OC4J J2EE Container.
I have configure following files.
in config directory
Server.xml
I have .ear file if configured in server.xml. this .ear copied into home/application directory
I have create following deployment discriptor file.
in META-INF for ejb.
ejb-jar.xml
application.xml
I have specify all ejb classes details in ejb-jar.xml
Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
Thnaks, -
OC4J j2ee data-source.xml
Hi Friends,
I am very confused with lots of ORACLE_HOME in EBS :(
Where do I find the PATH directory where the data-source.xml is located for
the installed OC4J/j2ee. Can you call it as $J2EE_HOME or $OC4J_HOME?
Thanks a lotIf you are integrating BAM to EBS via BPEL Sensors, you create the connection in the Enterprise Manager tool or modify oc4j-ra.xml on the SOA Suite:
Oracle Application Server Adapter for Oracle Applications User's Guide
Configuring Connection Information
http://download.oracle.com/docs/cd/E10291_01/doc.1013/e05440/T430238T430340.htm#T464886 -
Problems when starting OC4J J2EE 10.1.3 standalone container
Hi,
For month's now my OC4J standalone container functioned without any problems..
Suddenly, it does not start anymore and I'm getting the following error:
Starting OC4J from c:\oracle\oc4j_1013\j2ee\home ...
2006-07-19 21:45:23.046 ERROR Failed to set the internal configuration of the OC
4J JMS Server with: XMLJMSServerConfig[file:/C:/oracle/oc4j_1013/j2ee/home/confi
g/jms.xml]
06/07/19 21:45:23 *** (SEVERE) Failed to set the internal configuration of the O
C4J JMS Server with: XMLJMSServerConfig[file:/C:/oracle/oc4j_1013/j2ee/home/conf
ig/jms.xml]
2006-07-19 21:45:23.062 ERROR J2EE OJR0011 Exception starting JMS server: Failed
to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf
ig[file:/C:/oracle/oc4j_1013/j2ee/home/config/jms.xml]
2006-07-19 21:45:25.171 WARNING J2EE JNDI0001 Resource Environment reference jms
/store not found. Allowing J2EEContext creation to continue anyway.
2006-07-19 21:45:25.171 WARNING J2EE JNDI0001 Resource Environment reference jms
/eventQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-19 21:45:25.171 WARNING J2EE JNDI0001 Resource Environment reference jms
/notificationQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-19 21:45:25.218 WARNING J2EE JNDI0001 Resource Environment reference jms
/eventQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-19 21:45:25.218 WARNING J2EE JNDI0001 Resource Environment reference jms
/notificationQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-19 21:45:25.218 ERROR J2EE EJB3027 [default] An error occured deploying
EJB module: java.lang.InstantiationException: Resource exception(OracleASjms) fo
r MessageDrivenBean event during endpoint activation: failure looking up Connect
ionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi.ResourceAdap
terInternalException: Looking up jms/XAQueueConnectionFactory: javax.naming.Name
NotFoundException: jms/XAQueueConnectionFactory not found
06/07/19 21:45:25 WARNING: Application.setConfig Application: default is in fail
ed state as initialization failedjava.lang.InstantiationException: Error initial
izing ejb-modules: Resource exception(OracleASjms) for MessageDrivenBean event d
uring endpoint activation: failure looking up ConnectionFactoryJndiName:jms/XAQu
eueConnectionFactory: javax.resource.spi.ResourceAdapterInternalException: Looki
ng up jms/XAQueueConnectionFactory: javax.naming.NameNotFoundException: jms/XAQu
eueConnectionFactory not found
Jul 19, 2006 9:45:25 PM com.evermind.server.Application setConfig
WARNING: Application: default is in failed state as initialization failedjava.la
ng.InstantiationException: Error initializing ejb-modules: Resource exception(Or
acleASjms) for MessageDrivenBean event during endpoint activation: failure looki
ng up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi
.ResourceAdapterInternalException: Looking up jms/XAQueueConnectionFactory: java
x.naming.NameNotFoundException: jms/XAQueueConnectionFactory not found
2006-07-19 21:45:25.250 WARNING DEBUG GJRA-1100, oracle.j2ee.connector.messagein
flow.MessageEndpointFactoryImpl@159d450.
06/07/19 21:45:25 Error initializing server: Error initializing ejb-modules: Res
ource exception(OracleASjms) for MessageDrivenBean event during endpoint activat
ion: failure looking up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory:
javax.resource.spi.ResourceAdapterInternalException: Looking up jms/XAQueueConne
ctionFactory: javax.naming.NameNotFoundException: jms/XAQueueConnectionFactory n
ot found
2006-07-19 21:45:26.093 WARNING J2EE JTA RecoveryManager is null during shut
down
06/07/19 21:45:26 Fatal error: server exiting
The version of the OC4J J2EE container is:
Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277)
Does anyone has any suggestions why this error happens, I did not changes anything in my installation and also did not deploy any new apps
Thanks for your helpI still have this problem when I try to login to the EM:
This OC4J is configured to make JMX connections via RMIS and fall back to RMI if the RMIS port is not configured. The RMIS connection on the OC4J instance home on Application Server assoa.locahost is configured but a connection could not be established. The JMX protocol is specified by the oracle.oc4j.jmx.internal.connection.protocol property in opmn.xml
Can you help me here? -
I unable to run ejb with application client using oc4j j2ee container
Hi,
I have installe oracle9i (1.0.2.2) oc4j j2ee container.
I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
See the client application is :
public static void main (String []args)
try {
//Hashtable env = new Hashtable();
//env.put("java.naming.provider.url", "ormi://localhost/Demo");
//env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
//env.put(Context.SECURITY_PRINCIPAL, "guest");
//env.put(Context.SECURITY_CREDENTIALS, "welcome");
//Context ic = new InitialContext (env);
System.out.println("\nBegin statelesssession DemoClient.\n");
Context context = new InitialContext();
Object homeObject = context.lookup("java:comp/env/DemoApplication");
DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
System.out.println("Creating Demo\n");
Demo demo = home.create();
System.out.println("The result of demoSelect() is.. " +demo.sayHello());
}catch ( Exception e )
System.out.println("::::::Error:::::: ");
e.printStackTrace();
System.out.println("End DemoClient....\n");
When I am running client application I got this type of Exception
java.lang.SecurityException : No such domain/application: sampledemo
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
at com.evermind.server.Application.createContext(Application.java: 653)
at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
at javax.naming.InitialContext.init(InitialContext.java : 222)
at javax.naming.InitialContext.<init>(InitialContext.java : 178)
at DemoClient.main(DemoClient.java : 23)
.ear file is copied into applications directory.
I have configured server.xml file like this
<application name="sampledemo" path="../applications/demos.ear" />
demos.ear file Contains following files
application.xml
demobean.jar
Manifest.mf
demobean.jar file contains following files
application-client.xml
Demo.class
DemoBean.class
DemoHome.class
ejb-jar.xml
jndi.properties
Mainifest.mf
Please give me your valuable suggestions. Which are shall i configure .
Thanks & Regards,
BadriHi Badri,
ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
Also please check ur server.xml
Since you have specified your ejb domain as "sampledemo"
you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
Code snippet for the same is :
Hashtable env = new Hashtable();
env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "guest");
env.put(Context.SECURITY_CREDENTIALS, "welcome");
Context ic = new InitialContext (env);
Hope this helps
--Venky -
Hello,
I am trying to do software load balancing on the Applicatoin tier of Oracle Apps 11.5.9 (which uses 9iAS version 2.0, I suppose)
Going thru the follow metalink documents ---
Configuring Multiple OC4J Instances as a High Availability Cluster
(http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=175593.1)
Running Multiple OC4J Instances From a Single Install of 9iAS 1.0.2.2
(http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=153325.1)
But I am unable to find the directory 'j2ee' in 9iAS ORACLE_HOME wherein I need to modify the configuration files
Is there any version probelm
Or something that I am doing wrong
Please let me know
Thanks and Regards,
PoojaPooja,
I am unable to find the directory 'j2ee' in 9iAS
ORACLE_HOMEThat's because ORACLE_HOME for 9iAS is different to ORACLE_HOME for the Oracle database (server).
On our SUN [sparc] Solaris 9 machine:
[9iAS] ORACLE_HOME = /u/app/oracle/product/ias
[9i Database] ORACLE_HOME = /u/app/oracle/product/9.2.0
And the "j2ee" subdirectory is under "/u/app/oracle/product/ias"
Good Luck,
Avi. -
Transaction propagation between OC4J to non-OC4J J2EE container
I have a OC4J instance 10.1.3.1 containing a stateless session EJB 2.1. This bean call another session EJB in Websphere EJB container. The call goes through but the transaction is not distributed, meaning I cannot roll the transaction back from the OC4J container.
I have tried all kinds of context factories but it doesen't work. I use a XA datasource to an Oracle DB from the Websphere container.
Does anyone know how to propagate transactions from an OC4J container to another J2EE container:
Thanks
regards
A BastellYou can specify the JNDI properties in your JSP/Java Client to lookup the EJB if it's in a different EJB container than the one provided by the JSP container.
Rob -
Application Deployment on OC4J - J2EE and WebCache w/o infrastructure
Can someone please tell me if I can deploy my Servlet on Oralce 9iAS Version 2, without making .war or .ear files. What I have is just servlet classes and jar files. Also what are the file I need to update if I want to deploy my application outside the Oracle_Home.
Any help would be appreciated.Did the application to deploy without problems?
Have you checked the logs? -
Hi Friends,
How do I install OC4J/J2EE on Linux and Windows?
Thanks a lotFrom the above link navigate to section Configuration and Administration Guide
<br>
Also, the tab at the top of the page Getting Started has various installation guides for platforms, which have chapters about setting up OC4J
<br>
If you're talking about standalone OC4J then have a look at http://www.oracle.com/technology/tech/java/oc4j/index.html
<br>
When you download standalone OC4J there is a readme which explains how to set it up. -
Deploying j2ee sun .ear with OC4J
Debu Panda wrote:
Looks like deployment of an EJB is causing this problem. Can you please paste the deployment descriptor of the EJB causing this problem.
What version of OC4J are you using ?
regards
Debu Panda
Oracle
Thank you Debu!
I'm using OC4J version 1.0.2.2.1.
I don't know wich EJB can cause the problem.
This is the ejb-jar.xml contained in the jar file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<display-name>EJBContainer</display-name>
<enterprise-beans>
<entity>
<display-name>SPMSessionFactoryEJB</display-name>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<home>spm.infrastruttura.session.SPMSessionFactoryHome</home>
<remote>spm.infrastruttura.session.SPMSessionFactory</remote>
<ejb-class>spm.infrastruttura.session.SPMSessionFactoryEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Object</prim-key-class>
<reentrant>False</reentrant>
<ejb-ref>
<ejb-ref-name>SPMSessionEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SPMSessionHome</home>
<remote></remote>
</ejb-ref>
<security-identity>
<description></description>
<use-caller-identity></use-caller-identity>
</security-identity>
<resource-ref>
<res-ref-name>DBORA</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</entity>
<session>
<display-name>SPMSessionEJB</display-name>
<ejb-name>SPMSessionEJB</ejb-name>
<home>spm.infrastruttura.session.SPMSessionHome</home>
<remote>spm.infrastruttura.session.SPMSession</remote>
<ejb-class>spm.infrastruttura.session.SPMSessionEJB</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
<security-identity>
<description></description>
<use-caller-identity></use-caller-identity>
</security-identity>
<resource-ref>
<res-ref-name>DBORA</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<method-permission>
<unchecked />
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getSessionList</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getHandle</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>javax.ejb.Handle</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>getHomeHandle</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getSession</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>create</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>findByPrimaryKey</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>getEJBMetaData</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>isIdentical</method-name>
<method-params>
<method-param>javax.ejb.EJBObject</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getEJBHome</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>removeSession</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>remove</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getPrimaryKey</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getSession</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionFactoryEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>java.lang.Object</method-param>
</method-params>
</method>
</method-permission>
<method-permission>
<unchecked />
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getLastAccessTime</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>refreshSession</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>SessionScaduta</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>maketree</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getLingua</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getEmailAddr</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getRs</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getLastName</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>Validate</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getPrimaryKey</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setLastName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>create</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getUserName</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>addEjb</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getEJBHome</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>removeEjb</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>close</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setUserName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getFirstName</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>java.lang.Object</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setProfilo</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getHandle</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>getHomeHandle</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>javax.ejb.Handle</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getSubSystem</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setEmailAddr</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getCodeCliente</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>isIdentical</method-name>
<method-params>
<method-param>javax.ejb.EJBObject</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Home</method-intf>
<method-name>getEJBMetaData</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getEjb</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getId</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getPassword</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setPassword</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getIpClient</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>getSessionEspireTime</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setFirstName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>remove</method-name>
<method-params />
</method>
<method>
<ejb-name>SPMSessionEJB</ejb-name>
<method-intf>Remote</method-intf>
<method-name>setSubSystem</method-name>
<method-params>
<method-param>spm.infrastruttura.SubSystem</method-param>
</method-params>
</method>
</method-permission>
</assembly-descriptor>
</ejb-jar>
Stefano wrote:
I'm trying to deploy under OC4Jan ear file packed with j2ee.
I've the following problems:
Command line:
C:\OC4J\j2ee\home>java -jar admin.jar ormi://localhost/ admin spm -deploy -file
./applications/myApp/myApp.ear -deploymentName myApp
Result:
Auto-unpacking C:\OC4J\j2ee\home\applications\myApp.ear... done.
Auto-unpacking C:\OC4J\j2ee\home\applications\myApp\war-ic.war... done.
Auto-deploying myApp (New server version detected)...
java.lang.InstantiationException: Illegal use-caller-identity value, legal value
s are True and False.
at com.evermind.server.deployment.SecurityIdentity.<init>(SecurityIdenti
ty.java:52)
at com.evermind.server.ejb.deployment.BeanDescriptor.parseAssemblyNode(B
eanDescriptor.java:704)
at com.evermind.server.ejb.deployment.EntityBeanDescriptor.<init>(Entity
BeanDescriptor.java:107)
at com.evermind.server.ejb.deployment.EJBPackage.parseEnterpriseBeans(EJ
BPackage.java:475)
at com.evermind.server.ejb.deployment.EJBPackage.parseMainNode(EJBPackag
e.java:369)
at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:256)
at com.evermind.xml.XMLConfig.init(XMLConfig.java:142)
at com.evermind.server.ServerComponent.init(ServerComponent.java:178)
at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDep
loyment.java:534)
at com.evermind.server.administration.ServerApplicationInstallation.fini
sh(ServerApplicationInstallation.java:397)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
What can i do?
Tahnks.Stefano,
Can you please the following line in the ejb-jar.xml from
<use-caller-identity></use-caller-identity>
<use-caller-identity>true</use-caller-identity>
and redeploy the application ?
regards
Debu -
I have a project that runs great on oc4j 10.0.3.4 under jdk 1.6. (everything worked great)
I recently tried to run it under jdk 1.5 and i've run into a little problem with the shared-lib's:
The classloader's debug file reports the following: (i have translated some of it)
Class error: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: javax.xml.bind.JAXBContext
Dependant class: nl.comp.util.XmlUtil
Classloader: comp:0.1
Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/comp/0.1/comp.jar
Configuration: <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml
The missing class is available from the following location:
1. Code-source: /C:/programs/oc4j/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\programs\oc4j\j2ee\home\oc4j.jar)
This code-source is available from classloader oracle.xml:10.1.0_2
2. Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/jaxb/2.1.6/jaxb-api.jar (from <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml)
This code-source is available from classloader jaxb:2.1.6.
So the classloader knows where to find the necessary lib, but it isn't loading it? If i run the exact same code (with same descriptors and everything) under jdk 1.6, it works, under 1.5 i get the above error.
What is different on the class loader level between the two jdk versions that might affect the program in such a way?
Need i update a descriptor or do something else?Jack,
Not a definitive answer for you (sorry), just a few suggestions (that I assume you are unaware of).
1. Try unsetting your "ClassPath" variable. Open a "command" window and type the following:
set ClassPath=2. Launch OC4J from the directory where the "oc4j.jar" file is located, for example:
D:
cd oc4j\j2ee\home
java -jar oc4j.jar3. I'm just guessing, but if your drive "D:" is a mapped, network drive, this may be causing the problem. Perhaps try installing OC4J on a local drive?
Hope this helps.
Good Luck,
Avi. -
Error while installing the OC4J version oc4j_extended_101310
Hi All,
I am getting the following stacktrace when i run java -jar oc4j.jar
I have set the foll env variables
CLASSPATH :-C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\lib\tools.jar
JAVA_HOME :-C:\j2sdk1.4.2_04
PATH:-%JAVA_HOME%\bin;D:\Oracle\product\10.1.0\Client_1\bin;D:\ant\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\cvsnt
2006-09-11 17:38:53.910 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\dms.war...
2006-09-11 17:38:53.910 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\dms.war in D:\oc4j\j2ee\home\applications\dms
2006-09-11 17:38:53.910 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\dms.war
2006-09-11 17:38:53.910 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war...
2006-09-11 17:38:53.926 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war in D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web
2006-09-11 17:38:53.960 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\JMXSoapAdapter-web.war
2006-09-11 17:38:54.076 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\jmsrouter.war...
2006-09-11 17:38:54.076 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\jmsrouter.war in D:\oc4j\j2ee\home\applications\jmsrouter
2006-09-11 17:38:54.110 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\jmsrouter.war
2006-09-11 17:38:54.143 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\connectors\datasources\datasources.rar...
2006-09-11 17:38:54.143 NOTIFICATION Unjar D:\oc4j\j2ee\home\connectors\datasources\datasources.rar in D:\oc4j\j2ee\home\connectors\datasources\datasources
2006-09-11 17:38:54.143 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\connectors\datasources\datasources.rar
2006-09-11 17:38:54.143 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar...
2006-09-11 17:38:54.143 NOTIFICATION Unjar D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar in D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms
2006-09-11 17:38:54.160 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar
2006-09-11 17:38:54.193 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol.ear...
2006-09-11 17:38:54.193 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\ascontrol.ear in D:\oc4j\j2ee\home\applications\ascontrol
2006-09-11 17:38:54.593 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol.ear
2006-09-11 17:38:54.610 NOTIFICATION Auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war...
2006-09-11 17:38:54.693 NOTIFICATION Unjar D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war in D:\oc4j\j2ee\home\applications\ascontrol\ascontrol
2006-09-11 17:39:01.542 NOTIFICATION Finished auto-unpacking D:\oc4j\j2ee\home\applications\ascontrol\ascontrol.war
06/09/11 17:39:01 Set OC4J administrator's password (password text will not be displayed as it is entered)
Enter password:
Confirm password:
The password for OC4J administrator "oc4jadmin" has been set.
06/09/11 17:39:12 The OC4J administrator "oc4jadmin" account is activated.
[Fatal Error] :-1:-1: Premature end of file.
2006-09-11 17:39:20.341 ERROR J2EE JCAC0006 Error initializing an ApplicationConnectionManager - ConnectorArchive and Application cannot be null
2006-09-11 17:39:20.341 ERROR J2EE JCAC0004 {0}
2006-09-11 17:39:20.341 WARNING J2EE JCAC0013 Error (Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException) while setting up RA for MCF (oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl) for standalone resource adapter 'Oracle JDBC Resource Adapter'
2006-09-11 17:39:20.341 ERROR J2EE OJR0105 Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/09/11 17:39:20 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
Sep 11, 2006 5:39:20 PM com.evermind.server.ApplicationStateRunning initConnector
SEVERE: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/09/11 17:39:20 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1551)
at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1504)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1968)
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.initializeDefaultApplication(ApplicationServer.java:1489)
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:864)
at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:665)
at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1193)
at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:607)
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1546)
... 12 more
Sep 11, 2006 5:39:20 PM com.evermind.server.ApplicationStateRunning initConnector
SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1551)
at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1504)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1968)
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.initializeDefaultApplication(ApplicationServer.java:1489)
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:864)
at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:665)
at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1193)
at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:607)
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1546)
... 12 more
06/09/11 17:39:20 WARNING: Application.setConfig Application: default is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
Sep 11, 2006 5:39:20 PM com.evermind.server.Application setConfig
WARNING: Application: default is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/09/11 17:39:20 Error initializing server: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/09/11 17:39:21 Fatal error: server exiting
Any suggestions are welcome.
Regards,
AshayaFYI: I got this error in the process of trying the install xerces. (just placed it in the j2ee/lib folder) I'll just the default jvm installed with SOA suite 10.1.3.1.0
[Fatal Error] :-1:-1: Premature end of file.
06/11/30 20:21:30 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/11/30 20:21:30 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1605)
at com.evermind.server.ApplicationStateRunning.initManagedDataSource(ApplicationStateRunning.java:1558)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2024)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
at com.evermind.server.Application.setConfig(Application.java:413)
at com.evermind.server.Application.setConfig(Application.java:314)
at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1565)
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1547)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:974)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InstantiationException: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
at com.evermind.server.connector.ApplicationConnectionManager.initOutbound(ApplicationConnectionManager.java:890)
at com.evermind.server.connector.ApplicationConnectionManager.init(ApplicationConnectionManager.java:297)
at com.evermind.server.connector.deployment.ConnectorArchive.createConnectionManager(ConnectorArchive.java:1140)
at com.evermind.server.connector.deployment.ConnectorArchive.addConnectionFactory(ConnectorArchive.java:630)
at com.evermind.server.ApplicationStateRunning.addConnectionFactory(ApplicationStateRunning.java:1600)
... 12 more
06/11/30 20:21:30 WARNING: Application.setConfig Application: default is in failed state as initialization failed.
java.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating Managed DataSource ConnectorPropertySet. Exception: Error setting up resource adapter for standalone resource adapter 'Oracle JDBC Resource Adapter'. ManagedConnectionFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML' for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl for standalone resource adapter 'Oracle JDBC Resource Adapter'. Exception is: java.lang.reflect.InvocationTargetException
06/11/30 20:21:30 Error initializing server: Application: default is in failed state as initialization failed
06/11/30 20:21:32 Fatal error: server exiting -
Error while deploying EAR file on OC4J 10.1.3.3
Hi all,
I am facing following error on OC4J while deploying EAR file
Error occurred during initialization of VM
Could not reserve enough space for object heap
07/12/31 17:47:21 oracle.oc4j.admin.internal.DeployerException: Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServ
ices SMS API\customerservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\
CustomerServices SMS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
07/12/31 17:47:21 at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:104)
07/12/31 17:47:21 at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8469)
07/12/31 17:47:21 at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5701)
07/12/31 17:47:21 at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5629)
07/12/31 17:47:21 at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5568)
07/12/31 17:47:21 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:731)
07/12/31 17:47:21 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
07/12/31 17:47:21 at com.evermind.server.Application.getHttpApplication(Application.java:570)
07/12/31 17:47:21 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.jav
a:1987)
07/12/31 17:47:21 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
07/12/31 17:47:21 at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
07/12/31 17:47:21 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
07/12/31 17:47:21 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
07/12/31 17:47:21 at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
07/12/31 17:47:21 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
07/12/31 17:47:21 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
07/12/31 17:47:21 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
07/12/31 17:47:21 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
07/12/31 17:47:21 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
07/12/31 17:47:21 at java.lang.Thread.run(Thread.java:534)
2007-12-31 17:47:21.625 NOTIFICATION Application Deployer for CustomerServices SMS API FAILED.
2007-12-31 17:47:21.625 NOTIFICATION Application UnDeployer for CustomerServices SMS API STARTS.
2007-12-31 17:47:21.640 NOTIFICATION Removing all web binding(s) for application CustomerServices SMS API from all web site(s)
07/12/31 17:47:21 SEVERE: ProgressObjectImpl.reportError Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServices SM
S API\customerservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\Custome
rServices SMS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
oracle.oc4j.admin.jmx.shared.exceptions.InternalException: Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServices
SMS API\customerservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\Custo
merServices SMS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:534)
Caused by: oracle.oc4j.admin.internal.DeployerException: Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServices SM
S API\customerservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\Custome
rServices SMS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:104)
at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8469)
at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5701)
at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5629)
at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5568)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:731)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:570)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1603)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
2007-12-31 17:47:28.109 NOTIFICATION Application UnDeployer for CustomerServices SMS API COMPLETES.
07/12/31 17:47:28 WARNING: DeployerRunnable.run Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServices SMS API\cus
tomerservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\CustomerServices
SMS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
oracle.oc4j.admin.internal.DeployerException: Error compiling :C:\exp\warid1link\oc4j\j2ee\home\applications\CustomerServices SMS API\custo
merservicesapi: Syntax error in source or compilation failed in: C:\exp\warid1link\oc4j\j2ee\home\application-deployments\CustomerServices S
MS API\customerservicesapi\com\warid\sms\runtime\CSSMSAPI_Service_SerializerRegistry.java
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:534)
2007-12-31 18:21:46.234 WARNING Caught exception: java.lang.reflect.InvocationTargetException.
Regards,
Imran Raza KhanLooks strange, but do you have blanks in your path names? Don't do that. Cause pain only.
--olaf -
Error while deploying Entity Beans on OC4J 10.1.3
Hi,
We have 350 entity beans in our system. Recently a new table is created as per following script.
CREATE TABLE TBLSMDTATTRIBUTECATREL
MDTCATEGORYID CHAR(7),
ATTRIBUTECATEGORYID CHAR(10),
CONSTRAINT PK_MDTATTRIBUTECATREL PRIMARY KEY (MDTCATEGORYID,ATTRIBUTECATEGORYID)
Entity Bean for the same has been created. While deploying I am facing the following error.
06/06/11 13:09:23 Notification ==> Error while compiling EJB component: file:/export/home/oc4j/j2ee/home/applications/JispAppEntities/billing-entities.jar
com.evermind.compiler.CompilationException: Method public abstract java.lang.String com.elitecore.billing.ejb.system.entity.MdtattributecatrelCMP.getMdtcategoryid() can not be declared abstract for entity 'Mdtattributecatrel'
at com.evermind.server.ejb.compilation.CMPObjectCompilation.verifyMethods(CMPObjectCompilation.java:800)
at com.evermind.server.ejb.compilation.CMPObjectCompilation.<init>(CMPObjectCompilation.java:55)
at com.evermind.server.ejb.compilation.PersistenceManagerCompilation.<init>(PersistenceManagerCompilation.java:26)
at com.evermind.server.ejb.compilation.EntityBeanCompilation.<init>(EntityBeanCompilation.java:121)
at com.evermind.server.ejb.compilation.Compilation.generateAnyOldStyle(Compilation.java:1593)
at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:181)
at com.evermind.server.ejb.compilation.Compilation.doGenerateCode(Compilation.java:249)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:971)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:205)
at com.evermind.server.Application.setConfig(Application.java:387)
at com.evermind.server.Application.setConfig(Application.java:304)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1651)
at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:402)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:158)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
at com.evermind.server.administration.DefaultApplicationServerAdministrator.internalDeploy(DefaultApplicationServerAdministrator.java:440)
at com.evermind.server.administration.DefaultApplicationServerAdministrator.deploy(DefaultApplicationServerAdministrator.java:341)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.ServerRmiMessageHandler.doMethodCall(ServerRmiMessageHandler.java:560)
at com.evermind.server.rmi.ServerRmiMessageHandler.handleMethodInvocation(ServerRmiMessageHandler.java:471)
at com.evermind.server.rmi.ServerRmiMessageHandler.handleOrmiRequest(ServerRmiMessageHandler.java:262)
at com.evermind.server.rmi.ServerRmiMessageHandler.dispatchRequest(ServerRmiMessageHandler.java:231)
at com.evermind.server.rmi.RMIServerConnection.processReceivedCommand(RMIServerConnection.java:155)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:151)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:126)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:105)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:534)
Can anybody please suggest the solution?
Thanks in advance.
Regards,
Jinal ShahHi,
The error was coming because of the table structure. All the columns were composite keys. I alter the structured by removing composite keys and added a new column as primary key. Now it is getting deployed successfully.
Can anybody comment on such a behaviour of OC4J?
Regards,
Jinal Shah
Maybe you are looking for
-
Parse files in directory newer than MM/DD/YYYY
In the attached VI I am trying to figure out how to pull in and parse all .txt log files in Folder path newer than a particular date instead of just the *.txt (all text files) as it is set to now. The date I will be entering from a sub VI is a string
-
I have a producer / consumer architecture - data are being read (from a TCP read) in the producer loop and placed on a queue. The consumer is reading the queue and doing lots of modelling, analysis and display. This architecture was chosen because th
-
I recently received an e-mail asking me to veri
I recently received an e-mail appearing to be from Apple On line Support. the e-mail asked me to verify my account details and security questions or my account would be suspended in 3 days. is this a genuine request?
-
I am having trouble with scrollbars in netbeans 5.5.1
I have had trouble getting a scrollbar working in netbeans 5.5.1 because the code is not all self written the new 5.5.1 platform takes away the need to write as much code. As a result the books that I am using as a reference does not work. Can anybod
-
New iPhone 5, home button almost never works. I occasionally get Siri (which isn't helpful) but mostly have to restart the phone to get out of whatever app I'm in. ANNOYING!!!