• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying Servelt on webappcabaret.com site

 
padmshree Patil
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
alo the site u're using does'nt support MS-Access.It uses mysql.it's simple.
 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic