Oc4j server
Hi,
I have a problem to run my jsp page.The project was running properly in other machine using the same server(oc4j server).when i run the test jsp page,i got following error message:
500 Internal Server Error
OracleJSP: oracle.jsp.parse.JspParseException: Line # 6, <jsp:useBean id="rpttemplate" scope="page" class="ReportTemplate"/>
Error: Unable to find class for bean: rpttemplate defined by tag with class: ReportTemplate
my test.jsp page is as following:
<%@page language="java" import="java.lang.*,java.sql.*, com.videcor.scdrs.beans.*,CompanyProfile, Company, Contact, Address, Product" %>
<%@ page import="java.sql.*, java.util.*, com.videcor.scdrs.beans.*" %>
<%@ page session="true" %>
<jsp:useBean id="rpttemplate" scope="page" class="ReportTemplate"/>
<html>
<head></head>
<body>
<table><tr><td>
hello
</td></tr></table>
</body>
</html>
i checked bean,it is in war file.and it works properly in other oc4j server.
The only diference between both machines is oc4j version are different.
Can someone help me to find the problem?
Thanks.
Hong
This problem is fixed.I installed another oc4j version.Works fine now.
Similar Messages
-
Working on Tomcat Server but same code is not working on oc4j server of E-B
Hello,
I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
ERROR MESSAGE:
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.
CODE JSP:
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
<meta
name="author"
content="MAX" />
<title>Test Register Page</title>
<link
rel="stylesheet"
href="css/style.css"
type="text/css"
media="screen" />
</head>
<body>
<div id="content">
<form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
<fieldset>
<legend>VIEW USER</legend>
<table border=1>
<tr>
<td width="200px" align="center"><b>Bank Name</b></td>
<td width="200px" align="center"><b>User Name</b></td>
</tr>
<%
Connection connection = null;
String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
ResultSet rs = null;
Statement statement = null;
try
// Get a Connection to the database
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
connection = DriverManager.getConnection(connectionURL,
"scott", "tiger");
statement = connection.createStatement();
rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
//Set 'authentication' flag
while (rs.next())
%>
<tr>
<td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
<td width="200px"><%= rs.getString("User_Name")%></td>
</tr>
<%
catch(SQLException e)
finally
rs.close();
statement.close();
connection.close();
%>
</table>
<label> </label>
</fieldset>
</form>
</div>
</body>
</html>
WEB xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<description>Register</description>
<display-name>Register</display-name>
<!-- Declare Servlets -->
<servlet>
<servlet-name>BaseServlet</servlet-name>
<servlet-class>BaseServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CategoryServlet</servlet-name>
<url-pattern>/Category</url-pattern>
</servlet-mapping>
<!-- Welcome File List -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
Edited by: bappy007 on Oct 10, 2010 1:57 AM
Edited by: bappy007 on Oct 10, 2010 1:58 AMERROR IN LOG FILE:
10/10/10 15:18:55.843 edwportal: Servlet error
java.lang.NullPointerException
at test.jspService(_test.java:93)
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.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
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:298)
at java.lang.Thread.run(Thread.java:619) -
How to use the same OC4j server with different port number
How to use the same OC4j server with different port numbers..?
I have to OC4J installed on my machine on different hard disk drives....
I want to be able to run both the server simultaneously..?
is it possible ..it yes then how..?
for that i have changed the port number of one server...
but when i am trying to start the other server with different port number..it says that JVM -Bind already...
Is there any clues...?
Nilesh GIn the config directory:
default-web-site.xml: Change the port the HTTP listener listens on
jms.xml: Change the port the JMS service listens on
rmi.xml: Change the port the ORMI listener listens on.
Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
Rob
Oracle -
Problem on running Preconfigured OC4J server in JDeveloper 10.1.3.2
Hi all,
I have problem on running preconfigured oc4j server in JDeveloper 10.1.3.2. I get the error message below :
C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\bin>
C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\bin\adfp_oc4j.cmd C:\Jdev10132\jdk\jre\.. C:\Jdev10132\ C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0 -start
wsrp not installed
installing wsrp......
C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache alt path or file already exist
C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache\admin
path or file already exist
System can not find the specified path
java.lang.RuntimeException: Instruction unknown: loadınstruction
at com.sun.org.apache.bcel.internal.util.InstructionFinder.mapName(InstructionFinder.java:138)
at com.sun.org.apache.bcel.internal.util.InstructionFinder.compilePattern(InstructionFinder.java:170)
at com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:218)
at com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:264)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.peepHoleOptimization(Mode.java:1444)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:1058)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:791)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
ERROR: 'Instruction unknown: loadınstruction'
FATAL ERROR: 'Could not compile stylesheet'
oracle.portlet.server.containerimpl.install.InstallException: Error parsing stylesheet "resource/config-server.xsl"
at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:289)
at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
... 2 more
caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
System can not find the specified path
Error: Can not find C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\j2ee\home\config\server.xml.
Stop OC4J command finished
Any help is appreciated...
Thanks in advance
Aliyewell I have downloaded the latest version of jdk (1.6) to check with it so it solved some of the problems but still I get an error on running the oc4j server. Error I get is:
Starting OC4J from C:\Jdev10132\j2ee\home ...
Executing: C:\Jdev10132\jdk\jre..\bin\java -XX:MaxPermSize=128m -Xmx512m -jar "C:\Jdev10132\j2ee\home\oc4j.jar" -config C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\j2ee\home\config\server.xml
07/02/19 10:45:10 Error initializing server: IO error reading system
07/02/19 10:45:10 Fatal error: server exiting
Stop OC4J command finished.
I couldnt understand what is the problem now..
Thanks for your help..
Aliye -
BUG: JDev 10.1.3.0.4 Embedded OC4J Server Preferences
If we specify in the Embedded OC4J Server Preferences->startup a OC4J installation to use for running and debbuging, click ok, and then delete the choosen directory and try again to access the Embedded OC4J Server Preferences, an error occurs. Appears an dialog and we can not alter this anymore.
Hi,
not sure on the limitation of dbms_output.put, but 4000 characters happens to be the maximum size of a varchar2 column....
I normally use dbms_output.put_line for debugging PL/SQL.
You could also post in the database forum if you have no luck here.
regards,
Brenden -
JDev10G - Preventing OC4J Server opening a new browser window each time?
Hi,
Does anyone know how to prevent the embedded OC4J server in JDev 10g from opening a new web browser window each time I run my project i.e. I'd like the server to re-use the same IE window.
JDev 9i opened the launch page in the same IE window.
There's nothing obvious in the OC4J settings.
Could this be a client browser setting?
Not a big deal just thought I'd see if anyone has worked this out.
Thanks
DavidDavid,
There is a browser setting for both IE and Firefox to indicate whether launching re-uses the same window/tab or opens a new one. Absolutely nothing to do with OC4J.
John -
How to Deploy HTML file in embedded OC4J Server
Hi,
I have a problem with deploying the HTML file.
How to deploy a HTML file in embedded oc4j server.
I'm running this in a Standalone and JDeveloper9i version.
I don't know where to deploy and how to deploy ?
Thanks
JamesHi Deepak,
I tryed that but i was NOT successful.
I'm getting 404 error page could not find in the Server.
Any other idea ? -
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 configure the .EAR to the OC4J server step by step ?
I have configured the JavaBean of the OC4J server with the following step:
1.create the eosp.ear with the JDeveloper's wizard
2.copy the eosp.ear to the OC4J Server with the Path:
J2EE_HOME/applications/
3.modify the server.xml and add the following words:
<application name="eosp" path="../applications/eosp.ear" auto-start="true"/>
4.restart the OC4J server and show the information:
Auto-deploying eosp (New server version detected)...
5.create the new JSP and this source code is:
<%@ page import="com.beautybeard.eosp.common.*"%>
<%@ page import="com.beautybeard.eosp.constant.*"%>
6.visit the JSP and show the error information:
Error parsing JSP page /eosp/usr_profile/login.jsp
Syntax error in source/eosp/usr_profile/login.jsp.java:5: Package com.beautybeard.eosp.common not found in import.import com.beautybeard.eosp.common.*; ^/eosp/usr_profile/login.jsp.java:6: Package com.beautybeard.eosp.constant not found in import.import com.beautybeard.eosp.constant.*; ^2 errors
why?
why can not find the package?
please help me outHi Sky-
It looks like you have a web application only.
You need to create a war file as described above. A war file is a jar'd file containing your web components, including your javabean class files, etc. JDeveloper 9i can do this for you. You've already done the hard work. Suppose that the project you have created that contains your javabeans, etc in JDev 9i is called myproject (with myproject.jpr as the project file). Right click on the myproject.jpr in the JDev navigator and select 'new...', go to Deployment Profiles and select J2EE Web Module (WAR File) - a general screen will pop up asking you to save the deployment profile (you can just use the default if you want). Once you select OK on that, you will get a screen that calls itself the J2EE Web Module Deployment Profile Settings. This is the screen that you can use to enter your information.
Your servlet and javabean classes will go into WEB-INF/classes subdirectory that you see to your left in this window. Simply select the WEB-INF/classes entry and it will display a list of your java sources (it will only place the compiled output in this directory - there is a toggle for it).
Once you have specified that your javabean and servlet classes go in this directory, you should be set. Go ahead and save / close. In your navigation screen under your project (myproject.jpr or whatever your project name is) you will see your files, jsps, etc and something called webapp1.deploy (if you accepted the default). If you right-click on that, you will get a menu that asks a number of things, one of which is to Deploy to EAR file. Select that entry and it will create an ear file for you. You can play with the various settings to change the name of the ear file, but that's about all you have to do. Once this is completed, you can put the EAR file on your linux box or wherever you want, adjust your server.xml and default-web-app.xml files and launch the app!
Good luck!
Ray
Hi,Ray
Thank you for giving me the detail information!
I'm sorry that I can not give the detail and clear problem ,which make you delusoried.
ok,now I give you my aim.
1. I will construct my application system with JavaBean(not EJB),Servlet,JSPs (linux+IAS+JDeveloper+Oracle8i database)
2. I will package business function with JavaBean. example:
* CheckLogin.java
package com.beautybeard.eosp.javabean.usrprofile;
import com.beautybeard.eosp.common.*;
import com.beautybeard.eosp.data.*;
import java.io.*;
import java.lang.*;
public class CheckLogin{
public CheckLogin()
//do nothing here
public boolean getCheckLogin(){
3. I will control the request and response with Servlets.
example:
*CheckLoginSevlet.java
package com.beautybeard.eosp.servlet.usrprofile;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import com.beautybeard.eosp.servlet.*;
import com.beautybeard.eosp.javabean.usrprofile.*;
public class CheckLoginServlet extends DefaultServlet
public void service(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException
//use the JavaBean
CheckLogin cl = new CheckLogin();
if (cl.getCheckLogin){
res.sendRedirect("login.jsp");
}else{
res.sendRedirect("err.jsp");
4. I will display the result with JSPs:
example:
<%//login.jsp%>
<%@ page import="com.beautybeard.eosp.common.*"%>
<%@ page import="com.beautybeard.eosp.data.*"%>
5. I have success on running the above steps in the 9iJDevelper(pure java) environment(OS:Windows 2000 Server), and now I will move the JSPs ,Servlets,JavaBeans to the Server(linux) without the JDeveloper's deployment wizard.
how to configure the IAS to carry my point?
thank you!
Sky liu -
Embeded Oc4j server not starting up in Jdeveloper 10g 10.1.3.0.3
hi,
I have created simle hello.jsp , but i try to run it with the embedded OC4j server i get the following error .
C:\jdk1.4\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=172.16.233.34 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=local.|localhost|127.0.0.1 -Dhttps.proxyHost=172.16.233.34 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=local.|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:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Sep 30, 2005 6:23:17 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
Error: cannot read: java.lang.Enum
05/09/30 18:23:23 Application: system is in state FAILED
05/09/30 18:23:23 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/jdev/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
Error: cannot read: java.lang.Enum
05/09/30 18:23:24 Fatal error: server exiting
Process exited with exit code 1.
Can anyone helpThe 10.1.3 version of JDeveloper (and the embedded OC4J) requires JDK 5.0 to run.
You can however set your project to work with JDK 1.4 in the project properties. -
Oc4j server embeded in Jdeveloper 10g is not ruuning
hi,
1.
I am trying to run ocrj server embede in Jdeveloper from command promt
for which as given step in Jdevelioper handbook , i proceeded as executing
setvars -go from directory jdev\bin , but i am getting the following error
D:\JDev\jdev\bin>setvars -go
Using JDeveloper installation in "D:\JDev\jdev\"
Using JDeveloper root in "D:\JDev\"
'findstr' is not recognized as an internal or external command,
operable program or batch file.
2. if i proceed next step without caring the previous step , the server is start but vanished instantly
i am using Windows XP(sp 2) jdk 1.4
pz can any one will guide me
log file showing the following message
06/02/13 20:25:11 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear...
06/02/13 20:25:12 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear... done.
06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear...
06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear... done.
06/02/13 20:25:19 9.0.4.0.0 Started
06/02/13 20:26:34 9.0.4.0.0 Started
06/02/14 18:23:07 9.0.4.0.0 Started
06/02/14 18:23:14 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
06/02/14 18:23:14 Recovery completed, 0 connections committed and 0 rolled back...
06/02/14 18:23:14 9.0.4.0.0 Started
06/02/15 09:58:49 9.0.4.0.0 Started
06/02/15 09:58:55 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
06/02/15 09:58:55 Recovery completed, 0 connections committed and 0 rolled back...
06/02/15 09:58:55 9.0.4.0.0 Started
06/02/15 10:03:58 9.0.4.0.0 Started
06/02/15 10:03:58 9.0.4.0.0 Stopped (JVM termination)
06/02/15 10:04:13 9.0.4.0.0 Started
06/02/15 10:04:14 9.0.4.0.0 Stopped (JVM termination)
06/02/15 10:41:12 9.0.4.0.0 Started
06/02/15 10:41:13 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:20:46 9.0.4.0.0 Started
06/02/15 12:20:46 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:21:02 9.0.4.0.0 Started
06/02/15 12:21:02 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:21:26 9.0.4.0.0 Started
06/02/15 12:21:27 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:21:34 9.0.4.0.0 Started
06/02/15 12:21:35 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:21:43 9.0.4.0.0 Started
06/02/15 12:21:44 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:28:23 9.0.4.0.0 Started
06/02/15 12:28:23 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:29:45 9.0.4.0.0 Started
06/02/15 12:29:46 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:30:37 9.0.4.0.0 Started
06/02/15 12:30:37 9.0.4.0.0 Stopped (JVM termination)
06/02/15 12:43:34 9.0.4.0.0 Started
06/02/15 12:43:35 9.0.4.0.0 Stopped (JVM termination)
06/02/15 13:01:43 9.0.4.0.0 Started
06/02/15 13:01:43 9.0.4.0.0 Stopped (JVM termination)
06/02/15 14:59:13 9.0.4.0.0 Started
06/02/15 14:59:13 9.0.4.0.0 Stopped (JVM termination)
06/02/15 14:59:32 9.0.4.0.0 Started
06/02/15 14:59:33 9.0.4.0.0 Stopped (JVM termination)
06/02/15 15:05:39 9.0.4.0.0 Started
06/02/15 15:05:39 9.0.4.0.0 Stopped (JVM termination)
Waiting for your response
Rgds
nripaThaks Frank ! I did as your suggestion and in the command line the following message comes
D:\JDev\j2ee\home>java -jar oc4j.jar
06/02/16 10:53:01 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
I Assumed that oc4j server statrted , I test the server using the browser to connect to http://localhost:8888 i got
You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.
HTTP Error 403 - Forbidden
Internet Explorer
i checked the port number in relevent xml file
pz if possible support me
Rgds
nripa -
JDBC datasoure that works for embedded OC4J server of JDeveloper 10.1.3.4
Hi all,
I have this in the Application Module as JDBC datasource: java:comp/env/jdbc/DBCON
That works fine if I deploy the application on Oracle application- or tomcat-server.
On the connections tab in JDeveloper I have made a database connection with the name DBCON.
But when I run the application from Jdeveloper with the embedded OC4J server I get this error:
Unable to lookup Data Source at context java:comp/env/jdbc/DBCON
What do I do wrong?
Thanks in advance.Hi,
Edit the <application_name>-data-sources.xml file under the root directory of your application, and setup a managed data source and connection pool with the data source having the correct jndi name, eg. jdbc/DBCON
You can either do this manually (which I find easier), or use the tool within JDev
Tools - > Embedded OC4J Preferences -> Current Workspace -> Data Sources -> New
-chris -
SQL not showing in Embedded OC4J Server window
Previously, when we'd run a page through JDeveloper, the sql statements that were used to execute the query would appear in the Embedded OC4J Server window in JDeveloper. Now they no longer appear (along with a lot of other logging data that used to appear). Is there a configuration setting somewhere to make this info appear again?
There is no such setting for OC4J log. Are you sure that you are looking at the right tab because there are generally 3 tabs on the bottom most log window which are Messages, Compiler and Embedded OC4J Server.
--Shiv -
How to Starting and Stopping OC4J Server using Ant
How to Starting and Stopping OC4J Server using Ant
In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called
name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"
name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"
I thought that these would shutdown and start the OC4J server. I guessed the parameters as – (Does anyone know where 50 ant targets are documented?)
<oracle:restartServer
userid="${oc4j.admin.user}"
password="${oc4j.admin.password}"
deployeruri="${deployer.uri}"
/>
<oracle:shutdownServer
userid="${oc4j.admin.user}"
password="${oc4j.admin.password}"
deployeruri="${deployer.uri}"
/>
This, however does not start and stop the SOA suite. To do that I've hacked this solution together -
<path id="oc4j.console">
<pathelement location="${oracle.home}/config"/>
<pathelement location="${oracle.home}/jlib/startupconsole.jar"/>
<pathelement location="${oracle.home}/opmn/lib/optic.jar"/>
<pathelement location="${oracle.home}/lib/xmlparserv2.jar"/>
</path>
<target name="stop" description="stop oc4j server" depends="init">
<java classname="oracle.appserver.startupconsole.view.Runner">
<classpath refid="oc4j.console"/>
<sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
<arg value="stop"/>
</java>
</target>
<target name="start" description="restart oc4j server" depends="init">
<java classname="oracle.appserver.startupconsole.view.Runner">
<classpath refid="oc4j.console"/>
<sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
<arg value="start"/>
</java>
</target>
This sort of works – except when the SOA suite doesn't stop cleanly – and needs user interaction to press a Close button. This isn't very useful when doing a continous integration build and deploy.
So, does anyone have any suggestions or alternative methods to do this?
- frankActually if the server throws exceptions when it stops (which it always has since we applied patch 10.1.3.3) this technique will pause until a user responds to pop-up ... So a better way (I think) is -
<target name="start" description="start oc4j server" depends="init">
<java classname="oracle.appserver.startupconsole.view.Runner">
<classpath refid="oc4j.console"/>
<sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
<arg value="start"/>
</java>
</target>
<target name="stop" description="stop oc4j server" depends="init">
<echo message="We expect OC4J *NOT* to stop cleanly, so we will timeout after 3 minutes ..."/>
<java classname="oracle.appserver.startupconsole.view.Runner" fork="true" timeout="180000">
<classpath refid="oc4j.console"/>
<sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
<arg value="stop"/>
</java>
</target>
<target name="restart" description="restart oc4j server">
<antcall target="stop"/>
<!-- wait for server to quieten down -->
<waitfor maxwait="2" maxwaitunit="minute">
<not><http url="http://${oc4j.http.hostname}:${oc4j.http.port}"/></not>
</waitfor>
<antcall target="start"/>
</target> -
Oc4j server 10.1.3.3 to weblogic server 10.3.5
Hi,
I have one requirement. i have oc4j server 10.1.3.3 and Jdeveloper is 10.1.3.4. from here i need to send one message through JMS Adapter to weblogic server 10.3.5.(here one queues is there). so pls any one help me out.
Thanks,
RahulI have solved the problem, in an unexpected way.
I logged onto metalink and try to find some solution. But I could only get are the same instructions which I already did.
But there was a link there to download the wlthin3client.jar. Even though I already have it, I still downloaded the JAR from metalink and gave it a try.
As it turned out, I was able to access the Weblogic resources by changing the version of wlthin3client JAR I am useing.
Manifest of the JAR which was not working:
Implementation-Version: 10.3.3.0
Specification-Vendor: Oracle Corp.
Specification-Title: WebLogic Server Thin-Client
Specification-Version: 10.3.3.0
Manifest of the JAR that is working (Downloaded from Oracle meta-link)
Implementation-Version: 10.3.2.0
Specification-Vendor: BEA Systems
Specification-Title: WebLogic Server Thin-Client
Specification-Version: 10.3.2.0
Maybe you are looking for
-
How can I relink my missing songs in iTunes?
Hi, I´m a bit panicking since now 1000 songs on my iTunes library aren´t being located by my iTunes... What happened is that I had to reinstall my MacBook Pro after it crashed, and my network drive failed, so no possibility of Timemachining it. Fortu
-
Non cumulative key figure is not getting filled based on inflow and outflow
hi, i have a non cumulative key figure which is having inflow and outflow. i have these three info objects in dso. as i know non *** key figure is calculated based on inflow and outflow. i am getting values for inflow and outflow so non *** should be
-
I've been in contract with verizon about a year or so. I'm wondering how am I going to get security deposit and what kind of form does it come through. Does it come through mail? Is that the only way to get it? If mail was returned because I was out
-
How to determine the Country and Organization from IP
Hi, I would like to determine the Country and Organization from a given IP. I have to write a JSP, which when given the IP address gives the country and the organization to which the IP belongs. The organization may be the ISP, or a MNC or any other
-
Data transfer schedule run error-object variable/with block variable no set
I want to automate a Data Transfer Workbench routine. I created the appropriate xml file but when I run the .bat file I get the following error: "Object variable or with variable not set." I think that the problem resides in the xml file but there is