• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Deploying Servelt on webappcabaret.com site

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
alo the site u're using does'nt support MS-Access.It uses mysql.it's simple.
 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic