This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Probs in deploying a sample web app using WLS81 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Probs in deploying a sample web app using WLS81" Watch "Probs in deploying a sample web app using WLS81" New topic

Probs in deploying a sample web app using WLS81

Saurabh Gour

Joined: Sep 09, 2003
Posts: 3
I am trying to deploy a sample web app.
It calls a servlet class from index.html
But when I submit the details from index.html, it is unable to locate the class. I have tried various combinations in web.xml and weblogic.xml as the deployment descriptors. I am mentioning the code below. Any help would be appreciated.
<FORM ACTION="/greeting/GreetingServlet" METHOD="POST">
<P>Your Name <INPUT TYPE="text" SIZE="40" NAME="name"></P>
<P>Your Email <INPUT TYPE="text" SIZE="40" NAME="email">
<INPUT TYPE="submit" VALUE="Submit"></P>
The directory structure is as:
=> index.html
==> web.xml
==> weblogic.xml
==> classes\
===> GreetingServlet.class


Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1864
the folder structure should be something like
why is it
Saurabh Gour

Joined: Sep 09, 2003
Posts: 3
Hi Rahul, sorry for being late in trying out your advice. But it really does not work. I am still stuck up at the same place. Also I guess, that it has more to do with the content of web.xml rather than the directory structure. My WL console shows GreetingServlet as one of the deployed servlet but still it fails to show up when called by index.html or even separately. Is it possible to call a simple class directly instead of going through index.html. Or is there a way to debug this small application ? I just want to get rid of this silly problem - though a first step in my learning of web application.
Best Regards,
Padam Krishna
Ranch Hand

Joined: Jul 24, 2003
Posts: 37
Have you looked at u'r managed server logs, access logs and admin server logs. May be you can find more details there.
As a round about way: if you have coded the service method rather then doPost in your servlet then invoke your servlet by typing the servlet url in the address bar with query parameters and see if it is getting inoked or not.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Probs in deploying a sample web app using WLS81
It's not a secret anymore!