robertdoo / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

Conflict in Servlet versions #415

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and install 
http://builds.apache.org/job/Red5%20Trunk/lastSuccessfulBuild/artifact/trunk/tar
get/red5-server-1.0.2-RC1-server.tar.gz 
2. Run using red5.sh
3. Look at log output for errors. See errors loading webapps.
4. Remove lib/javaee-api-5.1.2.jar, lib/servlet-api-2.5.jar
5. Run using red5.sh
6. No errors.

What is the expected output? What do you see instead?

Expected no errors on start up. Got Caused by: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCooki
eConfig;

What version of the product are you using? On what operating system?

http://builds.apache.org/job/Red5%20Trunk/lastSuccessfulBuild/artifact/trunk/tar
get/red5-server-1.0.2-RC1-server.tar.gz 
on Mac OSX 10.8.4 and also on Ubuntu raring (openjdk 6)

Please provide any additional information below.

All webapps throwing the following error on initialisation.

Caused by: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCooki
eConfig;

These jars are removed and webapps load lib/javaee-api-5.1.2.jar, 
lib/servlet-api-2.5.jar . They have older versions of Servlet 2.5 I think than 
Servlet version in plugins/tomcat jars.

Original issue reported on code.google.com by e...@mrloop.com on 14 Jul 2013 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by mondain on 16 Jul 2013 at 9:36

GoogleCodeExporter commented 9 years ago
Delete your target directory and make sure that if you have a lib directory in 
the project build directory that it is clear of these offending jars. The 
current build will not pull them nor does it need them to compile or run. We 
are defaulting to Tomcat 7 now and it uses Servlet 3.0.

Original comment by mondain on 16 Jul 2013 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by mondain on 13 Aug 2013 at 3:02