Hi Larry-
It sounds like you need to setup a servlet mapping and definition for your
servlet. You can do this in the JMC by following these steps:
1. click on the Servlet Definitions link in the course-app application.
2. Click the edit button and enter the servlet class in the class name field
(in the same format you would with a java package - assume that
WEB-INF/classes is the classpath). In the name, display name, enter what you
want to use refer to the servlet with. (Course) You can enter any
initialization parameters you might have. Click update when you are done.
3. To setup a mapping, click the Servlet URL Mappings link in your
application meny on the left navigation.
4. Click the edit button and enter your mapping. Enter the virtual path
(this under your application root) and the name of your servlet. Click the
update button. For example if you want to access this servlet at
/servlet/Course, then enter just that.
5. I believe you need to restart your Jrun server to set the mappings. (I
get confused going back and forth from nozomi to 3.1...)
FYI: you can also do this in the web.xml file, but be careful with this
because the JMC writes to this file and it is easy to have your edits
overwritten.
<servlet>
<servlet-name>Course</servlet-name>
<init-param>
<param-name>initparam1</param-name>
<param-value>valueofparam</param-value>
</init-param>
<servlet-class>com.utils.Course</servlet-class>
<display-name>Course</display-name>
<description></description>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<url-pattern>/servlet/Course</url-pattern>
<servlet-name>Course</servlet-name>
</servlet-mapping>
Hope this helps.
-Drew Falkman
-----Original Message-----
From: Larry Owens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 12:15 PM
To: JRun-Talk
Subject: Still having a problem...[Jrun 3.1, IIS 5.0]
I've installed Jrun 3.1 on my Win2k Advanced server, got it configured to
work with IIS, and added a web application called course-app. I have a
class file that I'd like to associate with that application, and so I've
put it in the class directory under the WEB-INF directory of course-app.
I want to have the server call this servlet with a simple request;
http://localhost/courses - which would bring up the Course.class servlet.
I can't figure out where I have mis-configered the system. I tried calling
the course-app /ctest in the JMC, and calling it by defining the .class
file as Course, and then calling Course.class when /courses was called.
When I type in the following,
http://localhost/ctest/courses - I get:
Could not instantiate Course.class
java.lang.ClassNotFoundException: Course.class
I took this to mean that I didn't include this path in the classpath for
the server, so I added it to the java settings under the default server.
Still no luck.
I've read the servlet documentation, and I can't figure out what piece of
the puzzle I'm missing. Can anyone help me on this?
Thanks,
Larry
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists