[ https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620591#action_12620591 ]
thuanvh edited comment on OFBIZ-1738 at 8/7/08 3:40 AM: -------------------------------------------------------------- I found some errors in generate batch file for catalina.bat in windows environment 1. Should use forward-slash / than backward-slash \ in catalina.properties such as ofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz shared.loader=file://${ofbiz.home}/ofbiz.jar,\ ${ofbiz.home},\ ${ofbiz.home}/framework/base/dtd,\ ${ofbiz.home}/framework/base/config,\ ${ofbiz.home}/framework/entity/dtd,\ ${ofbiz.home}/framework/entity/config,\ 2. Error in catalina.bat should use set JAVA_OPTS=-Dofbiz.home="D:/Project/ofbiz-tomcat6/ofbiz" rather than set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz" 3. After I reconfig, I can run tomcat, but unable to start application because the following error Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.ControlEventListener" is already configured for this context. The duplicate definition has been ignored. Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.LoginEventListener" is already configured for this context. The duplicate definition has been ignored. ... Can you help me, please? Thanks was (Author: thuanvh): I found some errors in generate batch file for catalina.bat in windows environment 1. Should use forward-slash / than backward-slash \ in catalina.properties such as ofbiz.home=D:/Project/ofbiz-tomcat6/ofbiz shared.loader=file://${ofbiz.home}/ofbiz.jar,\ ${ofbiz.home},\ ${ofbiz.home}/framework/base/dtd,\ ${ofbiz.home}/framework/base/config,\ ${ofbiz.home}/framework/entity/dtd,\ ${ofbiz.home}/framework/entity/config,\ 2. Error in catalina.bat should use set JAVA_OPTS=-Dofbiz.home="D:/Project/Nammedia/nerp-tomcat6/nerp" rather than set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=D:/Project/Nammedia/nerp-tomcat6/nerp" 3. After I reconfig, I can run tomcat, but unable to start application because the following error Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.ControlEventListener" is already configured for this context. The duplicate definition has been ignored. Aug 7, 2008 5:21:17 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "org.ofbiz.webapp.control.LoginEventListener" is already configured for this context. The duplicate definition has been ignored. ... Can you help me, please? Thanks > Add support for running one instance of OfBiz under Tomcat > ---------------------------------------------------------- > > Key: OFBIZ-1738 > URL: https://issues.apache.org/jira/browse/OFBIZ-1738 > Project: OFBiz > Issue Type: New Feature > Components: framework > Affects Versions: SVN trunk > Environment: Mac OS X 10.5.2, JDK 1.5.0_13 > Reporter: Ludovic MaƮtre > Assignee: Jacques Le Roux > Priority: Minor > Fix For: SVN trunk > > Attachments: ofbiz-tomcat-setup.zip, tomcat.zip > > Original Estimate: 8h > Remaining Estimate: 8h > > This issue provide templates and patchs to run one instance of OfBiz under > Tomcat. > The templates are used to: > - setup the classpath of Tomcat, (catalina.properties) > - declare the ofbiz webapps in the server configuration > The files generated from the templates, with the command 'java -jar ofbiz.jar > -setup tomcat', should be copied in the $CATALINA_HOME/conf folder of Tomcat. > IIRC there is also some setup to perform in the first loaded webapp, and a > few other modifications in the code, i will digg into it this evening (French > riviera time) and create a patch which will be added to this issue. (the full > code is also published on my subversion server: > http://forge.ubik-products.com/repositories/apache-ofbiz/trunk/ , but good > luck to find the relveant parts :-)) > Best regards, -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.