• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How to deploy a JSP file in WL Managed Server

 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean with out redeploying the application.
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh yeah... Thanks for the information.
 
today's feeble attempt to support the empire
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic