• 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

1URGENT: How to deploy servlets in WLS6.

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone give clear cut how to deploy servlets in weblogic6.1. I am using Package structure, I have application classes calling the service classes.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI, the easyest way to do it is to package your web application in a war file ant than using the administration console navigate to:
%domain_name%->Deployments->Web Applications click on install a new web application than navigate to where your war file is, select it click on upload and if everything is fine in your war file you sould be able to access it using a browser.
Also if your server is on development mode you can copy the war file to %WL_HOME%\config\%DOMAIN_NAME%\applications .
[ January 11, 2002: Message edited by: Marcos Maia ]
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marcos,
I have the similar question for EAR applications. I know how to create and deploy ear file but from your answer it seems we have to have war or ear file. You cannot deploy application and/or web application in exploded form.
My concern is, if you are still in development mode why should you be required to package the application? It is easier to test, go back change the code and retest.
Could you really have application in exploded form?
Thanks
Chintan
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you look here:
http://e-docs.bea.com/wls/docs61/programming/packaging.html#1036151
[ January 11, 2002: Message edited by: Sita Kotamraju ]
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sita,
I had just looked at it but had not read the doc carefully. I think this part of documentation talks about ear, war and jar files, whereas I am interested in having folder structure (exploded) in the weblogic and being able to test a J2EE application containing EJBs (J2EE application without ear file). This way testing, modification is easier.
I will read the doc you suggested and bounce back if I still have question(s)
Thanks
Chintan
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chintan Rajyaguru:

Could you really have application in exploded form?
Thanks
Chintan



yes, you can I just don�t mention it, to do that
all you have to do is place your files under
%WL_HOME%\config\%DOMAIN_NAME%\applictions\DefaultWebApp consider this your root directory for jsps and html.
Now if you wanna make development in the exploded directory and want to make weblogic to refresh files when you place them there you�ll have to create and empty file named REDEPLOY in the directory where the exploded application reside and than just overwrite the files with the new one and at that you have to touch the REDEPLOY file to alter it�s time stamp(weblogic rely on that to refresh the files automatically), while if you choose to use the packaged files with the server in development mode(there�s a thread checking for updated files) all you have do is overwrite packaged files and weblogic will refresh the files automatically.
regards.
 
Sita Kotamraju
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chintan,
Sorry I replied to J Krishnan post about deploying a servlet.
Marcos is right
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What was explained was for servlets and JSP. How does that hold true for an enterprise application? I mean, how do I have an application (that contains EJBs) in exploded form?
Thanks
Chintan
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think it all depends on what you are planing to do if it is just a simple servlet all u have to do is to add 2 entries to you web.xml file in "wl_home"\config\examples\applications\examplesWebApp\WEB_INF directory
<servlet> <servlet-name>ServletName</servlet-name>
pkackageName.servletName</servlet-class>
</servlet>
and
<servlet-mapping>
<servlet-name>ServletName</servlet-name>
<url-pattern>/ServletName/*</url-pattern>
</servlet-mapping>
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What language should I use to make my question clear? I DO NOT WANT TO KNOW HOW TO RUN SERVLET ON WEBLOGIC!!
In each of my messages in this post I clearly mentioned that I want to run an application containing EJBs (NOT servlets) and I want to deploy this application in exploded form (directories NOT an EAR file).
I apologize if my words sound harsh but I am not getting my question answered. Anyways, for now I wrote build.xml file and used ant tool to generate EAR file deploy it and run EJBs (this is what I do not want to do but...) and research weblogic docs to find how to deploy application in exploded form.
Thanks
Chintan
[ January 13, 2002: Message edited by: Chintan Rajyaguru ]
 
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic