Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running JSP in Weblogic 8.1 afer creating a NEW Domain.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
can any one pls tell me how Runn JSP in Weblogic 8.1 afer creating a NEW Domain.
TIA
Sarathy
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Weblogic Forum.
bear
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Create a WAR file with your jsp, web.xml and weblogic.xml and place it in the application folder inside your domain folder in WAR or exploded format.
These are generic instructions for deploying jsp's in weblogic and suppose to work. If you need anything specific please provide more details.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okey i have helloWorld.jsp file.
now should we create web.xml ?? if so,
how it should be ??
and where is weblogic.xml ??
please Ashish clearly explain us as we
are very beginners.
Also is this the same rule for jsp page
having JDBC connection ??

thanks in advance.
 
Ashish Pagare
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bond,
If you have simple jsp pages like you said HelloWorld.jsp and just trying to learn then the best place to test it out is by deploying in the example server, which comes with the typical installation of weblogic server.
All you need to do is copy the jsp file in the below mentioned folder:
C:\bea\weblogic700\samples\server\config\examples\applications\DefaultWebApp
That's way you can access them using following URL:
http://localhost:7001/HelloWorld.jsp
If you have created a new domain and admin server then you can copy the jsp file in the DefaultWebApp folder inside your-domain/applications folder.
One correction from my earlier post: you don't need a web.xml and weblogic.xml for simple HelloWorld.jsp and neither for a jsp with a JDBC connection. The need for web.xml is only when you want to define a mapping between url-pattern and jsp/servlet (infact there is lot more, which goes in web.xml). weblogic.xml is weblogic extension for providing more jazzzy feature.
Thanks,
Ashish
 
bh00pesh venu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Ashish,
ok, i have my HelloWorld.jsp under
C:\bea\user_projects\mydomain\applications\DefaultWebApp\
where "DefaultWebApp" is created by me in applications
dir.
Now, i started weblogic server
start->All programs -> Bea Weblogic Platform 8.1 -> user_projects ->
mydomain -> startWLServer
and entered the URL in browser as "http://localhost:7001/console"
But, here under mydomain -> Deployments -> Web Application Modules
i click on "Deploy a new Web Application Module"
I could not see anything under
Location : localhost\C:\bea\user_projects\mydomain\applications

Some body saying to create a .war file, is it necessary for simple
HelloWorld.jsp file. ???
Advance thanks for your response.
 
Ashish Pagare
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to the details I have specified in the other thread.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic