- This topic has 8 replies, 4 voices, and was last updated 17 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
FidoMidoMemberplease i have been working on debugging an application on Oracle Application Server stand alone 10.1.3.2 OC4J and i could not do that
i did go after so many posts everywhere but no solution to that problem
aim wasting my time coz i need that option
please if any one can debugg jsp using OC4J and Myeclipse 5.5.1 GA please give me the detailed steps
Loyal WaterMemberYou can go through this quick start document to understand debugging. You can set up your Oracle Application server connector and follow the same steps:-
http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/appservers/index.html
FidoMidoMemberthanks for the reply support-nipun
i already done al of that but my problem is that I cant debug on the OC4J instance
I put the brake points but the OC4J don’t stop on them
I need a solution for this problem its very important to me because I made an application using tomcat and it worked just fine but I cant deploy it on oracle application server as I get so much errors and I want to debug these errors if you please try to make a simple jsp and deploy it to OC4j and debug it if it works would you tell me
Loyal WaterMemberAre you starting the server in Debug mode ? plpease check the connector and make sure you are.
You said you were get errors while deploying your app. What errors were you getting ?
Can you to go <workspace>/.metadata/.log and check for any errors that could give us an idea of the problem.
FidoMidoMemberthanks for the reply support-nipun
the problems which aim talking about are related to my application not eclipse or Myeclipse or even OC4J aim using IBM FileNET (dont know if you know it or not ) to make my application
All i want is to get the detailed steps on how to debug JSP’s on OC4J 10.1.3.2 or any other version if any one could do that plzzzzzzz tell me how to do that i googled every where but with no result i configured the OC4J and can run it successfully and i deployed my application Ear inside it just wnat to know how to debug it
Riyad KallaMembercasberman,
I’m not familiar with IBM FileNET… is that what you are using to try and debug your application?
FidoMidoMembersupport-rkalla
forget what i said about IBM FileNET the problem is that i want to debug a small application contaning one JSP and one servet and that application is deployed on oracle OC4J this is the problem if it was solved then evry thing is going to be OK and aim sorry for asking too much
Regards
archvilleParticipantcasberman,
The support group is trying to find out the exact point of failure in your setup. I’m not too familiar with Oracle’s OC4J, but there are several factors that need to be considered.* The simplest of these is the proper setup of the config file. You can find the file “global-web-application.xml” in the “config” directory under your configured OC4J_HOME (hopefully you have this environment variable configured already).
* Next, you’ll have to enter a initialization parameter tag that sets the debug to true. e.g.
<servlet>
:
:
<init-param>
<param-name>debug_mode</param-name>
<param-value>true</param-value>
</init-param>
:
:
</servlet>You can also set the development mode, although I still have to figure out if it really makes a difference.
<init-param>
<param-name>developer_mode</param-name>
<param-value>true</param-value>
</init-param>There’s also a development flag under the “orion-web-app” tag that needs to be set to true
development=”true”
* After this you need to start the JVM in debug mode and set the port number. This is typically set in your startup script. Unless you start the AppServer using “oc4j -start” or “opmnctl startall”. You have a choice of running the oc4j.jar instead and supply parameters to this instead, like this:
java -ojvm -XXdebug, port####, detached -jar <path-to-jar-file>/oc4j.jar
Where #### is the OC4J debug port number you wish to connect from MyEclipse
and <path-to-jar-file> is the library path where oc4j.jar is located* The last step involves setting up MyEclipse to talk to this server. Under the “Run” menu option, click on “Debug…”. Locate the “Remote Java Application” option on the left pane, and right-click on it. Select “New”, and begin configuration your project specific version of the remote debugger. Make sure you pick a unique name for this instance of your debugger. The port number on this page should be the same as the one you configured above for OC4J. Once you’re done, you may click “Debug” on this right away to start your debugging. If your OC4J is not running at this point, MyEclipse will not be able to connect to this.
If I may have missed a step here, thre’s only one way to find out !! 🙂
Good Luck
Riyad KallaMembercasberman,
Be sure to read through our FAQ entry on getting debugging working on OC4J 10.1.3
https://www.genuitec.com/forums/topic/oracle-as-how-to-debug-classes-or-jsps/ -
AuthorPosts