Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resin configuration file

 
christine lorraine
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, pls check this configuration file... is there any problem...
our vm can't seem to find the servlets.
appreciate it very much.

<caucho.com>
<java compiler='internal' work-dir='work'/>
<http-server>
<thread-max>2</thread-max>
<thread-keepalive>1</thread-keepalive>
<app-dir>public_html</app-dir>
<caucho-status>true</caucho-status>
<srun host='99.99.999.9999' port='99999'/>
<host id='www.xxxxxxxx.net'>
<error-log id='log/error.log'/>
<war-dir>webapps</war-dir>
<web-app id='/'>
<classpath id='/home/ourdomain/public_html/WEB-INF/classes' source='/home/ourdomain/public_html/WEB-INF/classes'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
<path-mapping url-pattern='/servlet/*' real-path='/home/ourdomain/public_html/WEB-INF/classes'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>

</web-app>

<web-app id='/WebApp1/'>
<classpath id='/home/ourdomain/public_html/WebApp1/WEB-INF/classes' source='/home/ourdomain/public_html/WebApp1/WEB-INF/classes'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
<path-mapping url-pattern='/servlet/*' real-path='/home/ourdomain/public_html/WebApp1/WEB-INF/classes'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet>
<servlet-name>xAccountsManagement</servlet-name>
<servlet-class>servlets.AccountsManagement</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xAccountsManagement</servlet-name>
<url-pattern>AccountsManagement</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>xTableWriter</servlet-name>
<servlet-class>servlets.TableWriter</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xTableWriter</servlet-name>
<url-pattern>DisplayTable</url-pattern>
</servlet-mapping>

</web-app>
<web-app id='/WebApp2/'>
<classpath id='/home/ourdomain/public_html/WebApp2/WEB-INF/classes' source='/home/ourdomain/public_html/WebApp2/WEB-INF/classes'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
<path-mapping url-pattern='/servlet/*' real-path='/home/ourdomain/public_html/WebApp2/WEB-INF/classes'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>

<servlet>
<servlet-name>xUserManagement</servlet-name>
<servlet-class>servlets.UserManagement</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xUserManagement</servlet-name>
<url-pattern>UserManagement</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>xGroupManagement</servlet-name>
<servlet-class>servlets.GroupManagement</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xGroupManagement</servlet-name>
<url-pattern>GroupManagement</url-pattern>
</servlet-mapping>

</web-app>
<web-app id='/WebApp3/'>
<classpath id='/home/ourdomain/public_html/WebApp3/WEB-INF/classes' source='/home/ourdomain/public_html/WebApp3/WEB-INF/classes'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='xtp'/>
<path-mapping url-pattern='/servlet/*' real-path='/home/ourdomain/public_html/WebApp3/WEB-INF/classes'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>

<servlet>
<servlet-name>xUserManagement</servlet-name>
<servlet-class>servlets.UserManagement</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xUserManagement</servlet-name>
<url-pattern>UserManagement</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>xGroupManagement</servlet-name>
<servlet-class>servlets.GroupManagement</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xGroupManagement</servlet-name>
<url-pattern>GroupManagement</url-pattern>
</servlet-mapping>

</web-app>
</host>
</http-server>
</caucho.com>
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be mistaken, but why do you have your servlet mapped twice? Our <WEB-APP> tag looks like this (we're using Resin so it may differ slightly).
<web-app id='/'>
<classpath id='WEB-INF/classes' source='WEB-INF/source' compile='true'/>
<class-update-interval id='2'/>
<cache-mapping url-pattern='/' expires='2s'/>
<welcome-file-list>index.jsp, index.html</welcome-file-list>
<directory-servlet>none</directory-servlet>
<servlet-mapping>
<url-pattern>/servlet/*</url-pattern>
<servlet-name>invoker</servlet-name>
</servlet-mapping>
<servlet-mapping>
<url-pattern>*.jsp</url-pattern>
<servlet-class>com.caucho.jsp.JspServlet</servlet-class>
<servlet-name>jsp</servlet-name>
</servlet-mapping>
<file-store>WEB-INF/sessions</file-store>
</session-config>
</web-app>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic