16. november 2004 - 21:36Der er
20 kommentarer og 1 løsning
Tomcat giver en exception nåt jeg deployer
Hej Alle
Når jeg prøver at deploye eXist.jar i tomcat får jeg følgende exception: "FAIL - Encountered exception java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet"
Jeg synes jeg har prøvet alt, men kan ikke få det til at virke.
Jeg køre Mac OS X.3.6 så CLASS_PATH skulle ikke være noget problem.
Håber at der er nogen af jer der kan hjælpe mig. Skal bruge det til et afgangsprojekt.
I got this error during some testing I was doing, but my problem was that the class name inside the file was not the same as the file name (class name = "pgm2" but file name was "pgm1.java"). I kept having this problem even after fixing the PATH variable. I had never set up a CLASSPATH variable, and was able to do compile for several days with no problems. Check and make sure the names match!
I was having this problem because I used netbeans to generate my code initially. It put a package statement at the top of my file. I deleted that line and now it runs just fine without messing with that classpath
Prøvede at starte tomcat i en anden installation jeg havde og det virkede, kunne også deploye. Så nu har jeg geninstalleret min maskine og det virker. Jeg har ingen idé om hvad der har været galt. Tror at det var classpath relateret.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.