Saturday, August 16, 2008

Viewing JSP Stack Traces with OC4J 10.1.3.1.

When an error occurs in the translation or runtime execution of a JSP page, the container would return the exception, message and a stacktrace to the client. However, the exception is not displayed in the page by default in OC4j.

This can be a little annoying for development machines. There are several ways to change this behavior. The easiest way is to set the development flag at the container level. This can be done by updating the element of the global-web-application.xml file.

Here is an example:

<orion-web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"
jsp-cache-directory="./persistence"
servlet-webdir="/servlet"
development="true"
jsp-timeout="0"
jsp-cache-tlds="standard"
schema-major-version="10"
schema-minor-version="0"
>


I like this option because, this can be set once for the container and dont have to worry about it.

If this cannot be done because you are working on a shared server, you can override individually by setting this flag on the application level by including orion-web.xml file in WEB-INF directory of your application. However, you have to make sure you remove this or change it when you deploy to production.

As a temporery measure, you can change it during deployment on the jdeveloper deployment wizard. The "Buttso Blathers" has a screen shot of this screen.

7 comments:

jegan said...

wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
This article resolved my all queries.good luck an best wishes to the team members.learn digital marketing use these following link
Digital Marketing Course in Chennai

Howell Daniel said...

Security isn’t something that we can compromise on. These days, we can never stress enough on the importance of security. bodyguard company
These are desperate times and all you need is a team that isn’t just good enough to cover all aspects of existing and possible threats but are ready and prepared to handle the worst even if it comes to that. It’s indeed a tall order, but we have good news for you.

Phuwadon said...

คุณสมบัติการทำเงินในค่ายเกมสล็อต Joker สล็อตออนไลน์พร้อมวิดีโอสล็อตอัพเดทล่าสุด Blackbeard Legacy ที่คุณสามารถสร้างรายได้ jokerslot.ninja เว็ปพนันออนไลน์ทำเงิน ที่มาพร้อมกับตัวคูณเงินรางวัลสูงสุดมากถึง X1000 เท่าตลอดการเล่น.

Phuwadon said...

ฟีเจอร์ใหม่แปลก ๆ วิธีเล่นใหม่ ๆ และรางวัลที่ง่ายกว่าบนเว็บ https://www.pgslot168game.com/ สำหรับผู้ที่ชอบเล่นการพนันออนไลน์ เรื่องนี้ได้เติบโตขึ้นจนมีความสนุกสนาน ไม่ว่าจะเป็นเกมแฟนตาซี เกมตกปลา หรือเกมยิงปืน มีเกมให้เล่นมากมาย กว่า 100 เกมมีที่นี่ที่เดียว Pg SLOT ค่ายเกมยักษ์ใหญ่

สล็อตเว็บตรง said...

หลายท่านรู้จักตัว สล็อตเว็บตรง กันเป็นอย่างมากเพราะเป็นค่ายที่ตัวเกมส์สนุกสนานและได้เงินจริงในสมัยก่อนค่าย PG slot ยังเล่นได้แต่ในคอมพิวเตอร์แต่ในปัจจุบันทาง PG slotได้อัปเดตระบบทางเข้าPG slot มือถือ เสร็จเป็นที่เรียบร้อยแล้วเพื่อให้ผู้เล่นที่ไม่มีคอมพิวเตอร์หรือเวลาออกไปไหนมาไหนก็สามารถเล่นและสร้างรายได้จาก PG slot

nameeman555 said...
This comment has been removed by the author.
luoke said...

I am pretty much pleased with your good work. You put very helpful information. Keep it up. Keep blogging. Looking to reading your next post.Very interesting to read this article.
rotating masturbator cup
water based lubricant.