| Author |
Problem with new contex
|
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
Hi All, I created new contex called my in tomcat/webapps/. dir structure looks like tomcat/webapps/my/WEB-INF it has one web.xml file. I have done following entries in tomcat_home/Conf/server.xml file still i get 404 while trying to access this context as http://localhost:8090/my Kinldy hlep me !!! <Context path="/my" docBase="my" debug="0" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_examples_log." suffix=".txt" timestamp="true"/> <Ejb name="ejb/EmplRecord" type="Entity" home="com.wombat.empl.EmployeeRecordHome" remote="com.wombat.empl.EmployeeRecord"/> <Environment name="maxExemptions" type="java.lang.Integer" value="15"/> <Parameter name="context.param.name" value="context.param.value" override="false"/> <Resource name="jdbc/EmployeeAppDb" auth="SERVLET" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/EmployeeAppDb"> <parameter><name>username</name><value>sa</value></parameter> <parameter><name>password</name><value></value></parameter> <parameter><name>driverClassName</name> <value>org.hsql.jdbcDriver</value></parameter> <parameter><name>url</name> <value>jdbc:HypersonicSQL atabase</value></parameter> </ResourceParams> <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/> <ResourceParams name="mail/Session"> <parameter> <name>mail.smtp.host</name> <value>localhost</value> </parameter> </ResourceParams> <ResourceLink name="linkToGlobalResource" global="simpleValue" type="java.lang.Integer"/> </Context>
|
All desirable things in life are either illegal, banned, expensive or married to someone else !!!
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
what's this? <Ejb name="ejb/EmplRecord" type="Entity" home="com.wombat.empl.EmployeeRecordHome" remote="com.wombat.empl.EmployeeRecord"/>
|
 |
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
Hi Mike, I copied it from existing tag examples apps and did required change -Praful [ July 20, 2004: Message edited by: Praful Thakare ]
|
 |
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
some one kinldy help out...its still not working
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
From what examples? Tomcat is not an EJB container, so I would not expect these tags to work. I would expect these tags to cause problems.
|
 |
Praful Thakare
Ranch Hand
Joined: Feb 10, 2001
Posts: 613
|
|
Hi Mike, bunches of thanx for your replies,actully the problem was in copy paste. I copied the folders of existing context (examples ),which resuted in some exceptions like..tld not found..class not found..etc ect.. now it's working fine as I have removed those entries from web.xml Thanx again Cheers !! --Praful
|
 |
 |
|
|
subject: Problem with new contex
|
|
|