File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How to deploy a JSP file in WL Managed Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to deploy a JSP file in WL Managed Server" Watch "How to deploy a JSP file in WL Managed Server" New topic
Author

How to deploy a JSP file in WL Managed Server

Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Hi All,

I made a JSP file which will fetch Java Thread Dump when ever we access the file through browser.
The problem is I'm not able to find where to put it except in war file.
We have only Managed server running no Admin Server.
Usually in Tomcat we put in WEBAPPS\ROOT folder and it used to work when i access http://localhost:8080/stack.jsp

Now I dont know where to put in Managed server so that I can access like http://localhost:7006/stack.jsp or any other Url.

Our application is deployed as a WAR file and I dont have luxury to rebundle the war file with this stack.jsp as the client already gone live.

Please help where can I put this file so that I can Access directly by hitting some Url.


Regards, Ricky
Oracle Weblogic 10g Certified Expert
TechPaste.Com
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Simply create another web application. That can be as simple as a folder containing the jsp and a web.xml file in a WEB-INF directory; you may have other requirements such as jar files. It can be deployed as a war file or just as a directory (called exploded war).

newwebapp/myJsp.jsp
newwebapp/WEB-INF/web.xml

[Edit] You don't mention the version or I might have added other details.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Carol Enderlin wrote:Simply create another web application. That can be as simple as a folder containing the jsp and a web.xml file in a WEB-INF directory; you may have other requirements such as jar files. It can be deployed as a war file or just as a directory (called exploded war).

newwebapp/myJsp.jsp
newwebapp/WEB-INF/web.xml

[Edit] You don't mention the version or I might have added other details.


Thanks mate

I'm using WL 10.3 Linux
I know if i create a web.xml and web-inf folder structure i will be able to deploy the jsp file but here problem is I cant touch the Admin console of WL i only have access to the machine. So please let me know where shall i put the folder to get it deployed automatically.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
In DEVELOPMENT mode, applications put into the autodeploy directory in your domain will be, uh... autodeployed. The documentation says this does not work in PRODUCTION mode. Hopefully in your production deployments you are running in PRODUCTION mode.

Take a look at the BEA/Oracle documentation.

Autodeploying applications in DEVELOPMENT mode

FastTrack Deployment ...

It sounds like perhaps you are trying to get around limitations that are there for a purpose. Why can't you use the admin console?
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Carol Enderlin wrote:In DEVELOPMENT mode, applications put into the autodeploy directory in your domain will be, uh... autodeployed. The documentation says this does not work in PRODUCTION mode. Hopefully in your production deployments you are running in PRODUCTION mode.

Take a look at the BEA/Oracle documentation.

Autodeploying applications in DEVELOPMENT mode

FastTrack Deployment ...

It sounds like perhaps you are trying to get around limitations that are there for a purpose. Why can't you use the admin console?


No I cant access as only Mnagaed server is up and running and I dont have the band width to start Admin Server and NodeMnager in Production instance.
I dont know its a limitation or not but if i am able to do the same in WebSphere, Tomcat and JBoss then why not in Weblogic

Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
Please correct me if am wrong. We can't deploy an application into an managed server. We have to deploy the application in one domain and wee can make the application available to managed servers. When deploying the application itself.


SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Jetendra Ivaturi wrote:Please correct me if am wrong. We can't deploy an application into an managed server. We have to deploy the application in one domain and wee can make the application available to managed servers. When deploying the application itself.


Yes You are absolutely right.
What i meant here is there any way like in WAS Express if i put the jsp file in my applications exploded WAR folder location and restart the server it picks up the file and works fine.
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
You mean with out redeploying the application.
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
You can do it Ramakanth, just click use the update button. Before that please make sure you delete the extracted application in your server location.

Eg: D:\devtools\bea814\user_projects\domains\Testing\myserver\.wlnotdelete\extract\ ==> Here are the files which are extracted. So deleted this folderwith your application name and update the .war file using the option provided on console.

This will work. BTW which version of weblogic are you using?

Thanks
Jetendra.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 247

Jetendra Ivaturi wrote:You can do it Ramakanth, just click use the update button. Before that please make sure you delete the extracted application in your server location.

Eg: D:\devtools\bea814\user_projects\domains\Testing\myserver\.wlnotdelete\extract\ ==> Here are the files which are extracted. So deleted this folderwith your application name and update the .war file using the option provided on console.

This will work. BTW which version of weblogic are you using?

Thanks
Jetendra.


Thanks for info. I'm using 10.3

I got another way to do it. Just putting it into text for further reference.

If I deploy a folder which will have WEB-INF stuff instead of deploying a WAR and select "I want to access application from specified_folder_location while deploying the folder as a application.
I can anytime add a file to the folder and restart the managed server service to make it available. It copies the new file to its Tmp directory automatically.

Cheers!!
Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
Oh yeah... Thanks for the information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deploy a JSP file in WL Managed Server
 
Similar Threads
changing a web application's URL
invoking a servlet
how to deploy a .war file?
Deploying .war file in tomcat
Resources on WebApps