Error depolying application to OC4J
Hi I get the following error while deploying my application to OC4J
11/04/14 10:18:33 WARNING: Application.setConfig Application: WCMS65 is in failed state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: Error generating wrappers for file:/C:/oc4j_extended_101350/j2ee
/home/applications/WCMS65/WCMS65.jar: Error instantiating compiler: Web service artifact generation failed:java.lang.RuntimeExcept
ion: generator error: generator error: can't create directory: C:\oc4j_extended_101350\j2ee\home\application-deployments\WCMS65\WC
MS65\_Cim6212451602603868037\0\java\util\List<com\prologic\cms\database\generated
11/04/14 10:18:33 oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Application: WCMS65 is in failed
state as initialization failed
11/04/14 10:18:33 at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:779)
11/04/14 10:18:33 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:273)
11/04/14 10:18:33 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:100)
11/04/14 10:18:33 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
11/04/14 10:18:33 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
11/04/14 10:18:33 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:2
98)
11/04/14 10:18:33 at java.lang.Thread.run(Thread.java:619)
Any ideas on how to solve it highly appreciated
Hi Debu,
Thanks for your interest. I did, in fact, rebuild my app before trying
to deploy it -- I re-compiled all the java classes using the target
JDK version on the target machine, and re-built the JAR and EAR files.
Yes, I suppose I could try what you suggest, but as I stated in my
original post, I remember seeing this same problem in one of the
other OC4J/Orion forums, and was sort of hoping that someone would
be able to help me locate it.
In any case, it's not really urgent and in the meantime I am continuing
my development on SUN under Solaris 7 with OC4J version 1.0.2.2
and JDK version 1.2.2_05a.
Thanks again,
Avi.
Similar Messages
-
Errors on application.log (OC4J)
4/7/04 9:39 AM unportal: com.evermind.server.http.NotFoundServlet: init
4/7/04 9:43 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:43 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:43 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:46 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:47 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:47 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipe
4/7/04 9:47 AM unportal: JspServlet: unable to dispatch to requested page: Exception:com.evermind.
server.http.HttpIOException: Broken pipecheckout the following post as this seemed to have a similar problem
http://forums.ni.com/t5/Measurement-Studio-for-NET/Tagsrv-exe-C-Runtime-Error-When-Shutting-Down-PC/...
Regards
Ray Farmer -
Error accessing web application in OC4J-reg.
Hi All,
We deployed a web application into oc4j 903.
We got the ERROR 1 when trying to access the application. Then we replaced the jaxb-rt-1.0-ea.jar & jaxp.jar in oc4j with the latest
version from jwsdk1.1. Then we got the ERROR 2. This error is thrown because it is trying to use JXDocumentBuilderFactory from
xmlparserv2.jar in oc4j instead of DocumentBuilderFactory in jaxp.jar. Then we tried to uncomment the tag "<web-app-class-loader
search-local-classes-first="true" include-war-manifest-class-path="true" />" in orion-web.xml file. This ensures the use of jaxp.jar
instead of xmlparserv2.jar but we got the ERROR 3. Now we don't know how to proceed further. Are we going in the right direction or
are we missing anything?
I will appreciate if any of you can provide any inputs.
Please reply to me directly.
ERROR 1:
500 Internal Server Error
ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
at
ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Unknown Source)
Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
Initialization of modules mappings source failed.
at
ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
... 11 more
Caused by: javax.xml.bind.JAXBException: Provider
com.sun.xml.bind.ContextFactory could not be instantiated:
java.lang.IncompatibleClassChangeError: Implementing class - with
linked exception:[java.lang.IncompatibleClassChangeError: Implementing
class]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:118)
at
javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:233)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:153)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
at
ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:228)
... 12 more
ERROR 2:
500 Internal Server Error
ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading
failed.
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
at
ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Unknown Source)
Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException:
Initialization of modules mappings source failed.
at
ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
... 11 more
Caused by: java.lang.IllegalArgumentException
at
oracle.xml.jaxp.JXDocumentBuilderFactory.setAttribute(JXDocumentBuilderFactory.java:133)
at
ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:235)
... 12 more
ERROR 3:
500 Internal Server Error
ee.wm.jwlf.module.ModuleManagerException: Modules mappings loading failed.
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:54)
at ee.wm.jwlf.controller.MainServlet.getModuleManager(MainServlet.java:432)
at ee.wm.jwlf.controller.MainServlet.init(MainServlet.java:72)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:536)
Caused by: ee.wm.jwlf.module.mapping.ModuleMappingDAOException: Initialization of modules mappings source failed.
at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:255)
at ee.wm.jwlf.module.BaseModuleManager.init(BaseModuleManager.java:49)
... 11 more
Caused by: java.lang.ClassCastException
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139)
at ee.wm.jwlf.module.mapping.ModuleMappingJAXBDAOImpl.initializeSource(ModuleMappingJAXBDAOImpl.java:231)
... 12 more
Thanks & Regards,
YogaThanks Avi -- I did have a JDK versioning problem when first deploying in OC4J 9.0.4 -- but when I used JDK1.4.1 things worked. The problem appears to be that some classes are present in several different JAR files in the JDev libraries. Can anyone tell me about the dependencies out there between these JAR files? I can run the application in JDeveloper's OC4J container but cannot get it to deploy on 9.0.4 standalone.
1) I had this error for a bit... the problem was caused by bc4jmt.jar and mc4jct.jar in my MT deployment.
java.lang.IncompatibleClassChangeError
at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:418)
2) now I get this error -- looks like another version incompatibility. Can anyone shed light on this??
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.LinkageError, msg=Class oracle/jbo/ApplicationModule violates loader constraints
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532) -
Error message when starting OC4J in JDeveloper 10.1.3.1
Hello,
I am new to Java Server Pages and OC4J. When I try to run a simple JSP page in JDeveloper 10.1.3.1, I get the following error message (edited):
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
...\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
[waiting for the server to complete its initialization...]
Error parsing internal-settings.xml: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.j2ee.ws.server.codegen.ServerArtifactGenerator
Depending class: com.evermind.server.ejb.compilation.Compilation
Loader: oc4j:10.1.3
Code-Source: ./j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar
Diese Load wurde um system.root:0.0.0 mit der Methode Class.forName() eingeleitet.
Die fehlende Klasse ist in keiner Code-Source oder keinem Loader in dem System verfügbar.
at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at com.evermind.server.ejb.compilation.Compilation.generateWebServiceRefs (Compilation.java:1541) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.compilation.Compilation.compile (Compilation.java:189) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.compilation.Compilation.doGenerateCode (Compilation.java:264) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:898) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationStateRunning.initializeApplication (ApplicationStateRunning.java:217) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:413) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:314) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeSystemApplication (ApplicationServer.java:1557) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications (ApplicationServer.java:1544) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:974) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:131) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]
Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
Any idea, what's wrong with my configuration?
Thanks,
WolfgangTested JSP page in JDeveloper 10.1.3.1; JSP page does not generate an error.
Reinstall JDeveloper. -
Error message when starting OC4J after deploying
Hi, I hope someone can help me. I've been developing a J2EE project in JBuilder9 and OC4J 9.0.3. The problem occurs when starting OC4J after the application has been deployed. I'm using two MDBs and two Session Beans, one Stateless and the other one stateful. I'm using two topics with OJMS. I can access these topics from a standalone application, but when I try to lookup JNDI names from inside EJBs, I get a NamingException (name not found) Please I need some help
OC4J error:
D:\oc4j\j2ee\home>java -jar oc4j.jar
Node started with id=678845146
Error deploying file:/D:/oc4j/j2ee/home/applications/LogicaNegocio/LogicaNegocio
.jar homes: Topic has empty subscription name
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Error when executing standalone application client using EJBs:
javax.naming.NameNotFoundException: No resource named 'TopicConnecionFactories/TablaTopics' found in resource provider 'BeanProcesamientoMensajes'
This error doesn't appear when looking up that topic with a standalone application w/o using EJBs
Thanks in advance.make sure the datasource.xml in the config directory is right
for example
<data-source
class="com.evermind.sql.OrionCMTDataSource"
name="OracleDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="TopicConnecionFactories/TablaTopics"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="xx"
password="xx"
url="jdbc:oracle:thin:@172.16.113.2:1521:orcl"
inactivity-timeout="90"
/> -
Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
public Connection getConnection()throws RemoteException
InitialContext initctx = null;
Connection con = null;
try
initctx = initcontext.getContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
return con;
public String getDate()throws RemoteException
String Date=null;
try
con=getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
while(rs.next())
Date=rs.getString(1);
stmt.close();
con.close();
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
return Date;
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
<ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
</ejb-ref>
<ejb-ref>
<description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>country_code_desc</field-name>
</cmp-field>
<cmp-field>
<field-name>phone_format_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_code</field-name>
</cmp-field>
<cmp-field>
<field-name>active_date</field-name>
</cmp-field>
<cmp-field>
<field-name>date_created</field-name>
</cmp-field>
<cmp-field>
<field-name>active_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_phone_code</field-name>
</cmp-field>
<cmp-field>
<field-name>country_tax_percent</field-name>
</cmp-field>
<cmp-field>
<field-name>sort_order</field-name>
</cmp-field>
<cmp-field>
<field-name>date_modified</field-name>
</cmp-field>
<cmp-field>
<field-name>user_created</field-name>
</cmp-field>
<cmp-field>
<field-name>user_modified</field-name>
</cmp-field>
<resource-ref>
<description></description>
<res-ref-name>jdbc/ePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
private SessionContext context;
* Sets the context of the bean
* @param context The Bean's Context
public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
Context ctx = initcontext.getContext();
Connection con=null;
Vector records=new Vector();
int pageno=Integer.parseInt(pagenos);
int min=(pageno-1)*10;
int max=pageno*10;
int counter=0;
boolean recordsfound=false;
try
DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
con=remote.getConnection();
Statement stmt = con.createStatement();
ResultSet rscount =
stmt.executeQuery(countquery);
while(rscount.next())
int temp=rscount.getInt(1);
int pagecount=temp;
pagecount=pagecount/10;
if((temp%10)>0)
pagecount=pagecount+1;
records.addElement(""+pagecount);
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
counter++;
if(counter>min && counter<=max)
String row[]=new String[8];
recordsfound=true;
row[0]=rs.getString(1);
row[1]=rs.getString(2);
row[2]=rs.getString(3);
row[3]=rs.getString(4);
row[4]=rs.getString(5);
row[5]=rs.getString(6);
row[6]=rs.getString(7);
row[7]=rs.getString(8);
records.addElement(row);
con.close();
catch(Exception e)
System.out.println("Error in selecting Country
Code "+e);
throw new Exception("Error in selecting Country
Code "+e);
return(records);
public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
Context ctx = initcontext.getContext();
Double Sort_Order=null;
Double cntry_tax_prct=null;
if(sort_order!=null && sort_order.length()>0)
Sort_Order=new Double(sort_order);
if(country_tax_percent!=null &&
country_tax_percent.length()>0)
cntry_tax_prct=new Double(country_tax_percent);
String user_created=null;
Timestamp date_created=null;
Timestamp active_date=null;
String user_modified=null;
Timestamp date_modified=null;
try
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
active_date=date_created;
EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);
catch(Exception e)
System.out.println("Error in Creating COUNTRY
Code "+e);
throw new Exception("Error in Creating COUNTRY
Code "+e);
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
Statement st;
ResultSet rs;
ResultSetMetaData rmeta;
....%>
<%
try
Context ctx = initcontext.getContext();
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
con=dbremote.getConnection();
st=con.createStatement();
rs=st.executeQuery(strsqlquery);
rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!! -
Hi,
I am deploying a simple web application on OC4J which comes with 9iAS infraStructure installation. I changed server.xml, application.xml, default-web-site.xml & application.xml in the META-INF folder of my app but i couldn't access the appln after starting OC4J. I am attaching the code snippet that i added to these files. Could anyone please let me know if you could figure out the problem here..
Thanks,
Sathya.
j2ee/home/server.xml:
<application name="myapp" path="../applications/myapp" auto-start="true" />
j2ee/home/default-web-site.xml:
<web-app application="myapp" name="web" root="/myapp"/>
j2ee/home/application.xml:
<web-module id="myapp" path="../../home/applications/myapp"/>
myapp/META-INF/application.xml:
<module>
<web>
<web-uri>web</web-uri>
<context-root>/web</context-root>
</web>
</module>Hi,
I am facing a deployment problem with ear file.
I have prepared an EAR file using Oracle JDeveloper 9.0.5.1.
When I try to deploy it on Oracle 9iAS (Windows platform) it gets deployed successfully.
But when somebody tries to deploy it on Oracle 9iAS (Unix platform) she gets error mentioned below. I have checked the deployment descriptor (web.xml) and found that everything is alright, including the location (WEB-INF/web.xml).
Could anyone please help me find out the problem so that I can fix it?
ADMN-300158
Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: Jar file: /var/tmp/jar24324.tmp is missing its standard xml descriptor located at WEB-INF/web.xml
at oracle.ias.sysmgmt.deployment.j2ee.file.WarFile.<init>(WarFile.java:87)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.init(EarFile.java:561)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(EarFile.java:88)
at oracle.ias.sysmgmt.deployment.j2ee.file.EarFile.<init>(EarFile.java:74)
at oracle.ias.sysmgmt.deployment.j2ee.console.EarDeployerImpl.<init>(EarDeployerImpl.java:143)
at oracle.ias.sysmgmt.deployment.j2ee.console.WarDeployerImpl.<init>(WarDeployerImpl.java:99)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getWarDeployer(J2eeDeploymentImpl.java:220)
at oracle.ias.sysmgmt.deployment.j2ee.console.J2eeDeploymentImpl.getWarDeployer(J2eeDeploymentImpl.java:247)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.deployApp(DcmCmdLine.java:3728)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(DcmCmdLine.java:4072)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(DcmCmdLine.java:4771)
Thanks,
Aatash -
Error Creating Application Server Conn from Jdeveloper
Hi,
Im receiving following error while trying to create Jdeveloper connection:
Error while getting remote MBeanServer for url: ormi://myhostname.pk:20000/default:
Error reading application-client descriptor: Error communicating with server: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
javax.naming.AuthenticationException: Not authorized; nested exception is:
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized]
I have supplied the following credentials to create the connection.
ConnectionType: ApplicationServer10.1.3
username: oc4jadmin
password: welcome{assuming welcome as default password, password has not been changed since initial R12.1.2 install. I have also tried oracle as defult pwd}
Connect to: Single Instance
Hostname: myhostname
oc4jinstance: oacore
OPMN port: 6500
I have followed the following metalink note "How to Create an Application Server Connection from JDeveloper [ID 372989.1]" and have performed the following tests.
command: sh adopmnctl.sh satus -port
=========================
You are running adopmnctl.sh version 120.6.12010000.3
Checking status of OPMN managed processes...
myhostname:6500
command: sh adopmnctl.sh status -l
========================
You are running adopmnctl.sh version 120.6.12010000.3
Checking status of OPMN managed processes...
Processes in Instance:
---------------------------------------------------------------------------------------------------------+------
ias-component | process-type | pid | status | uid | memused | uptime | ports
---------------------------------------------------------------------------------------------------------+------
OC4JGroup:default_group | OC4J:oafm | 18277 | Alive | 658406017 | 116596 | 49:03:18 | rmi:25500,jms:24500,ajp:25000
OC4JGroup:default_group | OC4J:forms | 18206 | Alive | 658406016 | 111040 | 49:03:22 | rmi:20500,jms:23500,ajp:22000
OC4JGroup:default_group | OC4J:oacore | 18122 | Alive | 658406015 | 307376 | 49:03:32 | rmi:20000,jms:23000,ajp:21500
HTTP_Server | HTTP_Server | 18065 | Alive | 658406014 | 114908 | 49:03:13 | https1:4443,http1:8000
command: netstat -an |grep 6500
======================
tcp 0 0 127.0.0.1:6500 0.0.0.0:* LISTEN
tcp 0 0 10.10.50.6:6500 0.0.0.0:* LISTEN
Has any one faced similar problem. Please help!
Edited by: faanwar on Aug 18, 2010 11:00 AMTry changing the oc4jadmin password:
- stop oc4j
- edit system-jazn-data.xml and replace encrypted pw with !newpassword
- remove cache pw from securestore directory
- start oc4j
regards,
Bernhard Jongejan
http://bernhardjongejan.spaces.live.com -
10g EA - JSF Toturial - Error instantiating application
I worked throught the first portion of
Build J2EE Applications Using JDeveloper 10g and JSF
http://www.oracle.com/technology/obe/obe1013jdev/JSFapplications/BuildJ2EEAppsWithJSF.htm
Went to Run the welcome.jsp page and got the following message.
05/11/11 11:27:50 [SEVERE]: Error instantiating application at file:/C:/jdevstudio1013ea1/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/bc4j.ear: Unable to get ApplicationConfig for bc4j : Unable to find/read file META-INF/application.xml in C:\jdevstudio1013ea1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\applications\bc4j (META-INF/application.xml)
Project compiled fine.
This is the rest of the log. happened before error
Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
C:\jdevstudio1013ea1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
C:\jdevstudio1013ea1\jdk\bin\javaw.exe -ojvm -classpath C:\jdevstudio1013ea1\j2ee\home\oc4j.jar;C:\jdevstudio1013ea1\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=rgismiscom -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=172.*|*.rgis.com|localhost|127.0.0.1 -Dhttps.proxyHost=rgismiscom -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=172.*|*.rgis.com|localhost|127.0.0.1 -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 C:\jdevstudio1013ea1\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]I do not have the file. Here is what I have
Model -> Application Sources -> hr.model -> employee.java
Model -> Application Sources -> hr.model -> Employees.java
Model -> Application Sources -> hr.model -> login.java
View -> Application sources -> mypakage -> DataBindings.cpx
View -> Application sources -> Web Content -> css -> Blaf.css
View -> Application sources -> Web Content -> web-INF -> Faces-config.xml
View -> Application sources -> Web Content -> web-INF -> web.xml
View -> Application sources -> Web Content -> web-INF\lib -> adf-faces-impl.jar
View -> Application sources -> Web Content -> web-INF\lib -> custComps.jar
View -> Application sources -> Web Content -> web-INF\lib -> jsf-impl.jar
View -> Application sources -> Web Content -> Hello.jsp
View -> Application sources -> Web Content -> Welcome.jsp -
Database connection error on launch of OC4j
(jdk1.5.0_05/jdeveloper 10.1.3..0.3.3412)
I have a working database connection in the Connection Navigator, but when I try to run my app in OC4j I get:
06/01/09 14:06:32 Error instantiating application 'current-workspace-app' at file:/C:/local/jdevstudiobase1013/jdev/mywork/office2/office2-oc4j-app.xml: Error initializing ejb-modules:
Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
I'm very new to all this, but I don't think this is something very silly I've omitted.
Thanks in advance.Is the JDBC connection with the Oracle dataabse?
The Network Adapter exception is caused because:
1. The database host name, port number, or database instance name is wrong.
2. The database TNSListener has not been started. The TNSListener may be started with the lsnrctl utility.
C:\>lsnrctl start -
Error deploying application from JDEVELOPER
I am getting following in my log when I try to deploy application from my JDeveloper 10g to Application Server 10g. Application is deployed correctly but the status is never reflected in the Jdeveloper log.
Please help.
---- Deployment started. ---- Mar 5, 2004 8:30:16 AM
Target platform is Oracle9i Application Server (CCA_DEV_01_MIDT_OC4J_CCABID).
Wrote WAR file to C:\mydata\Dev\bid\deploy\ccabid_war.war
Wrote EAR file to C:\mydata\Dev\bid\deploy\ccabid_ear.ear
Invoking DCM servlet client...
C:\j2sdk1.4.1_05\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\JDev905\jdev\lib\oc4j_remote_deploy.jar http://cca-dev-01.correctionscorp.com :1811/Oc4jDcmServletAPI/ ias_admin **** redeploy /opt/oracle/product/904midt C:\mydata\Dev\bid\deploy\ccabid_ear.ear ccabid OC4J_CCABID
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command redeploy /opt/oracle/product/904midt C:\mydata\Dev\bid\deploy\ccabid_ear.ear ccabid OC4J_CCABID
Command = REDEPLOY
Reading application's ear file
Ear file was successfully read
Opening connection to Oc4jDcmServlet
Setting userName to ias_admin
Sending command to DCM servlet
HTTP response code = 200, HTTP response msg = OK
Command was successfully sent to Oc4jDcmServlet
Receiving session id from servlet to check command status
Session id = 0a010146713c603e7aba452414fab32c1b98f475320
Please, wait for command to finish...
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=0a010146713c603e7aba452414fab32c1b98f475320
Checking command status
HTTP response code = 200, HTTP response msg = OK
Command has not finished yet
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=0a010146713c603e7aba452414fab32c1b98f475320
Checking command status
HTTP response code = 200, HTTP response msg = OK
Command has finished
Receiving command exit value
Receiving command output
**** No output was received from command
Closing connection to Oc4jDcmServlet
DCM command completed successfully.
Output:
Exit status of DCM servlet client: 0
Elapsed time for deployment: 1 minute, 15 seconds
---- Deployment finished. ---- Mar 5, 2004 8:31:31 AMI have the same problem ,but I deployed the application to a standalone oc4j ,I got the following error message,C:\OC4J\j2ee\home>java -jar oc4j.jar
04/03/13 15:47:28 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
04/03/13 15:57:44 Notification ==> Application Deployer for servletDemo STARTS [
2004-03-13T15:57:44.000CST ]
04/03/13 15:57:44 Notification ==> Undeploy previous deployment
04/03/13 15:57:44 Notification ==> Copy the archive to C:\OC4J\j2ee\home\applica
tions\servletDemo.ear
04/03/13 15:57:44 Notification ==> Unpack servletDemo.ear begins...
04/03/13 15:57:44 Auto-unpacking C:\OC4J\j2ee\home\applications\servletDemo.ear.
.. done.
04/03/13 15:57:44 Notification ==> Unpack servletDemo.ear ends...
04/03/13 15:57:44 Notification ==> Initialize servletDemo.ear begins...
04/03/13 15:57:44 Auto-unpacking C:\OC4J\j2ee\home\applications\servletDemo\serv
letDemo.war... done.
04/03/13 15:57:44 Copying default deployment descriptor from archive at C:\OC4J\
j2ee\home\applications\servletDemo/META-INF/orion-application.xml to deployment
directory C:\OC4J\j2ee\home\application-deployments\servletDemo...
04/03/13 15:57:44 Notification ==> Initialize servletDemo.ear ends...
04/03/13 15:57:44 Notification ==> Initialize servletDemo begins...
04/03/13 15:57:44 Notification ==> Initialize servletDemo ends...
oracle.oc4j.admin.internal.DeployerException: C:\OC4J\j2ee\home\config\server.xm
l (¾Ü¾ø·ÃÎÊ¡£)
at oracle.oc4j.admin.internal.ApplicationDeployer.storeConfig(Applicatio
nDeployer.java:421)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:129)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.deploy(DefaultApplicationServerAdministrator.java:278)
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:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:536)
---- Embedded exception
java.io.FileNotFoundException: C:\OC4J\j2ee\home\config\server.xml (¾Ü¾ø·ÃÎÊ¡£)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at com.evermind.xml.XMLConfig.storeToURL(XMLConfig.java:439)
at com.evermind.xml.XMLConfig.store(XMLConfig.java:426)
at com.evermind.server.ServerComponent.store(ServerComponent.java:794)
at com.evermind.server.ServerComponent.store(ServerComponent.java:766)
at oracle.oc4j.admin.internal.ApplicationDeployer.storeConfig(Applicatio
nDeployer.java:418)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:129)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:73)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.deploy(DefaultApplicationServerAdministrator.java:278)
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:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:536)
04/03/13 15:57:44 Notification ==> Application Deployer for servletDemo FAILED:
C:\OC4J\j2ee\home\config\server.xml (¾Ü¾ø·ÃÎÊ¡£) [ 2004-03-13T15:57:44.500CST ]
04/03/13 15:57:44 Notification ==> Application UnDeployer for servletDemo STARTS
[ Sat Mar 13 15:57:44 CST 2004 ]
04/03/13 15:57:44 Error updating file:/C:/OC4J/j2ee/home/config/server.xml: C:\O
C4J\j2ee\home\config\server.xml (¾Ü¾ø·ÃÎÊ¡£)
oracle.oc4j.admin.internal.DeployerException: Unable to remove web bindings for
application servletDemo: C:\OC4J\j2ee\home\config\http-web-site.xml (¾Ü¾ø·ÃÎÊ¡£)
at oracle.oc4j.admin.internal.ApplicationUnDeployer.doUndeploy(Applicati
onUnDeployer.java:84)
at oracle.oc4j.admin.internal.UnDeployerBase.execute(UnDeployerBase.java
:52)
at oracle.oc4j.admin.internal.ApplicationDeployer.undo(ApplicationDeploy
er.java:146)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:89)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.internalDeploy(DefaultApplicationServerAdministrator.java:378)
at com.evermind.server.administration.DefaultApplicationServerAdministra
tor.deploy(DefaultApplicationServerAdministrator.java:278)
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:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:536)
04/03/13 15:57:44 Notification ==> Application UnDeployer for servletDemo FAILED
: Unable to remove web bindings for application servletDemo: C:\OC4J\j2ee\home\c
onfig\http-web-site.xml (¾Ü¾ø·ÃÎÊ¡£) [ Sat Mar 13 15:57:44 CST 2004 ]
ÒÔÉÏÊÇÎÒÓÃJDeveloper 10gÏòStandaloneOC4JÖÐDeployÒ»¸ö¼òµ¥µÄJ2EE Web³ÌÐòµÄʱºò,OC4J·µ»ØµÄ´íÎóÐÅÏ¢,ÎҵĻúÆ÷ÊÇWindowns 2003 Server jdk 1.4»¹Çë¸ßÊÖÖ¸½Ì. -
How to do Local setup for Retail Invoice matching Application using OC4J
Hello ,
I am trying to configure Retail invoice matching application to local,Server i am using is Oracle OC4J Standalone Server 10.1.3.n at localhost..
I have imported the application code to eclipse and trying to add oc4j server to my app, but its giving me error saying "*Server Oracle OC4J Standalone Server 10.1.3.n at localhost failed to start*."
I am not getting the issue. need to resolve it ASAP.
Any help would be grateful.
Thanks in Advance
Edited by: Akash11 on Oct 2, 2012 10:32 PMIf you can't set up JBoss on your local machine, then you can create a simple HTTP server that imitates the JBoss server at least with respect to the HTTP connections that you'd be sending to it.
For example, on a project I'm working on recently, I set up a HTTP server using Python (the standard library comes with a simple HTTP server) with some extensions to mimic our Java-based server. It's actually pretty simple. Python's great for that sort of thing.
But if you don't want to use Python you could, set up Apache, and extend it with some CGI scripts, etc. Just use whatever is available to you that's quick and extensible and which hopefully you already know how to use. -
Issues with deploying BC4J/JSP applications on OC4J
To everyone who's been having problems deploying BC4J/JSP applications to OC4J.
We are aware that you're having problems deploying to OC4J, and we're working on them. OC4J was not available in time for us to add support for OC4J deployment to the JDeveloper 3.2.3 release. In addition there are some bugs in the first release of OC4J that have an impact on BC4J applications. This note describes the issues, and how we plan to address them.
Issue 1: Classpath problems
People have been getting "class not found" or "properties file not found" errors when they try to run their JSP. The answer is to make sure that all relevant archives and your JSP's .properties file are in the OC4J classpath - there's a note addressing the .properties file problem at http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html. In general though, setting up the classpath can be tricky.
Issue 2: JSP TAG NOT RELEASED ON END TAG. SAME TAG IS REUSED.
This issue affects JSP pages whose behaviour relies on a tag instance being cleaned up as a result of release() being called.
Your tag will not be released, and subsequent instances of the tag will reuse the first instance, rather than instantiating a new
one.
Issue 3:JSP SCRIPTABLE VARIABLE NULL
A scriptable variable set in a tag cannot be accessed by a scriptlet. For example, this JSP code will throw a
NullPointerException, because the scriptlet cannot access the value of resultRow:
<jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
<%
session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
%>Workaround: Add a line of code at the beginning of the scriptlet to explicitly get the variable's value from the page context, for
example:
<jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
<%
resultRow = (oracle.jbo.Row)pageContext.findAttribute("resultRow");
session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
%>
What we plan to do
To address issue 1, we're currently testing a utility that installs the BC4J runtime libraries to OC4J, and provides a script to start OC4J with the correct classpath. We plan to post this by the end of this week, along with instructions for deploying a BC4J application to OC4J; deployment will be a lot simpler after running the utility.
To address issues 2 and 3, we're working on a second utility that installs BC4J runtime and provides a fix to the JSP compiler. We plan to post this second utility by the end of next week.
We do apologise for the problems you're having; please bear with us as we work on making it easier for you to deploy BC4J applications to OC4J.
Thanks
BlaiseHi, I have been trying desparately to deploy
a simple example JDeveloper application for months and months.
I HAVE NEVER BEEN SUCCESSFUL IN DEPLOYING ANYTHING.
I don't know much about webservers and I am relying
on the instructions from JDeveloper help and this website.
I have already tried Apache, and WebLogic
because there are instructions in the JDev help.
No luck.
Now I am trying to use OC4J on 9ias because there are instructions.
I have read the instructions about how to install a BC4J
app on OC4J about 25 times, but I can't get this thing to work.
It works fine inside of JDeveloper.
I create a BC4J project using the scott
schema (just the dept and emp tables).
Then I create an empty project for my JSP client.
I choose JSP Application from the web
objects and it connects to my BC4J project.
As I say, when I run it in JDeveloper, there is no problem.
In the instructions for installing BC4J
in OC4J, it first says install JDev 3.2.3 and OC4J.
This is done, and it tested fine.
Then it says to install the deployment software.
No problem.
But when I deploy the app according to the instructions,
it just hangs (like Rick Wang's program did).
The main.jsp page loads and displays correctly,
but when I click on the links to the DeptView.jsp
or EmpView.jsp it just hangs.
Here is the entire batch file I'm using
to start OC4J: cd c:\oracle_9ias\j2ee\home
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\default-web-app\lib
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\classes
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\classes12.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\xmlparserv2.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jdev-rt.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbojdbcpatch.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\connectionmanager.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbohtml.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboimdomains.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordim817.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordvir817.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordhttp.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbomt.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodomorcl.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboremote.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jndi.jar
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodatum12.zip
set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\al_BC4J.jar
java -cp C:\oracle_9ias\j2ee\home\orion.jar;%CLASSPATH%
com.evermind.server.ApplicationServer
pause
The file al_BC4J.jar contains my application.properties file
and my connections.properties file, as well as my business components.
All of the files referenced in my classpath are
present in my c:\oracle_9ias\j2ee\home\lib directory.
I noticed that Raghu's classpath contains a file called jdev.jar
So does the classpath of another fellow who says
he was successful in deployment (his name is Jeffrey Jackson).
I searched my JDev_3.2.3 for this file and found it nowhere.
I also searched my OC4J home and my 9iAS for this file and
found it nowhere.
It is nowhere on my C:\.
Is this file necessary?
I will also try removing my application.properties file
and my connections.properties file from my BC4J .jar file
and put them in a separate .jar file at the root level (as Raghu did).
However, Jeffery Jackson did not do this and says he was
successfull in deployment.
***DO I NEED TO JAR UP ANY OF MY THE FILES FROM the JSP
FOLDER IN JDevHome\myhtml???***
***or place them in the classpath?***
I have read over all of the discussions at: http://technet.oracle.com:89/ubb/Forum2/HTML/008232.html
and http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html
many, many times.
Can anyone help me? -
Error creating application server Conn
In jdeveloper Early Access the test connection is sucess(same configuration), but in 10.1.3.1 version ,generate this erro. Help me please.
Error while getting remote MBeanServer for url: ormi://java1:23791/default:
Error reading application-client descriptor: Error communicating with server: <no message>oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:161)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: oracle.oc4j.security.KeyExchange.getSecretKey(KeyExchange.java:136)
oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:152)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: oracle.oc4j.security.KeyExchange.createKeyAgreement(KeyExchange.java:202)
oracle.oc4j.security.KeyExchange.getKeyAgreement(KeyExchange.java:189)
oracle.oc4j.security.KeyExchange.getSecretKey(KeyExchange.java:132)
oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:152)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: Incompatible parameters; nested exception is:
javax.naming.CommunicationException: <no message>oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:161)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: oracle.oc4j.security.KeyExchange.getSecretKey(KeyExchange.java:136)
oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:152)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: oracle.oc4j.security.KeyExchange.createKeyAgreement(KeyExchange.java:202)
oracle.oc4j.security.KeyExchange.getKeyAgreement(KeyExchange.java:189)
oracle.oc4j.security.KeyExchange.getSecretKey(KeyExchange.java:132)
oracle.oc4j.security.ExchangingEncryptor.getEncryptedValue(ExchangingEncryptor.java:152)
com.evermind.server.rmi.RMIProtocol$SecureCredentials.send(RMIProtocol.java:246)
com.evermind.server.rmi.RMIProtocol.sendCredentials(RMIProtocol.java:95)
oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:91)
oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:609)
com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:153)
com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:137)
com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:251)
com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
oracle.oc4j.deployment.ApplicationClientResourceFinder.lookupResourceFinder(ApplicationClientResourceFinder.java:101)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getFinder(ApplicationClientResourceFinder.java:123)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getLocation(ApplicationClientResourceFinder.java:75)
oracle.oc4j.deployment.ApplicationClientResourceFinder.getEjbBinding(ApplicationClientResourceFinder.java:38)
com.oracle.naming.J2EEContext.addEJBReferenceEntries(J2EEContext.java:515)
com.oracle.naming.J2EEContext.create(J2EEContext.java:97)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getApplicationContext(ApplicationClientInitialContextFactory.java:124)
oracle.j2ee.naming.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:197)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.fetchMBeanServerEjbRemote(CoreRemoteMBeanServer.java:465)
oracle.oc4j.admin.jmx.client.CoreRemoteMBeanServer.<init>(CoreRemoteMBeanServer.java:160)
oracle.oc4j.admin.management.mejb.MEjb.<init>(MEjb.java:117)
oracle.oc4j.admin.management.mejb.MEjb.getMBeanServer(MEjb.java:158)
oracle.oc4j.admin.management.mejb.MEjbFactory.getManagement(MEjbFactory.java:54)
oracle.oc4j.admin.deploy.spi.ConnectedDeploymentManagerBase.<init>(ConnectedDeploymentManagerBase.java:218)
oracle.oc4j.admin.deploy.spi.Oc4jDeploymentManager.<init>(Oc4jDeploymentManager.java:70)
oracle.oc4j.admin.deploy.spi.factories.Oc4jDeploymentFactory.getDeploymentManager(Oc4jDeploymentFactory.java:130)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper._getDeploymentManager(J2EEConnectionWrapper.java:182)
oracle.jdevimpl.cm.dt.J2EEConnectionWrapper.testPresentation(J2EEConnectionWrapper.java:111)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI.testConnectionImpl(TestConnectionPanelUI.java:202)
oracle.jdeveloper.cm.dt.wizard.TestConnectionPanelUI$1.doWork(TestConnectionPanelUI.java:158)
oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
java.lang.Thread.run(Thread.java:595)
caused by: Incompatible parameters [Root exception is oracle.oc4j.security.ExchangingEncryptor$EncryptionException]Hi,
Did you find any solution or reason why such error occurred? I am facing the same.
Thanks,
Ankit -
Error reading application-client.xml,Urgent
Hi ,
I am getting this error,can anyone suggest something for this ?
found error javax.naming.NamingException: Error reading application-client descriptor: No location specified and no suitable instance of the type 'com.crm.Dao.Customer.CustomerData' found for the ejb-ref CustomerData
Waiting for reply,
Regards,
MandarIn the client deployment under META-INF you should have the application-client.xml.
Can you CustomerData - home,remote etc. be seen from the clientside classpath?
Have they been deployed to OC4J?
Looks like it is not being found either on the server or on the client.
Cheers,
Ashok
Maybe you are looking for
-
Prevent to create billing document in a closed period
hello i want to know what is the best way to use transaction VF01 in SD for a billing date which is in an open period in Finance today i have many users which are creating billing documents for closed periods and this is stuck in VFX3 is there any wa
-
HELP ME T23 does not boot anymore after installing a Lenovo update. Any idea?
Hi, I installed the updates and later I shut down the laptop as requested. Later that day I wanted to start it again but nothing happend other than the little round green light next to the switch button goes on. The monitor stays black. I removed the
-
Vertical positioning of spry menu
I have created a horizontal spry menu in Dreamweaver CS3. It is positioned directly below a header that appears on each page of the site. Currently, there is a space between the header and the spry menu, which I cannot remove. I would like the menu t
-
Greetings Is it possible to have a common Appraisal template in all the systems. The reason being ECM needs a template number and currenrly all the three systems numbers are different. Regards, Vivek
-
Need script to show hidden field if number =568845
Hi All Using Acrobat 9.1 Pro on iMac with OS 10.6.8 I am working on a fillable form and need a script to show a hidden field when a button is clicked. I have set up a number field to type in a number and the hidden field is"text1" Now I need a script