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 1URGENT: How to deploy servlets in WLS6. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "1URGENT: How to deploy servlets in WLS6." Watch "1URGENT: How to deploy servlets in WLS6." New topic
Author

1URGENT: How to deploy servlets in WLS6.

j krishnan
Greenhorn

Joined: Jul 20, 2001
Posts: 27
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.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
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 ]
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
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


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
Sita Kotamraju
Ranch Hand

Joined: Nov 30, 2001
Posts: 60
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

Joined: Aug 19, 2001
Posts: 341
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

Joined: Jan 06, 2001
Posts: 977
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

Joined: Nov 30, 2001
Posts: 60
Chintan,
Sorry I replied to J Krishnan post about deploying a servlet.
Marcos is right
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
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
Adam Adams
Ranch Hand

Joined: Nov 28, 2001
Posts: 60
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

Joined: Aug 19, 2001
Posts: 341
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 1URGENT: How to deploy servlets in WLS6.