Servlet deployment in oc4j
How do you define system property with OC4J. OAS versions allow you to do that. I have servlet 2.1 compatible application that I want to deploy into oc4j without code changes. Any ideas?
Or if you don't want to use property files you can use the ServletContext class which has two methods:
public String ServletContext.getInitParameter(String name)
public Enumaration ServletContext.getInitParameterNames()
The init parameters for a context are specified in the web.xml deployment descriptor for the context using the <context-param> tag. Example:
<web-app>
<context-param>
<param-name>rmihost</param-name>
<param-value>localhost</param-value>
</context-param>
<context-param>
<param-name>rmiport</param-name>
<param-value>1099</param-value>
</context-param>
</web-app>
To find the context init parameters in a servlet you can do:
try {
ServletContext context = getServletContext();
String rmihost = context.getInitParameters("rmihost");
int rmiport = Integer.parseInt(context.getInitParameter("rmiport"));
} catch (Exception e) {
}
Similar Messages
-
Applet works in JDeveloper, but not when deployed to OC4J
I am working on an applet version of the BI Beans java client application. It works fine when running in JDeveloper (applet viewer), but fails when deployed to OC4J. The applet shows a red X, with a message in the status bar saying "Loading Java Applet Failed...". Contents of java console are as follows:
java.lang.NoClassDefFoundError: oracle/dss/selection/step/Step
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any one have any ideas how to chase this one down?
Here is the message that JDeveloper shows when it runs the applet. I have gone thru this and ensured that all these references are selected in my .deploy settings:
C:\JDeveloper\jdk\bin\javaw.exe -ojvm -Xbootclasspath/a:C:\dev\jdev\Workspace1\TestClientApp\classes;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddinsrt.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biamlocal.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidataclt.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatacmn.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatasvr.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biext.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidata-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddins-nls.zip;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\LW_PfjBean.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\share.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4-nls.jar;
C:\JDeveloper\jdev\lib\ext\..\..\infobus\lib\infobus.jar;
C:\JDeveloper\BC4J\lib\bc4jmt.jar;C:\JDeveloper\BC4J\lib\collections.jar;
C:\JDeveloper\BC4J\lib\bc4jct.jar;
C:\JDeveloper\lib\xmlparserv2.jar;
C:\JDeveloper\jlib\jdev-cm.jar;
C:\JDeveloper\j2ee\home\lib\jndi.jar;
C:\JDeveloper\jlib\regexp.jar;
C:\JDeveloper\jlib\share.jar;
C:\JDeveloper\jlib\uix2.jar;
C:\JDeveloper\jdbc\lib\classes12.jar;
C:\JDeveloper\jdbc\lib\nls_charset12.jar;
C:\JDeveloper\j2ee\home\lib\ojsp.jar;
C:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;
C:\JDeveloper\j2ee\home\oc4j.jar;
C:\JDeveloper\j2ee\home\lib\servlet.jar;
C:\JDeveloper\jdev\lib\ojc.jar;
C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\olap_api_92.jar;
C:\JDeveloper\jdev\lib\jdev-rt.jar;
C:\JDeveloper\BC4J\lib\bc4jhtml.jar;
C:\JDeveloper\BC4J\lib\datatags.jar;
C:\JDeveloper\BC4J\lib\bc4juixtags.jar;
C:\JDeveloper\BC4J\lib\bc4j_jclient_common.jar
Any assistance would be appreciated.
s.l.i have the same problem
i cant load my applet on OC4J , i am wondering know how Oracle canot solve this problem -
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
How to attach a new servlet on my OC4J instance ?
Hi there
How to attach a new servlet on my OC4J instance ?
Regards
DenYou can deploy your using JDeveloper:
http://download.oracle.com/otndocs/tech/ias/portal/files/RG/OBE/deployToAppServer/lesson_Deployment.htm
Or you can use the Application Server Control:
http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/deploy_em003.htm
Maurits -
Problem:deployment to oc4j on remote host
I created a servlet application by jdeveloper.Now I want
to deploy it to the oc4j on oracle9ias which is installed
on the other host.I have post a topic about it and get some suggestions by Raghu R Kodali.I followed the steps
in the http://otn.oracle.com/products/jdev/howtos/appservers/deployias.html#connection
but after i have created the connection named "conn1"
and tested it successfully,I get some information when I select "deploy to conn1" .The information :
--- Deployment started. ---- 2003-1-23 12:26:50
Wrote WAR file to E:\Oradev\jdev\mywork\test\test\test.war
Wrote EAR file to E:\Oradev\jdev\mywork\test\test\test.ear
Invoking DCM servlet client...
E:\Oradev\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar E:\Oradev\jdev\lib\oc4j_remote_deploy.jar http://server.oracle9i.com:1810/Oc4jDcmServletAPI/ ias_admin **** redeploy d:\ora9ias E:\Oradev\jdev\mywork\test\test\test.ear test oc4j_home
Initializing log
Servlet interface for OC4J DCM commands
Command timeout defined at 600 seconds
Executing DCM command...
Executing command redeploy d:\ora9ias E:\Oradev\jdev\mywork\test\test\test.ear test oc4j_home
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 = 16fa0e87ea464c53827acc9b81c9086a
Please, wait for command to finish...
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=16fa0e87ea464c53827acc9b81c9086a
Checking command status
HTTP response code = 500, HTTP response msg = Internal Server Error
#### HTTP response is NOT ok
Waiting for 30 seconds and trying again...
Command has not finished yet
Checking command status...
Setting userName to ias_admin
Setting Cookie to JSESSIONID=16fa0e87ea464c53827acc9b81c9086a
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 did not complete successfully (-1)
#### HTTP return code was -1
Exit status of DCM servlet client: -1
Elapsed time for deployment: 47 seconds
#### Deployment incomplete. #### 2003-1-23 12:27:37
Please help me !
My email: [email protected]Did you try after restarting the iAS server?
-
Oracle BI Publisher Deployment in OC4J Error
Please advise what is happening to my Server.
I have BIpublisher deployed in OC4J 10.1.3.1 on Linux Red Hat Environment. Publisher is integrated into our OBIEE sitting on the Same Server.
After redeploying the xmlpServer.ear onto OC4J, I am not able to connect to Publisher from Presentation Servers (10.1.3.4.0).
Below is the Error Message:
Exception java.lang.Exception: /app/OracleBI/server/Bin/libperfjni.so: /app/OracleBI/server/Bin/libperfjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
java.lang.Exception: /app/OracleBI/server/Bin/libperfjni.so: /app/OracleBI/server/Bin/libperfjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at oracle.bi.analytics.management.monitoring.PerfDllJNI.<init>(PerfDllJNI.java:117)
at oracle.bi.analytics.management.monitoring.AppPerfMon.<init>(AppPerfMon.java:87)
at oracle.bi.analytics.management.monitoring.PerfmonThr.initializePerfInterface(PerfmonThr.java:65)
at oracle.bi.analytics.management.monitoring.PerfmonThr.<init>(PerfmonThr.java:47)
at oracle.bi.analytics.management.Agent.registerPerformanceMBeans(Agent.java:87)
at oracle.bi.analytics.management.Agent.registerMBeans(Agent.java:55)
at oracle.bi.analytics.management.Oc4jAgent.registerMBeans(Oc4jAgent.java:48)
at oracle.bi.analytics.management.Oc4jAgent.main(Oc4jAgent.java:26)
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:585)
at com.evermind.server.ServerApplicationClientLauncherImpl.launch(ServerApplicationClientLauncherImpl.java:93)
at com.evermind.server.ServerApplicationClientLauncherImpl.run(ServerApplicationClientLauncherImpl.java:74)
at java.lang.Thread.run(Thread.java:595)
09/09/29 08:31:12 java.lang.Exception: Exception in constructing PerfDllJNI for PERF configuration file: /app/OracleBI/systemsmanagement/resources/performance/perf_OracleBIServer.xml
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.AppPerfMon.<init>(AppPerfMon.java:97)
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.PerfmonThr.initializePerfInterface(PerfmonThr.java:65)
09/09/29 08:31:12 at oracle.bi.analytics.management.monitoring.PerfmonThr.<init>(PerfmonThr.java:47)
09/09/29 08:31:12 at oracle.bi.analytics.management.Agent.registerPerformanceMBeans(Agent.java:87)
09/09/29 08:31:12 at oracle.bi.analytics.management.Agent.registerMBeans(Agent.java:55)
09/09/29 08:31:12 at oracle.bi.analytics.management.Oc4jAgent.registerMBeans(Oc4jAgent.java:48)
09/09/29 08:31:12 at oracle.bi.analytics.management.Oc4jAgent.main(Oc4jAgent.java:26)
09/09/29 08:31:12 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09/09/29 08:31:12 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09/09/29 08:31:12 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09/09/29 08:31:12 at java.lang.reflect.Method.invoke(Method.java:585)
09/09/29 08:31:12 at com.evermind.server.ServerApplicationClientLauncherImpl.launch(ServerApplicationClientLauncherImpl.java:93)
09/09/29 08:31:12 at com.evermind.server.ServerApplicationClientLauncherImpl.run(ServerApplicationClientLauncherImpl.java:74)
09/09/29 08:31:12 at java.lang.Thread.run(Thread.java:595)
2009-09-29 08:31:12.092 ERROR Could not load/parse file: /app/OracleBI/systemsmanagement/resources/performance/perf_OracleBIServer.xml
09/09/29 08:31:12 Could not initialize the Performance MBeans
09/09/29 08:31:14 xdo.server.config.dir = null
09/09/29 08:31:14 BI Beans Graph version [9.9.9.40.4350]
09/09/29 08:31:15 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
If I try to login to BI Publisher by typing in the xmlpserver URL directly, I get the following error:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
Any help to Solve this problem will do. This all happened after redeploying the .EAR file.
More Details below:
extract from application.log under application deployments:
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:00.403 xmlpserver: Error initializing servlet
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2957)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:00.404 xmlpserver: Servlet error
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109)
at org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73)
at org.apache.axis.server.AxisServer.getServer(AxisServer.java:73)
at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185)
at org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2957)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
09/10/05 11:31:09.867 xmlpserver: Servlet error
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/ErrorHandler class
at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
at oracle.cabo.share.config.ApplicationConfigurationParser.createInstance(Unknown Source)
at oracle.cabo.share.config.ApplicationConfiguration.getInstance(Unknown Source)
at oracle.cabo.share.config.Configuration.getConfiguration(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext.__getConfiguration(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getConfiguration(Unknown Source)
at oracle.cabo.ui.RootRenderingContext._getLookAndFeelManager(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getLookAndFeel(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext._getContentType(Unknown Source)
at oracle.cabo.ui.ServletRenderingContext.prepareResponse(Unknown Source)
at oracle.apps.xdo.servlet.ui.UIUtils.renderError(UIUtils.java:1142)
at login.jspService(_login.java:368)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)sorry, I think I'm mistaken. That error is what it says, but it's not going to stop publisher working (it's when systemsmanagement is initialising, so perfmon may not be available).
The error related to Publisher I'd look at is from application.log:
09/10/05 11:31:00.403 xmlpserver: Error initializing servlet
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource classUnfortunately I have no idea what this means.
Maybe try redeploying xmlpublisher, or using the latest version (10.1.3.4.1)?
Does Presentation Services work, i.e. can you log in to Dashboards and Answers? -
Deploying an OC4J Application fails
We have created a new OC4J container and are getting errors when trying to deploy a OC4J Application.
We are running 9iAS 9.0.2.2 and are using OEM to do the deployment.
After selecting our .ear file we get no Web Modules on the 'URL Mappings for Web Modules' step (number 3 of 8), should one be found if .ear file is okay ?
After getting to the end of the steps and clicking deploy we get the following error:
>>>>>>>>>>
Deployment failed: Nested exception Root Cause: Error loading archive: Unknown assembly tag in file:/db001/app/oracle/product/9iAS9020_IFS/j2ee/OC4J_Ereg/applications/ereg/: <web-module>; nested exception is: java.lang.InstantiationException: Error loading archive: Unknown assembly tag in file:/db001/app/oracle/product/9iAS9020_IFS/j2ee/OC4J_Ereg/applications/ereg/: <web-module>. Error loading archive: Unknown assembly tag in file:/db001/app/oracle/product/9iAS9020_IFS/j2ee/OC4J_Ereg/applications/ereg/: <web-module>; nested exception is: java.lang.InstantiationException: Error loading archive: Unknown assembly tag in file:/db001/app/oracle/product/9iAS9020_IFS/j2ee/OC4J_Ereg/applications/ereg/: <web-module>
>>>>>>>>>>
The application.wml file in the .ear file is
>>>>>>>>>>
<?xml version="1.0" ?>
<!DOCTYPE orion-application (View Source for full doctype...)>
- <!--
The global application config that is the parent of all the other
applications in this server.
-->
- <orion-application autocreate-tables="true" autodelete-tables="false" treat-zero-as-null="true">
<web-module id="defaultWebApp" path="../default-web-app" />
<persistence path="../persistence" />
- <!--
Path to the libraries that are installed on this server.
These will accesible for the servlets, EJBs etc
-->
<library path="../lib" />
<principals path="./principals.xml" />
- <log>
<file path="/db001/app/ereg/log/global-application.log" />
</log>
<data-sources path="./data-sources.xml" />
- <mail-session location="mail/MailSession" smtp-host="localhost">
<property name="mail.transport.protocol" value="smtp" />
<property name="mail.smtp.from" value="[email protected]" />
</mail-session>
- <namespace-access>
- <read-access>
- <namespace-resource root="">
- <security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</read-access>
- <write-access>
- <namespace-resource root="">
- <security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
>>>>>>>>>>
Any ideas what we are doing wrong ?
Thanks
Simon.Additional Information:
We ran the following command :
"dcmctl validateEarFile -f /tmp/ereg_ear/e-regulation.ear"
and got :
name = JDBC type = null
name = OracleConnectionCacheImpl type = JDBC_ConnectionSource
name = JDBC type = null
name = OracleConnectionPoolDataSource type = JDBC_DataSource
name = CONNECTION_1 type = JDBC_Connection
ADMN-906037
oracle(9iAS9020_IFS)$ dcmctl geterror ADMN-906037
ADMN-906037
The Java environment property http.proxyHost has not been defined. Define the environment variable ORACLE_DCM_JVM_ARGS="-Dhttp.proxyHost=<proxy-host-name> -Dhttp.proxyPort=<proxy-port-number>" using the right proxy host and port number and try again.
Any Ideas ?
Thanks
Simon. -
JDeveloper ADF Deployment to OC4J
Have developed a UIX/JSP in JDeveloper 9.0.5.2. It works fine as expected with the JDeveloper embedded OC4J server.
JSP is a master detail page, can scroll through master records and see detail lists. Deployment is successful to standalone OC4J...But it does not work there, behaviour is this: on startup, first master record is displayed, but no details...then next button(s) do not work. Have deployed a WAR, have gond through JDev library installations for OC4J, etc....but page initially displays first master record, then does nothing else.
Where can I find a detailed deployment how-to page for deploying to OC4J? I have been through several already, but something is still missing.
Regards,
Mark RTry the steps detailed in the reviewer guide for JDeveloper. (page 26). http://otn.oracle.com/products/jdev/collateral/papers/10g/reviewer/reviewerguide.html
-
Deploy to OC4J standaone problem
Dears,
I developed an application in jdev 10.2 and it works successfully with embedded OC4J, but when deploy to OC4J standalone or Tomcat it doesn't work.
I use JSON in my application.
The log (for OC4J standalone and Tomcat) is empty from errors and exceptions, Only
JSONRPCBridge.analyzeClass analyzing package1name.package2name.package3name.DAO.classNmaeDAO
is written and my code didn't work and JSP is empty.
Any ideas, what may be the problem there???When I deploy to oc4j from jdev... I get an error.
Unknown site: http-web-site
How do I figure out what my http site is via my oc4j configuration?
I know in my Connection properties for oc4j in jdev, there is a target web site property where I entered "http-web-site", thinking this was the correct target.
Thanks. Look in <oracle_home>\j2ee\home\config\server.xml
Web sites are defined by the web-site entry. E.g
<web-site path="./http-web-site.xml" />
<web-site default="true" path="./default-web-site.xml" />
Dhiraj -
Global authentication for applications deployed in OC4J server
Hi,
I have a couple of JSP pages deployed in OC4J server. I
would like to use authentication provided by OC4J, it
means to use JAZN UserManager (encrypted principals, LDAP
or SSO).
My question is, if it's possible to set default
authentication method for whole server or whole
http-web-site on OC4J, or I have to make change in web.xml
in each and every program, which I am going to deploy into
my OC4J. If I have 100 programs and somebody will make
decision, there will be no authentocation on this particular
server, do I have to change all my programs and remove
entries from web.xml files?
Is there a way how to specify the login page globally for
the server, not by application?
Thanks,
Mareklograste resolver tu problema????... si es asi me puedes enviar la solucisn.....
gracias.. -
How to lookup EJBs deployed in OC4J from a standalone client application
Hello all,
I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
env.put(Context.SECURITY_CREDENTIALS, "test");
Context context = new InitialContext(env);
Object ref = context.lookup("ejb/Dispatch");
I get the following error:
javax.naming.NameNotFoundException: ejb/Dispatch not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
For the lookup string I've also tried:
"java:comp/env/ejb/Dispatch" and "Dispatch"
For the Context.PROVIDER_URL property I've also tried:
opmn:ormi://localhost:6003:instance
The result is always the same.
I appreciate if someone could help me with this?
Thanks,
GeorgiGeorgi,
Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
<!-- Comment out the jazn element to use principals.
When both jazn and principals are present jazn is used -->Good Luck,
Avi.
Message was edited by:
Avi Abrami -
Corba Client to a Session Bean deployed in OC4J
Hello!
I'm looking for an example showing how to make a call to some EJBs deployed in OC4J (Orion) through a plain CORBA call in java?... Is this possible? I know that regular EJB uses RMI over IIOP based on CORBA... is it possible to use only the CORBA/iiop layer to communicate with an EJB deployed in OC4J?
If you have any corba client code as an example, it would be very appreciated,
Thanks!
null<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Pierre ([email protected]):
Hello!
I'm looking for an example showing how to make a call to some EJBs deployed in OC4J (Orion) through a plain CORBA call in java?... Is this possible? I know that regular EJB uses RMI over IIOP based on CORBA... is it possible to use only the CORBA/iiop layer to communicate with an EJB deployed in OC4J?
If you have any corba client code as an example, it would be very appreciated,
Thanks!
<HR></BLOCKQUOTE>
I am reasonably certain that OCJ4 doesn't support RMI over IIOP, only ORMI, which is the native wire protocol from Orion, and won't support this until they release the final version of EJB 2.0 support in OCJ4.
Translating the CORBA/RMI calls to EJB/ORMI calls would be a tad bit on the tricky side. I believe you can do what you want with something like Borland's App server...
null -
Hi all,
I have been trying to deploy a servlet to iAS. I have done following steps:
1) Created jar with the class files of http servlet/ dbservlet
2) copied it to ..\iAS\Apache\Jserv\servlets
3) Tried to call the simple http servlet http://koivu.fincosta.com/servlets/test1.Servlet1 or http://koivu.fincosta.com/servlet/test1.Servlet1
and get http 404 error (page not found)
I have tried also to define a wrapper.classpath in the jserv.properties for the jar.
The JD's on-line manual is really confusing on this matter and haven't seen any example on OTN either.
I would be very gratefull if somebody could tell me the steps for correct servlet deployment for iAS.
Best regards,
nullsigh
google: "eclipse war". First result:
http://www.java-tips.org/other-api-tips/eclipse/how-to-make-war-file-in-eclipse.html
I don't know if this applies to your version of Eclipse, but I hope you get the idea that a knowledge problem is not a valid reason to post in a forum; you do a google query in stead. It is the difference between being lazy and passing the problem to someone else, or being a proper developer and doing some research. -
Error deploying to oc4j standalone
hi folks,
i'm trying to deploy my application from jdev to standalone oc4j.
i created a war, an ejb-jar and an ear that includes them. while trying to deploy the ear i get the following exception:
2006-11-30 14:54:48.265 NOTIFICATION Starting application : wts2
2006-11-30 14:54:48.265 NOTIFICATION Initializing ClassLoader(s)
2006-11-30 14:54:48.265 NOTIFICATION Initializing EJB container
2006-11-30 14:54:48.265 NOTIFICATION Loading connector(s)
2006-11-30 14:54:48.343 NOTIFICATION Starting up resource adapters
2006-11-30 14:54:48.359 NOTIFICATION Processing EJB module: wts2_ejb_jar.jar
2006-11-30 14:54:48.656 ERROR J2EE EJB-03027 [wts2] An error occured deploying E
JB module: javax.ejb.EJBException: nested exception is: java.lang.reflect.Invoca
tionTargetException
2006-11-30 14:54:48.671 NOTIFICATION application : wts2 is in failed state
06/11/30 14:54:48 WARNING: Application.setConfig Application: wts2 is in failed
state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: nested excepti
on is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 oracle.oc4j.admin.internal.DeployerException: java.lang.Instan
tiationException: Application: wts2 is in failed state as initialization failed
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:515)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.doDepl
oy(ApplicationDeployer.java:196)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.DeployerBase.execute(Deplo
yerBase.java:93)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeploy
erRunnable.doRun(OC4JDeployerRunnable.java:52)
06/11/30 14:54:48 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRu
nnable.run(DeployerRunnable.java:81)
06/11/30 14:54:48 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:298)
06/11/30 14:54:48 at java.lang.Thread.run(Thread.java:595)
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Application: wts2
is in failed state as initialization failed
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:471)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:314)
06/11/30 14:54:48 at com.evermind.server.ApplicationServer.addApplication(
ApplicationServer.java:1853)
06/11/30 14:54:48 at oracle.oc4j.admin.internal.ApplicationDeployer.addApp
lication(ApplicationDeployer.java:512)
06/11/30 14:54:48 ... 6 more
06/11/30 14:54:48 Caused by: java.lang.InstantiationException: Error initializin
g ejb-modules: nested exception is: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:1064)
06/11/30 14:54:48 at com.evermind.server.ApplicationStateRunning.initializ
eApplication(ApplicationStateRunning.java:217)
06/11/30 14:54:48 at com.evermind.server.Application.setConfig(Application
.java:413)
06/11/30 14:54:48 ... 9 more
06/11/30 14:54:48 Caused by: javax.ejb.EJBException: nested exception is: java.l
ang.reflect.InvocationTargetException
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:365)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBUtils.createEJBException(E
JBUtils.java:356)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:54)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.notifyAnnota
tionListeners(AnnotationParser.java:201)
06/11/30 14:54:48 at com.evermind.server.ejb.AnnotationParser.parseAnnotat
ions(AnnotationParser.java:73)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBPackageDeployment.parseMet
aData(EJBPackageDeployment.java:939)
06/11/30 14:54:48 at com.evermind.server.ejb.EJBContainer.postInit(EJBCont
ainer.java:832)
06/11/30 14:54:48 ... 11 more
06/11/30 14:54:48 Caused by: java.lang.reflect.InvocationTargetException
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
06/11/30 14:54:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
06/11/30 14:54:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
06/11/30 14:54:48 at java.lang.reflect.Method.invoke(Method.java:585)
06/11/30 14:54:48 at com.evermind.server.ejb.BeanAnnotationListener.parseA
nnotatedClass(BeanAnnotationListener.java:45)
06/11/30 14:54:48 ... 15 more
06/11/30 14:54:48 Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/L
ogger;
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields0(Native Method)
06/11/30 14:54:48 at java.lang.Class.privateGetDeclaredFields(Class.java:2
232)
06/11/30 14:54:48 at java.lang.Class.getDeclaredFields(Class.java:1715)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.pars
e(AnnotationManager.java:112)
06/11/30 14:54:48 at com.evermind.server.deployment.AnnotationManager.getM
ethods(AnnotationManager.java:64)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:76)
06/11/30 14:54:48 at com.evermind.server.ejb.deployment.BeanDescriptorAnno
tationParser.parseAnnotations(BeanDescriptorAnnotationParser.java:48)
06/11/30 14:54:48 ... 20 more
2006-11-30 14:54:48.718 NOTIFICATION Application Deployer for wts2 FAILED.
i don't know if this can be connected to the following issue: i have another java environment on the same machine and therefore 2 different jdks: 1.4 and 5. the JAVA_HOME points to jdk1.4. but the batch file running the oc4j starts it with jdk5:
C:\Sun\AppServer\jdk\bin\java.exe -jar D:\oc4j\j2ee\home\oc4j.jar
i've seen a thread here saying that problems with InvocationTargetException can be solved by using Oracle AppServer instead of OC4J, which sounds pretty bizzare to me. there are a lot of folks here who run and deploy into OC4J with no problem.
thanks for you help!i am still facing the same problem all peoples face
is ther any way to fix it???????
if u find a solution i will apretiate if u tell me
coz am trying to make a webservice to try it with jdeveloper over oc4j
and as u know there is a test way provided by jdeveloepr to test ur webservice after publishing it
after i compliled the calsses and deploy it and open the url http://localhost:8888/jdeveloper_ap...webservice_name
and evry thing is ok till now and the page apear carying the method services name and when i click the method servic ename evry thing is still ok and the form apear requesting the input of the method if any with an invoke button or with the invoke button alone if no input was required and 2 link below the Proxy Jar and the Proxy Source so till now evry thing is ok
but after i press the invoke button or when i press the link proxyjar or Proxy Source the explorer show the usual error page HTTP 500 - Internal server error Internet Explorer so nothing work till the end
does any one expert in webservices with jedeveloepr know what do i miss to set so that the trial work? -
Javax.naming.NamingException: when deploying to OC4J using admin.jar
Additional details to posting (Problem Deploying to OC4J from Jbuilder8)
Jul 8 2003 @3:27
enter:-
java -jar "\ora9ias\j2ee\home\admin.jar" ormi://myhost:23791 admin password
and you get the error message:-
javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
java.net.ConnectionException: Connection refused: connect
My server.xml contains entry <rmi-config path="./rmi.xml" />
and my rmi.xml reads:-
<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE rmi-server (View Source for full doctype...)>
- <rmi-server port="23791" host="[ALL]">
- <log>
<file path="../log/rmi.log" />
</log>
</rmi-server>
I have repeatedly checked my hostname port user name and password
along with the statements in the server.xml and rmi.xml as above, but with no
success.
Regards
Gary.I am facing the same problem from this morning. I was able to start oc4j jvm without any problem today in the morning and i could deploy the war file and was able to test the web pages. But due to some unavoidable reasons i had to restart my machine and ever since then i am running into the following error.
My server.xml has a reference to rmi.xml.
Any help is highly appreciated.
Regards
Kiran
D:\Java\JDev9i\j2ee\home>java -jar oc4j.jar
Node started with id=647722646
Error initializing web-site at ./http-web-site.xml: default-web-app not specifie
d for Oracle9iAS Containers for J2EE HTTP Web Site
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Maybe you are looking for
-
How can I get my YouTube app back without losing my data?
So I just got the iOS 6 update for my iPad 2. After the downloading was done I wanted to look something up on YouTube. But when I went to look the app was gone. I couldn't find it in the search or anything. Can someone help me get it back?
-
"qmasterd not running" - how this happened and what we did to fix it.
For this with the message "qmasterd not running". This may be of help to those of you who are unsuccessful in • initialising qmasterd • can't sucessfully 'START' qmaster from the system preferences panel • can't start qmasterd from the shell or the s
-
Problem arise during Page Navigation
Hi, I ve created 2 different views for same table.., one is created with bind variable, Then I placed a default view in one page, Edited view in another page, In a xml.., I linked those page via that bind variable paramater, When I click a link from
-
Here in this code the internal table it_mseg and it_mbew are not being populated in the following code.Can anybody please tell me what the reason. Thanks and regards jyoti SELECT mblnr bwart matnr INTO TABLE it_mseg
-
Period / year End Closings
Hi, can any one please, send me the step by step Period and year end closing prosedures to be followed. Thank you vrk