Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2014-07-31 08:522014-11-12 17:40
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR15Q1
StatusclosedFix in branchFixed in SCM revision88f346f9fcf1
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0027244: Tomcat 7 is not supported

DescriptionOpenbravo doesn't work with Tomcat 7, the problem is caused by current Weld version not supporting Tomcat 7.
Steps To Reproduce-Try to start Openbravo in Tomcat 7 -> This exception is thrown:
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
java.lang.NoClassDefFoundError: org/apache/AnnotationProcessor
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
    at org.apache.catalina.loader.WebappClassLoader.findClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(
    at org.apache.catalina.loader.WebappClassLoader.findClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.jboss.weld.environment.tomcat.Tomcat6Container.initialize(
    at org.jboss.weld.environment.servlet.Listener.contextInitialized(
    at org.apache.catalina.core.StandardContext.listenerStart(
    at org.apache.catalina.core.StandardContext.startInternal(
    at org.apache.catalina.util.LifecycleBase.start(
    at org.apache.catalina.core.ContainerBase$
    at org.apache.catalina.core.ContainerBase$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.ClassNotFoundException: org.apache.AnnotationProcessor
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    ... 25 more
TagsNo tags attached.
Attached Filesdiff file icon tomcat7.diff [^] (28,268 bytes) 2014-08-01 09:13 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0027245 closedalostale Openbravo ERP upgrade weld 
depends on defect 0028129 closedalostale Openbravo ERP API break for tomcat 7 support 
related to design defect 0027247 closedcaristu Openbravo ERP Tomcat 8 is not supported 
related to defect 0029849 closedalostale Openbravo ERP Not possible to overwrite the result of a callout from your own callout using a requestdispatcher an a decorator 
related to defect 00299213.0PR15Q3 closedmtaal Openbravo ERP ImportEntryProcessor.LocalHttpRequest compilation errors with Tomcat 7 
related to defect 0034653 closedalostale Openbravo ERP non existing url request displays axis services 
causes defect 0028151 closedalostale Retail Modules ci ret-full-oracle 1084 broken 
causes defect 00289493.0PR15Q2 closedalostale Openbravo ERP Business objects with document number can not be created from background processes 
causes defect 0030093 closedvmromanos Modules Contract Billing Background finishes with Error after 3.0PR15Q1 

-  Notes
alostale (manager)
2014-08-01 09:13

Reported problem is fixed by wel upgrade (0027245)

Having that solved it is possible to deploy an Openbravo instance in a Tomcat 7 servlet (extensive testing has NOT being done).

But there are still some problems when trying to work in Eclipse with it. If Tomcat 7 libraries are added to the classpath (which include servlet-api for servlet 3.0 specs), there are compilation errors in some classes implementing some of the 2.50 spec interfaces. Attached a partial solution for this issue. This code allows to compile with 3.0 api but fails with 2.50.
hgbot (developer)
2014-11-12 09:37

Repository: erp/devel/pi
Changeset: 88f346f9fcf1c935b9148772d391a4d85e36e35c
Author: Asier Lostalé <asier.lostale <at>>
Date: Wed Nov 12 09:24:21 2014 +0100
URL: [^]

fixed 27244: tomcat 7 support

  -implemented changes required (Servlet 3.0 compliance) to allow usage of
   tomcat 7 as web app server within eclipse
  -changed classpath in restart tomcat task to make it possible to restart
   from UI both in 6 and 7

M build.xml
M legal/Licensing.txt
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/servlet/
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/
M src-core/build.xml
M src-core/src/org/openbravo/base/
M src-test/src/org/openbravo/test/datasource/
M src-wad/src/org/openbravo/wad/web.xml
M src/org/openbravo/erpCommon/ad_forms/
A src-core/src/org/openbravo/base/
AugustoMauch (manager)
2014-11-12 17:40

Code reviewed and verified in pi@88f346f9fcf1

- Issue History
Date Modified Username Field Change
2014-07-31 08:52 alostale New Issue
2014-07-31 08:52 alostale Assigned To => alostale
2014-07-31 08:52 alostale Modules => Core
2014-07-31 08:52 alostale Triggers an Emergency Pack => No
2014-07-31 08:53 alostale Relationship added depends on 0027245
2014-07-31 10:04 alostale Relationship added related to 0027247
2014-08-01 09:13 alostale Note Added: 0069024
2014-08-01 09:13 alostale File Added: tomcat7.diff
2014-11-10 13:28 alostale Relationship added depends on 0028129
2014-11-11 11:05 alostale Review Assigned To => AugustoMauch
2014-11-12 09:37 hgbot Checkin
2014-11-12 09:37 hgbot Note Added: 0071583
2014-11-12 09:37 hgbot Status new => resolved
2014-11-12 09:37 hgbot Resolution open => fixed
2014-11-12 09:37 hgbot Fixed in SCM revision => [^]
2014-11-12 10:32 alostale Relationship added causes 0028151
2014-11-12 17:40 AugustoMauch Note Added: 0071613
2014-11-12 17:40 AugustoMauch Status resolved => closed
2014-11-12 17:40 AugustoMauch Fixed in Version => 3.0PR15Q1
2015-02-16 17:41 alostale Relationship added causes 0028949
2015-05-13 08:25 alostale Relationship added related to 0029849
2015-05-19 09:09 alostale Relationship added related to 0029921
2015-06-04 13:37 ngarcia Relationship added causes 0030093
2016-11-30 10:29 alostale Relationship added related to 0034653

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker