Maya Bose

Greenhorn
+ Follow
since Jun 23, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Maya Bose

You're right, it should work. Only other thing I can think of is: check the full package name of the servlet exists in the <servlet>.
18 years ago

Originally posted by Jaimie Caldwell:
How can you tell when the Jboss service has finished starting on windows server?


When you can access your JBoss management console (takes a while, though).
18 years ago
Perhaps your server-wide settings are being overridden by your bean i.e. your bean isn't using the default datasource mapping?
I'm assuming you've amended your standardjbosscmp-jdbc.xml file and copied the postgreSQL .ds file and into the right place?
18 years ago
It looks like the SQL query used by your bean is not quite right. This should be inside your ejb-jar.xml file, and should conform to the EJB-QL standard e.g:
<query>
<query-method>
<method-name>findAll</method-name>
</query-method>
<ejb-ql>SELECT OBJECT(a) FROM QOTD AS a</ejb-ql>
</query>
18 years ago
Which version of JBoss are you using?
18 years ago
Have you tried http://localhost:8080/test/TestServlet?
You can then add more servlets like this:
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>TestServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>TestServlet2</servlet-name>
<servlet-class>TestServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TestServlet2</servlet-name>
<url-pattern>/TestServlet2</url-pattern>
</servlet-mapping>
Hope it helps.
18 years ago