- This topic has 5 replies, 2 voices, and was last updated 15 years, 3 months ago by support-joy.
-
AuthorPosts
-
asookazianMemberUsing MyEclipseIDE 7.5, I have the following optional Java VM args specified in the JDK screen for Oracle 10.x:
-server -Xms128m -Xmx768m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dwebapp.config.file=C:/java/OraHome_1/j2ee/home/config/nns.properties -Dlog4j.configuration=C:/java/OraHome_1/j2ee/home/config/log4j.properties -Dfile.encoding=”UTF-8″ -jar oc4j.jar
Oracle launch mode is debug mode.
c:/java/OraHome_1/bin
c:/java/OraHome_1/j2ee/homeare in the append to classpath box.
When I start the server in debug mode I get:
“A configuration error occurred during startup. Please verify the preference field with the prompt: Unknown switch: -jar, type java -jar oc4j.jar -? for help.”
If I prepend the VM args string with “java”, it starts and I can run the app but when I shutdown the server I see “unable to find main class”.
So no matter what I do it doesn’t work properly. I can run the same exact VM args prepended with “java” to start a JVM from cmd line and it works fine (we are currently using cygwin batch scripts to start the server but would like to do everything from within the IDE).
Oracle JDK name: j2sdk1.4.2_17.
We are using OC4J standalone 10.1.2.
Plz advise. thx.
asookazianMemberusing Host: ORMI port: localhost:23791
asookazianMemberIf I prepend “java” to the VM args (which is most likely not correct to do), I see this in the console:
FATAL ERROR in native method: No transports initialized
Transport dt_socket failed to initialize, rc = 509.
asookazianMemberContents of rmi.xml:
<?xml version=”1.0″ standalone=’yes’?>
<!DOCTYPE rmi-server PUBLIC “Orion RMI-server” “http://xmlns.oracle.com/ias/dtds/rmi-server-9_04.dtd”><rmi-server port=”23791″ >
<!– A remote server connection example –>
<!– <server host=”the.remote.server.com” username=”adminUser” password=”123abc” /> –><!– path to the log-file where RMI-events/errors are stored –>
<log>
<file path=”../log/rmi.log” />
<!– Uncomment this if you want to use ODL logging capabilities
<odl path=”../log/rmi/” max-file-size=”1000″ max-directory-size=”10000″/>
–>
</log>
</rmi-server>so the default port usage is ok in this case.
asookazianMemberAlso, what is the purpose of the optional launch configuration creation? Do I need to set that up as well?? Why doesn’t that have a save button but there is a debug button in those screens. Kind of strange.
support-joyMemberI am unable to reproduce this issue at my end. I am able to debug the application deployed in Oracle10 Application Server without the optional Java VM arguments in JDK screen. Can you tell me what you want to do by adding the said VM arguments?
Using Java VM arguments option we can set Behavioral options(change the basic behavior of the VM),Performance tuning options(are knobs which can be used to tune VM performance) and Debugging options(generally enable tracing, printing, or output of VM information).
Attachments:
You must be logged in to view attached files. -
AuthorPosts