The class that initiated the loading of myPackage.Person was in a jar file
that was in the classpath for java. I removed these jar files from the
classpath and copied these jar files to WEB-INF\lib. This solved my
ClassNotFoundProblem.

My other problem was solved by Rafizan Baharum
I had to add
<welcome-file-list>
    <welcome-file>BankSample/login.htm</welcome-file>
    </welcome-file-list>
to my web.xml file.




[EMAIL PROTECTED] am 30.01.2001 13:46:40

Bitte antworten an "jBoss" <[EMAIL PROTECTED]>
                                                            
                                                            
                                                            
  An:        [EMAIL PROTECTED]               
                                                            
  Kopie      (Blindkopie: Stephan Frind/Duesseldorf/Gebit)  
  :                                                         
                                                            
                                                            
                                                            
  Thema      [jBoss-User] jboss-tomcat                      
  :          ClassNotFoundException problem (deploying an   
             app in     a war file)                         
                                                            






I have a war file including some classes like this
WEB-INF\classes\myPackage\Person.class
In this war file I have also my images, jsp files etc.
I copy this war file to the deploy directory of jboss. And the deployment
seems to be OK
[J2EE Deployer] Create application bank.war
[J2EE Deployer] Installing web package: bank.war
[J2EE Deployer] Starting module bank.war
[EmbeddedTomcat] ContextManager: Adding context Ctx( /bank )
[EmbeddedTomcat] path="/bank" :jsp: init
[J2EE Deployer] J2EE application:
file:/D:/Programme/jboss_tomcat/jboss-2.0-FINAL/deploy/bank.war is
deployed.
I open the URL in a Webbrowser to start my application
(http://localhost:8080/bank). It still looks fine. But when tomcat tries to
compile a JSP I get a ClassNotFoundException: 'myPackage.Person'
How do I specify that tomcat finds this class in the war file?
Another question. How do I specify the html file that should be displayed
when a user enters 'http://localhost:8080/bank'? At the moment the browser
displays the directory contents and I have to select the proper html file.
Thanks a lot,
Stephan



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]






--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to