• Post Reply Bookmark Topic Watch Topic
  • New Topic

deploying servlet in jrun webserver  RSS feed

 
Rajesh Chandra
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Jrun4 and im using jruns web server .I have my servlet "RajWorld",in C:\JRun4\servers\default\default-ear\default-war\WEB-INF\classes\moreservlet\RajWorld.After starting the default server when i try to access my servlet which is in the package moreservlets by http:\\localhost:8100\moreservlet.Rajworld,I get error message http 500 internal server error.my web.xml which is in
C:\JRun4\servers\default\default-ear\default-war\WEB-INF is

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">


<web-app>

<display-name>JRun Default Web Application</display-name>
<description>The default web application for JRun</description>

<error-page>
<error-code>404</error-code>
<location>/errorPages/404.jsp</location>
</error-page>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<servlet>
<servlet-name>RajWorld</servlet-name>
<display-name>RajWorld</display-name>
<description />
<servlet-class>moreservlet.RajWorld</servlet-class>
</servlet>

<servlet-mapping>
<url-pattern>/</url-pattern>
<servlet-name>RajWorld</servlet-name>
<is-default>false</is-default></servlet-mapping>
<distributable>false</distributable>
<servlet>

</web-app>

the jrun-web which is also in C:\JRun4\servers\default\default-ear\default-war\WEB-INF is-

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jrun-web-app PUBLIC "-//Macromedia, Inc.//DTD jrun-web 1.0//EN"
"http://www.macromedia.com/dtd/jrun-web.dtd">

<!-- ============================================================= -->
<!-- This XML file contains web application elements that are -->
<!-- specific to the JRun Application Server -->
<!-- ============================================================= -->


<jrun-web-app>

<!-- =========================================================== -->
<!-- Virtual path mappings allow a resource path to be mapped -->
<!-- to a different physical location (i.e. not necessarily -->
<!-- within the web application root). A resource-path can -->
<!-- end with a wild card '*' indicating that all resources -->
<!-- paths that start with the given path will be resolved using -->
<!-- the system path. -->
<!-- =========================================================== -->

<!--
<virtual-mapping>
<resource-path>/images/*</resource-path>
<system-path>/usr/local/images</system-path>
</virtual-mapping>
-->

<!-- Set these to false for production, they are false by default -->
<reload>true</reload>
<compile>true</compile>

</jrun-web-app>

Im trying to break my head for this for quite some time.do i have to set classpath? I use j2sdk1.4.1 which is in C:\
Can anyone point out where I went wrong? Thanks in advance for those who endeavour to alliviete others problems and help others >
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!