This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes Deploying JSP outside oracle home Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Deploying JSP outside oracle home" Watch "Deploying JSP outside oracle home" New topic

Deploying JSP outside oracle home

Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144

Is it possible to keep JSP files outside the oracle home directory i.e rather than keeping it in inside \j2ee\home\default-web-app, can I keep it outside the application server, Eg: in D:\JSP and in some configuration files I give the location of JSP files.Like we do for Oracle Forms application.

Any help in this regard is highly appreciated.



Never take anything for granted because you never know when you will lose it
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32319

No. The JSPs need to be in the web project/war structure at deployment time. This is actually a good thing as you wouldn't want someone running arbitrary JSP files on your app server.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1138

Not sure if this is what you are looking for, but anyway...

You can either edit the configuration files in the "j2ee/home/config" subdirectory of your OC4J installation. In these files you indicate paths to different files. Have a look at "server.xml", "global-web-application.xml" and "application.xml" for starters.

Alternatively, you can write your own versions of the configuration files, and direct OC4J to use them when you launch OC4J. I believe the option is "-server", but check to make sure. Try the following command:

Good Luck,
It is sorta covered in the JavaRanch Style Guide.
subject: Deploying JSP outside oracle home
jQuery in Action, 3rd edition