Dear all,

i'm facing a prob for past few days that my servlets classes are not referenced properly in glass fish server .

i downloaded a project from sourceforge.net named Javalibrary
http://sourceforge.net/projects/javalibrary/

i imported all the files and all files working properly in netbeans i mean i can run the jsp files which dont have any dependency of the class file.

But when i log in i face prob of class not found (requested resource not avalibale) error. i mapped the deployment descriptor . let me show my deployment descriptor and the file structure.

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>BorrowRec</servlet-name>
<servlet-class>sjservlets.BorrowRec</servlet-class>
</servlet>
<servlet>
<servlet-name>ConnectionPool</servlet-name>
<servlet-class>sjservlets.ConnectionPool</servlet-class>
</servlet>
<servlet>
<servlet-name>ConnectionPoolServlet</servlet-name>
<servlet-class>sjservlets.ConnectionPoolServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>DatabaseUtilities</servlet-name>
<servlet-class>sjservlets.DatabaseUtilities</servlet-class>
</servlet>
<servlet>
<servlet-name>DBProcess</servlet-name>
<servlet-class>sjservlets.DBProcess</servlet-class>
</servlet>
<servlet>
<servlet-name>DBResults</servlet-name>
<servlet-class>sjservlets.DBResults</servlet-class>
</servlet>
<servlet>
<servlet-name>debug_bean</servlet-name>
<servlet-class>sjservlets.debug_bean</servlet-class>
</servlet>
<servlet>
<servlet-name>DriverUtilities</servlet-name>
<servlet-class>sjservlets.DriverUtilities</servlet-class>
</servlet>
<servlet>
<servlet-name>Form</servlet-name>
<servlet-class>sjservlets.Form</servlet-class>
</servlet>
<servlet>
<servlet-name>FormProcess</servlet-name>
<servlet-class>sjservlets.FormProcess</servlet-class>
</servlet>
<servlet>
<servlet-name>LibraryItem</servlet-name>
<servlet-class>sjservlets.LibraryItem</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>sjservlets.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>LoginProcess</servlet-name>
<servlet-class>sjservlets.LoginProcess</servlet-class>
</servlet>
<servlet>
<servlet-name>LogoutProcess</servlet-name>
<servlet-class>sjservlets.LogoutProcess</servlet-class>
</servlet>
<servlet>
<servlet-name>ReserveRec</servlet-name>
<servlet-class>sjservlets.ReserveRec</servlet-class>
</servlet>
<servlet>
<servlet-name>ServletUtilities</servlet-name>
<servlet-class>sjservlets.ServletUtilities</servlet-class>
</servlet>
<servlet>
<servlet-name>ShowParameters</servlet-name>
<servlet-class>sjservlets.ShowParameters</servlet-class>
</servlet>
<servlet>
<servlet-name>User</servlet-name>
<servlet-class>sjservlets.User</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>BorrowRec</servlet-name>
<url-pattern>/BorrowRec</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ConnectionPool</servlet-name>
<url-pattern>/ConnectionPool</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ConnectionPoolServlet</servlet-name>
<url-pattern>/ConnectionPoolServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DatabaseUtilities</servlet-name>
<url-pattern>/DatabaseUtilities</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DBProcess</servlet-name>
<url-pattern>/DBProcess</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DBResults</servlet-name>
<url-pattern>/DBResults</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>debug_bean</servlet-name>
<url-pattern>/debug_bean</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DriverUtilities</servlet-name>
<url-pattern>/DriverUtilities</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Form</servlet-name>
<url-pattern>/Form</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FormProcess</servlet-name>
<url-pattern>/FormProcess</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LibraryItem</servlet-name>
<url-pattern>/LibraryItem</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/Login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LoginProcess</servlet-name>
<url-pattern>/LoginProcess</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LogoutProcess</servlet-name>
<url-pattern>/LogoutProcess</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReserveRec</servlet-name>
<url-pattern>/ReserveRec</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletUtilities</servlet-name>
<url-pattern>/ServletUtilities</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ShowParameters</servlet-name>
<url-pattern>/ShowParameters</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>User</servlet-name>
<url-pattern>/User</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

and form calling sample is
<form name=login action="/JavaLibrary/servlet/sjservlets.LoginProcess" method="post">

where sjservlets is created in source directory as a servlet package.

kindly help me on this issue
i'm using glassfish server with this(V3.3)
here the screen shot http://tinypic.com/r/15ysosn/5(environment)

Thanks in advance.

:)

you did compile everything and deploy it correctly, did you? If you didn't, do that first (and read the manuals and tutorials to figure out how, don't ask for a step by step explanation here please).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.