Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011278Openbravo ERPA. Platformpublic2009-11-09 12:272009-11-17 00:00
networkb 
alostale 
immediatemajoralways
closedfixed 
5
2.50MP5 
2.50MP92.50MP9 
Core
No
0011278: Incorrect mapping when a deactivated window is reactivated
A deactivated window is reactivated (IE Asset). After compiling, if user tries to access it, an error is shown regarding to mapping:

javax.servlet.ServletException: El Arropador (Wrapper) no puede hallar clase de servlet org.openbravo.erpWindows.org.openbravo.Asset.Asset o una clase de la que depende
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)

causa ra???z

java.lang.ClassNotFoundException: org.openbravo.erpWindows.org.openbravo.Asset.Asset
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)
As System Administrator, Go to General Setup > Application > System Info. Check "Customization allowed".
Go to Window, Tabs and Field. Activate Asset window.
Go to General Setup > Application > Menu.
Add a new entry.
Select "Window" as Action. And select "Asset" window.
Compile the application using: ant compile.development -Dtab=asset
Restart Tomcat and try to access it.
No tags attached.
Issue History
2009-11-09 12:27networkbNew Issue
2009-11-09 12:27networkbAssigned To => rafaroda
2009-11-10 10:04rafarodaNote Added: 0021669
2009-11-10 10:04rafarodaStatusnew => feedback
2009-11-10 17:11networkbTarget Version2.50MP7 => 2.50MP9
2009-11-11 13:36rafarodaNote Added: 0021722
2009-11-11 16:37networkbNote Added: 0021731
2009-11-11 16:37networkbStatusfeedback => new
2009-11-11 16:53rafarodaNote Added: 0021732
2009-11-11 16:53rafarodaAssigned Torafaroda => alostale
2009-11-11 17:26alostaleNote Added: 0021733
2009-11-11 17:26alostaleStatusnew => scheduled
2009-11-11 17:26alostalefix_in_branch => pi
2009-11-12 08:32alostaleNote Edited: 0021733
2009-11-12 08:32alostaleNote Edited: 0021733
2009-11-12 08:44hgbotCheckin
2009-11-12 08:44hgbotNote Added: 0021755
2009-11-12 08:44hgbotStatusscheduled => resolved
2009-11-12 08:44hgbotResolutionopen => fixed
2009-11-12 08:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ed455230e2888241ec197627fbea9bd2ef6d6c68 [^]
2009-11-16 13:57sureshbabuNote Added: 0021857
2009-11-16 13:57sureshbabuStatusresolved => closed
2009-11-16 13:57sureshbabuFixed in Version => 2.50MP9
2009-11-17 00:00anonymoussf_bug_id0 => 2898755

Notes
(0021669)
rafaroda   
2009-11-10 10:04   
I did the following steps and was able to see Asset window, enter, update and delete data:

1) In General Setup || Application || System Info tick Customization Allowed.
2) Went to Application Dictionary || Module and set In Development:
* core
* System Customization
3) In Application Dictionary || Windows, Tabs, and Fields || Window activated Asset record setting its module to System Customization.
4) In General Setup || Application || Menu created a new record with module System Customization.
5) Compile: ant compile.development -Dtab="asset" -Dtr="no"
6) Restarted Tomcat.

Any feedback?

Thanks.
(0021722)
rafaroda   
2009-11-11 13:36   
Please follow this document http://wiki.openbravo.com/wiki/ERP/2.50/Configuration_Manual/Configuration_changes_that_affect_the_Core_module [^]
(0021731)
networkb   
2009-11-11 16:37   
I did the following steps and was able to see but appears this error:

"Estado HTTP 500 -

type Informe de Excepción

mensaje

descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.

excepción

javax.servlet.ServletException: El Arropador (Wrapper) no puede hallar clase de servlet org.openbravo.erpWindows.org.openbravo.Asset.Asset o una clase de la que depende
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    java.lang.Thread.run(Thread.java:619)

causa raíz

java.lang.ClassNotFoundException: org.openbravo.erpWindows.org.openbravo.Asset.Asset
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    java.lang.Thread.run(Thread.java:619)

nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/6.0.20."


The steps:

1.-As System Administrator, Go to General Setup > Application > System Info. Check "Customization allowed".

2.-Go to Application Dictionary > Module and set Core In Development.

3.-I created a new module; type: template, and set in Development.

4.-In Application Dictionary > Windows, Tabs, and Fields > Window activated Asset with module Core.

5.-In General Setup > Application > Menu created a new record with module Core.
Select "Window" as Action. And select "Asset" window.

6.-Compile: ant compile.development -Dtab="asset" -Dtr="no"

7.-Restarted Tomcat.

(0021732)
rafaroda   
2009-11-11 16:53   
Actually you are performing an action that should not be allowed:
1) Activate Customization Allowed check-box in System Info.
2) And then create a Template module.

Asier, can you please comment on this issue?

Thanks.
(0021733)
alostale   
2009-11-11 17:26   
(edited on: 2009-11-12 08:32)
As Rafa says, the steps defined make no sense. Let me explain:
1. This step creates a template to allow core modifications.
2. It does not make sense to set core in development after creating a template to customize it.
3. You needn't manually create a template since you created with step 1. Furthermore, there shouldn't be more than 1 template in development at the same time.

Anyway, templates do not affect in this issue. The problem is as follows:
-Change isActive or Name in a existent core window.
-Check its associated tabs classes. They have an extra org.openbravo.

(0021755)
hgbot   
2009-11-12 08:44   
Repository: erp/devel/pi
Changeset: ed455230e2888241ec197627fbea9bd2ef6d6c68
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Nov 12 08:43:34 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ed455230e2888241ec197627fbea9bd2ef6d6c68 [^]

fixed bug 0011278: Incorrect mapping when changing core window

---
M src-db/database/model/triggers/AD_WINDOW_TRG2.xml
---
(0021857)
sureshbabu   
2009-11-16 13:57   
Tested working fine