Hi, 
  thanks for your answer.
  I added tomcat-jsp-api and tomcat-servlet-api to the classpath, it now
looks like
  the following:

classpath =
D:\dev\workspace\gradle_test\test\build\classes\test;D:\dev\workspace\gradle_test\test\build\classes\main;D:
\dev\programs\gradle_cache\cache\org.apache.tomcat.embed\tomcat-embed-core\jars\tomcat-embed-core-7.0.11.jar;D:\dev\prog
rams\gradle_cache\cache\org.apache.tomcat.embed\tomcat-embed-logging-juli\jars\tomcat-embed-logging-juli-7.0.11.jar;D:\d
ev\programs\gradle_cache\cache\org.apache.tomcat.embed\tomcat-embed-jasper\jars\tomcat-embed-jasper-7.0.11.jar;D:\dev\pr
ograms\gradle_cache\cache\org.apache.tomcat\tomcat-servlet-api\jars\tomcat-servlet-api-7.0.11.jar;D:\dev\programs\gradle
_cache\cache\org.apache.tomcat\tomcat-jsp-api\jars\tomcat-jsp-api-7.0.11.jar;D:\dev\programs\gradle_cache\cache\org.apac
he.tomcat\tomcat-el-api\jars\tomcat-el-api-7.0.11.jar;D:\dev\programs\gradle_cache\cache\junit\junit\jars\junit-4.8.2.ja
r;D:\dev\programs\gradle_cache\cache\org.spockframework\spock-core\jars\spock-core-0.5-groovy-1.7.jar;D:\dev\programs\gr
adle_cache\cache\org.codehaus.groovy\groovy-all\jars\groovy-all-1.7.5.jar;D:\dev\programs\gradle_cache\cache\junit\junit
-dep\jars\junit-dep-4.8.2.jar;D:\dev\programs\gradle_cache\cache\org.hamcrest\hamcrest-core\jars\hamcrest-core-1.2.jar;D
:\dev\programs\gradle_cache\cache\org.scala-tools.testing\specs_2.8.1\jars\specs_2.8.1-1.6.7.2.jar;D:\dev\programs\gradl
e_cache\cache\org.scala-lang\scala-library\jars\scala-library-2.8.1.jar;D:\dev\programs\gradle_cache\cache\org.scala-lan
g\scala-compiler\jars\scala-compiler-2.8.1.jar;D:\dev\programs\gradle_cache\cache\org.scalatest\scalatest\jars\scalatest
-1.3.jar

But the exception is still there. Any more suggestions?

Regards,
  Christian


Francis Galiegue-4 wrote:
> 
> On Thu, Apr 7, 2011 at 10:44, "Christian Hödl" <c.ho...@gmx.net> wrote:
>> Hi,
>>  I'm trying to start Tomcat 7.0.11 from within an automated test.
>>  Unfortunately, when I call tomcat.start(), the following
>>  exception happens:
>>
>> Servlet /abc/ threw load() exception
>> java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
> [...]
>>
>> classpath =
>> D:\dev\workspace\gradle_test\test\build\classes\test;D:\dev\workspace\gradle_test\test\build\classes\main;D:
> [etc etc]
>>
>> Does anybody know, what could be the problem here?
>>
> 
> There isn't either of jsp-api or servlet-api in your classpath.
> 
> -- 
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> f...@one2team.com
> 40 avenue Raymond Poincaré
> 75116 Paris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.jasper.servlet.JspServlet-when-embedding-tomcat-7.0.11-tp31340591p31340854.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to