aspose file tools*
The moose likes Servlets and the fly likes Deploying Servelt on webappcabaret.com site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Deploying Servelt on webappcabaret.com site" Watch "Deploying Servelt on webappcabaret.com site" New topic
Author

Deploying Servelt on webappcabaret.com site

padmshree Patil
Ranch Hand

Joined: Dec 18, 2000
Posts: 54
Hi,
I have registered to www.webappcabaret.com .I want to deploy my project (using Servlet,JSp<html,Ms-Acess) on this site.
First I tried to run simple servlet program(Hello.java).It's not running.Getting error as
HTTP 500 internal server Eror.
I have doubt about web.xml page editing.I followed the instruction given in tutorial.I just inserted the folowing code
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>
Hello
</servlet-name>
<servlet-class>
test.Hello
</servlet-class>
<load-on-startup>
-454677
</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>
Hello
</servlet-name>
<url-pattern>
/Hello
</url-pattern>
</servlet-mapping>
Remaining code in web.xml page as it is .I didn't deleted.Do I need to delete?
I copied hello.java and Hello.class files in
/contextname.web_inf/classes/test dir
I don't what's wroung?
please help me out
thanks,
padmashree
mohan gandhi
Greenhorn

Joined: Feb 18, 2001
Posts: 6
make sure all the classnames are correct in the web.xml file.Also in the web.xml file u've edited I see test.hello ,change it to hello.test.hello means hello class in a directory called test.change that to hello.it should work.
mohan gandhi
Greenhorn

Joined: Feb 18, 2001
Posts: 6
alo the site u're using does'nt support MS-Access.It uses mysql.it's simple.
Hema Menon
Ranch Hand

Joined: Oct 29, 2000
Posts: 569
Padma,
I was successful in running a simple servlet like HelloWorld on webappcabaret.com. I added the class file within the default package(Mine was ServletProjs/Hello) to the Web-inf/classes directory. I did not modify the web.xml file. The servlet was requested as http://www.webappcabaret.com/hmenon/servlet/ServletProjs.Hello
However I tried to develop a WAR file and deploy it but was not successful, nor was I successful in deploying the servlet using url pattern provided in the web.xml file.
Will let you know if I succeed,
Hmenon


~hm
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Servelt on webappcabaret.com site