[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2009-03-07 Thread Robert Blackburn (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679885#action_12679885
 ] 

Robert Blackburn commented on OFBIZ-1738:
-

I am having the same issue cristina reported earlier. I'm running Tomcat 6, on 
a windows machine (to demo the product). 
All the steps work fine, up until I run the catalina batch file. 

One thing I notices was that the catalina batch file attached to this ticket is 
different then the one that is generated by ofbiz.jar. This is the line in the 
generated file...
   set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:/tomcat6/ofbiz
and this is the line in the file attached to this ticket...
   set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=${ofbizHome}

If I manually replace that line and tried again, the batch file runs, but the 
errors fly by. The odd thing is that Tomcat actually starts up and I can browse 
to it fine, but it does not seem as OFBiz itself is running. I was able to grab 
block of some of the errors as they zoomed by, let me know and I can attach 
them here or email it to you (its a rather large block of text and I'm new here 
so I am not sure what the preferred method would be)

I hope this helps

 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: catalina.bat, catalina.properties, 
 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2009-03-07 Thread Robert Blackburn (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12679889#action_12679889
 ] 

Robert Blackburn commented on OFBIZ-1738:
-

Sorry to spam this issue, however after looking through my error logs I found 
that my issue seemed to come down to this error...
SEVERE: Error reading tld listeners java.lang.IllegalArgumentException: URI has 
an authority component

This (or something like this) is repeated many times and seems to be the main 
issue. I looked around to see if I could see what this is and I found this 
which might be of interest here...
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5086147

So, I opened my catalina.properties file and replaced all references to file:// 
with file:

The startup now runs without error for me. 

So for me to get this running on Woindows I had to replace that one line in in 
catalina.bat (set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=${ofbizHome}) and then 
replaced all file:// with file: in the catalina.properties files.


 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: catalina.bat, catalina.properties, 
 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2009-01-16 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12664464#action_12664464
 ] 

Jacques Le Roux commented on OFBIZ-1738:


Any news Vu ?

 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: catalina.bat, catalina.properties, 
 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-08-09 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12621176#action_12621176
 ] 

Jacques Le Roux commented on OFBIZ-1738:


Vu,

This is not how things works. To review your work the way you did I (or another 
commiter) would have to download your files and compare tehm with the existing 
ones. So please follow this guidance 
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices

Else these files will only  be available for those that are interested (ie not 
commited in trunk)

Thanks for your help

 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: catalina.bat, catalina.properties, 
 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-08-07 Thread vu hong thuan (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12620591#action_12620591
 ] 

vu hong thuan commented on OFBIZ-1738:
--

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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-08-07 Thread BJ Freeman (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12620658#action_12620658
 ] 

BJ Freeman commented on OFBIZ-1738:
---

could you put a link in the wiki
http://docs.ofbiz.org/display/OFBTECH/Tomcat
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: catalina.bat, catalina.properties, 
 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-07-23 Thread cristina (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12615984#action_12615984
 ] 

cristina commented on OFBIZ-1738:
-

I have done all the steps until the last one, but the last doesn't work. I'm 
using tomcat 5.5. I get the following message error:

D:\ofbiz-tomcat\apache-tomcat-5.5.26\bincatalina.bat run
Using CATALINA_BASE:   D:\ofbiz-tomcat\apache-tomcat-5.5.26
Using CATALINA_HOME:   D:\ofbiz-tomcat\apache-tomcat-5.5.26
Using CATALINA_TMPDIR: D:\ofbiz-tomcat\apache-tomcat-5.5.26\temp
Using JRE_HOME:D:\Java\jre1.5.0_16
Exception in thread main java.lang.NoClassDefFoundError:  
-Dofbiz/home=D:/ofbiz-tomcat/ofbiz

Can you help me, please?

Thank you in advanced.



 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-04-20 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12590765#action_12590765
 ] 

Jacques Le Roux commented on OFBIZ-1738:


Something I forgot to mention : you let some svn scoria in the 55 branch, I did 
not search if it was by purpose, I simply dropped them.

 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.



[jira] Commented: (OFBIZ-1738) Add support for running one instance of OfBiz under Tomcat

2008-04-13 Thread JIRA

[ 
https://issues.apache.org/jira/browse/OFBIZ-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12588380#action_12588380
 ] 

Ludovic Maître commented on OFBIZ-1738:
---

Hi all,

I've finished working on the Tomcat setup files. There is now 2 folders, one 
for Tomcat 5.5 (named tomcat55, validated with Tomcat 5.5.26) and another for 
Tomcat 6 (named tomcat6, validated wit Tomcat 6.0.16). Now the Tomcat server(s) 
use the Ofbiz SSL keystore. 
I've wrote a succinct documentation, should i or someone add it to the wiki ?

How to run OfBiz under Tomcat

Get OfBiz and Tomcat

mkdir ofbiz-tomcat
cd ofbiz-tomcat
svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
wget 
http://apache.crihan.fr/dist/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.tar.gz
tar -zxvf apache-tomcat-6.0.16.tar.gz

Compile OfBiz

cd ofbiz
ant clean  ant

Generate Tomcat templates
Tomcat 5.5:

java -jar ofbiz.jar -setup tomcat55

Tomcat 6:

java -jar ofbiz.jar -setup tomcat6

Install Tomcat templates in server configuration folder
Tomcat 5:

cd ../apache-tomcat-5.5.26
cp ../ofbiz/setup/tomcat55/catalina.sh ../ofbiz/setup/tomcat55/catalina.bat bin/
cp ../ofbiz/setup/tomcat55/catalina.properties 
../ofbiz/setup/tomcat55/server.xml conf/

cd ../apache-tomcat-6.0.16
cp ../ofbiz/setup/tomcat6/catalina.sh ../ofbiz/setup/tomcat6/catalina.bat bin/
cp ../ofbiz/setup/tomcat6/catalina.properties ../ofbiz/setup/tomcat6/server.xml 
conf/

Run Tomcat

./bin/catalina.sh run

Run a cluster of Tomcats
As usual for a Tomcat (and OfBiz) cluster. 


 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
 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.