Ofbiz permits a party to be issued multiple usernames for login purposes. The document says that each username can provide the party with different access to the system.
Could someone give me a practical scenario where this is useful? As an additional thought, could it be that multiple usenames for a party is more applicable for the scenario where a party refers to a group and not a person. Thanks in advance. |
I think it would help if you have a look at the admin party's usernames. Remember admin is coincidently a party Id as well as username. One of the admin party's username is demoadmin, another is flexadmin. There is also admin and 1. The number 1 is for POS I assume. Also remeber each username is associated with one or more security groups. Hope this helps. Thanks Ahmed
|
Hi;
can we host this application inside webapps in tomcat server With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. |
In reply to this post by asdini
http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers
check out the Tomcat link. manish sent the following on 8/5/2009 8:00 AM: > Hi; > > can we host this application inside webapps in tomcat server > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
http://docs.ofbiz.org/display/OFBTECH/Tomcat
I followed the instructions on the link above, and managed to successfully setup Ofbiz to run under external Tomcat, however this does not answer your question. Ofbiz will not be under Tomcat's webapp directory, but it will run Ok.
|
In reply to this post by wt@teksavvy.com
Had a conversation with someone in the office and we came up with two scenarios ...
a) Based on the document; You have a person that has operations and administrative permission to the system. For day-to-day use you would want them to logon with their operations userlogin (and that more restrictive set of permissions). They would only logon with the admin userlogin when they need to perform administrative functions. b) Based on your last sentence; you have a B2B application where your customer is another business but that business has a number of people that work for them that can place orders for the business.
|
In reply to this post by wt@teksavvy.com
you have parties and party groups.
You can assigned roles both that all logins share. Login carry the Security for that login which along with roles determines access to components in ofbiz. Only a few should have full admin rights. also based on the party and or party group, the Myportal is setup for the most used pages for that party. a Scenario for a party group would be Acct Dept, Customer support, etc. under that would be the logins for those. Party usually only has one login. The security and roles for that login determine their access and operation they can perform. You can see the roles in the Data model book Vol 1 page 45 figure 2.6a Security is like can they Create, UPdate, View, Delete information. Bob Morley sent the following on 8/7/2009 10:57 AM: > Had a conversation with someone in the office and we came up with two > scenarios ... > > a) Based on the document; You have a person that has operations and > administrative permission to the system. For day-to-day use you would want > them to logon with their operations userlogin (and that more restrictive set > of permissions). They would only logon with the admin userlogin when they > need to perform administrative functions. > > b) Based on your last sentence; you have a B2B application where your > customer is another business but that business has a number of people that > work for them that can place orders for the business. > > > YinT wrote: >> Ofbiz permits a party to be issued multiple usernames for login purposes. >> The document says that each username can provide the party with different >> access to the system. >> Could someone give me a practical scenario where this is useful? >> >> As an additional thought, could it be that multiple usenames for a party >> is more applicable for the scenario where a party refers to a group and >> not a person. >> >> Thanks in advance. >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by asdini
Hi Ahmed;
I got this error after doing the required setup as mentioned in the link, but I am getting this error when I run Catalina. C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>catalina run Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp Using JRE_HOME: C:\Program Files\Java\jre6 Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz Could not create the Java virtual machine. With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: Ahmed Dini [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 10:01 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server http://docs.ofbiz.org/display/OFBTECH/Tomcat http://docs.ofbiz.org/display/OFBTECH/Tomcat I followed the instructions on the link above, and managed to successfully setup Ofbiz to run under external Tomcat, however this does not answer your question. Ofbiz will not be under Tomcat's webapp directory, but it will run Ok. BJ Freeman wrote: > > http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers > check out the Tomcat link. > > > manish sent the following on 8/5/2009 8:00 AM: >> Hi; >> >> can we host this application inside webapps in tomcat server >> >> With Regards, >> Manish.K >> www.cevalsoft.com >> >> Go Green >> Print only when necessary. >> >> >> >> > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- View this message in context: http://www.nabble.com/party-can-have-multiple-usernames-tp24820162p24831958.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Hi Manish, I suggest - not install \Java\jre in directory = C:\Program Files\.. Just direct to C:\java\jre6 Maybe, this will help. - Charles TJ ============= -----Original Message----- From: manish [mailto:[hidden email]] Sent: 11 Agustus 2009 20:08 To: [hidden email] Subject: RE: can we host this application inside webapps in tomacat server Hi Ahmed; I got this error after doing the required setup as mentioned in the link, but I am getting this error when I run Catalina. C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>catalina run Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp Using JRE_HOME: C:\Program Files\Java\jre6 Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz Could not create the Java virtual machine. With Regards, Manish.K www.cevalsoft.com P Go Green Print only when necessary. -----Original Message----- From: Ahmed Dini [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 10:01 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server http://docs.ofbiz.org/display/OFBTECH/Tomcat http://docs.ofbiz.org/display/OFBTECH/Tomcat I followed the instructions on the link above, and managed to successfully setup Ofbiz to run under external Tomcat, however this does not answer your question. Ofbiz will not be under Tomcat's webapp directory, but it will run Ok. BJ Freeman wrote: > > http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers > check out the Tomcat link. > > > manish sent the following on 8/5/2009 8:00 AM: >> Hi; >> >> can we host this application inside webapps in tomcat server >> >> With Regards, >> Manish.K >> www.cevalsoft.com >> >> P Go Green >> Print only when necessary. >> >> >> >> > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- View this message in context: http://www.nabble.com/party-can-have-multiple-usernames-tp24820162p24831958.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Hi;
This I got while debugging run org.apache.catalina.startup.Bootstrap start VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\loggi ng.properties -Xms512M -Xmx1024M -XX:MaxPermSize=512M -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y org.apache.catalina.startup.Bootstrap start With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: SELC Sales Div [mailto:[hidden email]] Sent: Tuesday, August 11, 2009 7:09 PM To: [hidden email] Subject: RE: can we host this application inside webapps in tomacat server Hi Manish, I suggest - not install \Java\jre in directory = C:\Program Files\.. Just direct to C:\java\jre6 Maybe, this will help. - Charles TJ ============= -----Original Message----- From: manish [mailto:[hidden email]] Sent: 11 Agustus 2009 20:08 To: [hidden email] Subject: RE: can we host this application inside webapps in tomacat server Hi Ahmed; I got this error after doing the required setup as mentioned in the link, but I am getting this error when I run Catalina. C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>catalina run Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp Using JRE_HOME: C:\Program Files\Java\jre6 Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz Could not create the Java virtual machine. With Regards, Manish.K www.cevalsoft.com P Go Green Print only when necessary. -----Original Message----- From: Ahmed Dini [mailto:[hidden email]] Sent: Wednesday, August 05, 2009 10:01 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server http://docs.ofbiz.org/display/OFBTECH/Tomcat http://docs.ofbiz.org/display/OFBTECH/Tomcat I followed the instructions on the link above, and managed to successfully setup Ofbiz to run under external Tomcat, however this does not answer your question. Ofbiz will not be under Tomcat's webapp directory, but it will run Ok. BJ Freeman wrote: > > http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers > check out the Tomcat link. > > > manish sent the following on 8/5/2009 8:00 AM: >> Hi; >> >> can we host this application inside webapps in tomcat server >> >> With Regards, >> Manish.K >> www.cevalsoft.com >> >> P Go Green >> Print only when necessary. >> >> >> >> > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- View this message in context: http://www.nabble.com/party-can-have-multiple-usernames-tp24820162p24831958.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by manish-25
Looks like your heap size JVM argument is not passed correctly to JVM.
try including it inside the double quotes. Thanks, Raj manish wrote: > Hi Ahmed; > > I got this error after doing the required setup as mentioned in the link, but I am getting this error when I run Catalina. > > C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>catalina run > Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 6.0 > Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 6.0 > Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp > Using JRE_HOME: C:\Program Files\Java\jre6 > Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz > Could not create the Java virtual machine. > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > -----Original Message----- > From: Ahmed Dini [mailto:[hidden email]] > Sent: Wednesday, August 05, 2009 10:01 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > > http://docs.ofbiz.org/display/OFBTECH/Tomcat > http://docs.ofbiz.org/display/OFBTECH/Tomcat > > I followed the instructions on the link above, and managed to successfully > setup Ofbiz to run under external Tomcat, however this does not answer your > question. Ofbiz will not be under Tomcat's webapp directory, but it will run > Ok. > > > > BJ Freeman wrote: > >> http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers >> check out the Tomcat link. >> >> >> manish sent the following on 8/5/2009 8:00 AM: >> >>> Hi; >>> >>> can we host this application inside webapps in tomcat server >>> >>> With Regards, >>> Manish.K >>> www.cevalsoft.com >>> >>> Go Green >>> Print only when necessary. >>> >>> >>> >>> >>> >> -- >> BJ Freeman >> http://www.businessesnetwork.com/automation >> http://bjfreeman.elance.com >> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro >> Systems Integrator. >> >> >> >> > > |
In reply to this post by manish-25
Well looking at your startup sequence, there definitely is conflicting info
there, check your command line at the highlighted sections (sorry, this is just set bold, so if your mail agent does not do RTF, bad luck) ... VM start exception: VM initialization failed for: C:\Program > Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m -Xmx512m*-Dofbiz.home=E:/ofbiz > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=C:\Program Files\Apache Software > Foundation\Tomcat 6.0\conf\loggi > ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > 6.0\endorsed -classpath C:\Program > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi > les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y > org.apache.catalina.startup.Bootstrap start > so your "exploded" startup line (amended by the Tomcat scripts) specifies two different initial and two different max Heap Sizes. I recommend two things: * set -Xms512M to both and -Xmx1024M to both values * if this is your production configuration, make sure you min and max setting are identical in order to reach good performance. Regards Carsten |
In reply to this post by manish-25
Hi Manish, I think your Java jdk CANNOT resolve path C:\Program Files\... Try to install you JAVA JDK in directory C:\Java\jdk1.6.0_12\jre\bin...etc see if there is any changes at error response. - Charles TJ ------- -----Original Message----- From: manish [mailto:[hidden email]] Sent: 11 Agustus 2009 20:52 To: [hidden email] Subject: RE: can we host this application inside webapps in tomacat server Hi; This I got while debugging run org.apache.catalina.startup.Bootstrap start VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\loggi ng.properties -Xms512M -Xmx1024M -XX:MaxPermSize=512M -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y org.apache.catalina.startup.Bootstrap start With Regards, Manish.K www.cevalsoft.com P Go Green Print only when necessary. |
In reply to this post by c.schinzer
Hi Carsten Schinzer;
Again I got this error: run org.apache.catalina.startup.Bootstrap start VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\logging.properties -Xms256M -Xmx512M -XX:MaxPermSize=512M -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug99833,suspend=y org.apache.catalina.startup.Bootstrap start Could not create the Java virtual machine. Invalid maximum heap size: -Xmx512m -Dofbiz.home=E:/ofbiz Fatal error: Target VM failed to initialize. With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: Carsten Schinzer [mailto:[hidden email]] Sent: Tuesday, August 11, 2009 7:37 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server Well looking at your startup sequence, there definitely is conflicting info there, check your command line at the highlighted sections (sorry, this is just set bold, so if your mail agent does not do RTF, bad luck) ... VM start exception: VM initialization failed for: C:\Program > Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m -Xmx512m*-Dofbiz.home=E:/ofbiz > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=C:\Program Files\Apache Software > Foundation\Tomcat 6.0\conf\loggi > ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > 6.0\endorsed -classpath C:\Program > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi > les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y > org.apache.catalina.startup.Bootstrap start > so your "exploded" startup line (amended by the Tomcat scripts) specifies two different initial and two different max Heap Sizes. I recommend two things: * set -Xms512M to both and -Xmx1024M to both values * if this is your production configuration, make sure you min and max setting are identical in order to reach good performance. Regards Carsten |
Did you try Chuck's suggestion, i.e. getting rid of the spaces in your paths
for JVM startup? You should then also change your entire CATALINA_HOME (which is C:\Program Files\Apache Software Foundation\Tomcat 6.0 from what I see below) to include zero white spaces, not only the "C:\Program Files" part of it. E.g. my CATALINA_HOME sits at D:\apache-tomcat-6.0.18, so no whitespace at all. Regards Carsten 2009/8/11 manish <[hidden email]> > Hi Carsten Schinzer; > > Again I got this error: > > run org.apache.catalina.startup.Bootstrap start > VM start exception: VM initialization failed for: > C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m > -Dofbiz.home=E:/ofbiz > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=C:\Program Files\Apache Software > Foundation\Tomcat 6.0\conf\logging.properties -Xms256M -Xmx512M > -XX:MaxPermSize=512M > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > 6.0\endorsed -classpath C:\Program > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > -Xrunjdwp:transport=dt_shmem,address=javadebug99833,suspend=y > org.apache.catalina.startup.Bootstrap start > > Could not create the Java virtual machine. > Invalid maximum heap size: -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > > -----Original Message----- > From: Carsten Schinzer [mailto:[hidden email]] > Sent: Tuesday, August 11, 2009 7:37 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Well looking at your startup sequence, there definitely is conflicting info > there, check your command line at the highlighted sections (sorry, this is > just set bold, so if your mail agent does not do RTF, bad luck) ... > > VM start exception: VM initialization failed for: C:\Program > > Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m > -Xmx512m*-Dofbiz.home=E:/ofbiz > > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > > -Djava.util.logging.config.file=C:\Program Files\Apache Software > > Foundation\Tomcat 6.0\conf\loggi > > ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M > > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > > 6.0\endorsed -classpath C:\Program > > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi > > les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > > -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y > > org.apache.catalina.startup.Bootstrap start > > > > so your "exploded" startup line (amended by the Tomcat scripts) specifies > two different initial and two different max Heap Sizes. > > I recommend two things: > * set -Xms512M to both and -Xmx1024M to both values > * if this is your production configuration, make sure you min and max > setting are identical in order to reach good performance. > > Regards > > > Carsten > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
Hi;
Hi; Even after removing the white space I am getting same error: E:\apache-tomcat-6.0.18\bin>catalina debug Using CATALINA_BASE: E:\apache-tomcat-6.0.18 Using CATALINA_HOME: E:\apache-tomcat-6.0.18 Using CATALINA_TMPDIR: E:\apache-tomcat-6.0.18\temp Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_12 Initializing jdb... > run run org.apache.catalina.startup.Bootstrap start VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=E:\apache-tomcat-6.0.18\conf\logging.properties -Xms256M -Xmx512M -XX:MaxPermSize=512M -Djava.endorsed.dirs=E:\apache-tomcat-6.0.18\endorsed -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;E:\apache-tomcat-6.0.18\bin\bootstrap.jar -Dcatalina.base=E:\apache-tomcat-6.0.18 -Dcatalina.home=E:\apache-tomcat-6.0.18 -Djava.io.tmpdir=E:\apache-tomcat-6.0.18\temp -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug54884,suspend=y org.apache.catalina.startup.Bootstrap start Could not create the Java virtual machine. Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz Fatal error: Target VM failed to initialize. With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: Carsten Schinzer [mailto:[hidden email]] Sent: Wednesday, August 12, 2009 3:29 AM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server Did you try Chuck's suggestion, i.e. getting rid of the spaces in your paths for JVM startup? You should then also change your entire CATALINA_HOME (which is C:\Program Files\Apache Software Foundation\Tomcat 6.0 from what I see below) to include zero white spaces, not only the "C:\Program Files" part of it. E.g. my CATALINA_HOME sits at D:\apache-tomcat-6.0.18, so no whitespace at all. Regards Carsten 2009/8/11 manish <[hidden email]> > Hi Carsten Schinzer; > > Again I got this error: > > run org.apache.catalina.startup.Bootstrap start > VM start exception: VM initialization failed for: > C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m > -Dofbiz.home=E:/ofbiz > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > -Djava.util.logging.config.file=C:\Program Files\Apache Software > Foundation\Tomcat 6.0\conf\logging.properties -Xms256M -Xmx512M > -XX:MaxPermSize=512M > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > 6.0\endorsed -classpath C:\Program > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > -Xrunjdwp:transport=dt_shmem,address=javadebug99833,suspend=y > org.apache.catalina.startup.Bootstrap start > > Could not create the Java virtual machine. > Invalid maximum heap size: -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > > -----Original Message----- > From: Carsten Schinzer [mailto:[hidden email]] > Sent: Tuesday, August 11, 2009 7:37 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Well looking at your startup sequence, there definitely is conflicting info > there, check your command line at the highlighted sections (sorry, this is > just set bold, so if your mail agent does not do RTF, bad luck) ... > > VM start exception: VM initialization failed for: C:\Program > > Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m > -Xmx512m*-Dofbiz.home=E:/ofbiz > > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > > -Djava.util.logging.config.file=C:\Program Files\Apache Software > > Foundation\Tomcat 6.0\conf\loggi > > ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M > > -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat > > 6.0\endorsed -classpath C:\Program > > Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software > > Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi > > les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program > > Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program > > Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug > > -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y > > org.apache.catalina.startup.Bootstrap start > > > > so your "exploded" startup line (amended by the Tomcat scripts) specifies > two different initial and two different max Heap Sizes. > > I recommend two things: > * set -Xms512M to both and -Xmx1024M to both values > * if this is your production configuration, make sure you min and max > setting are identical in order to reach good performance. > > Regards > > > Carsten > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
In reply to this post by c.schinzer
java does not tolerate spaces in path.
you still have spaces in your paths please check the log you sent. manish sent the following on 8/12/2009 12:12 AM: > Hi; > > > Hi; > Even after removing the white space I am getting same error: > > E:\apache-tomcat-6.0.18\bin>catalina debug > Using CATALINA_BASE: E:\apache-tomcat-6.0.18 > Using CATALINA_HOME: E:\apache-tomcat-6.0.18 > Using CATALINA_TMPDIR: E:\apache-tomcat-6.0.18\temp > Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_12 > Initializing jdb... >> run > run org.apache.catalina.startup.Bootstrap start > VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=E:\apache-tomcat-6.0.18\conf\logging.properties > -Xms256M -Xmx512M -XX:MaxPermSize=512M -Djava.endorsed.dirs=E:\apache-tomcat-6.0.18\endorsed > -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;E:\apache-tomcat-6.0.18\bin\bootstrap.jar -Dcatalina.base=E:\apache-tomcat-6.0.18 > -Dcatalina.home=E:\apache-tomcat-6.0.18 -Djava.io.tmpdir=E:\apache-tomcat-6.0.18\temp > -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug54884,suspend=y org.apache.catalina.startup.Bootstrap start > > Could not create the Java virtual machine. > Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > -----Original Message----- > From: Carsten Schinzer [mailto:[hidden email]] > Sent: Wednesday, August 12, 2009 3:29 AM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Did you try Chuck's suggestion, i.e. getting rid of the spaces in your paths > for JVM startup? You should then also change your entire CATALINA_HOME > (which is C:\Program Files\Apache Software Foundation\Tomcat 6.0 from what I > see below) to include zero white spaces, not only the "C:\Program Files" > part of it. > > E.g. my CATALINA_HOME sits at D:\apache-tomcat-6.0.18, so no whitespace at > all. > > Regards > > > Carsten > > 2009/8/11 manish <[hidden email]> > >> Hi Carsten Schinzer; >> >> Again I got this error: >> >> run org.apache.catalina.startup.Bootstrap start >> VM start exception: VM initialization failed for: >> C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m >> -Dofbiz.home=E:/ofbiz >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >> -Djava.util.logging.config.file=C:\Program Files\Apache Software >> Foundation\Tomcat 6.0\conf\logging.properties -Xms256M -Xmx512M >> -XX:MaxPermSize=512M >> -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat >> 6.0\endorsed -classpath C:\Program >> Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software >> Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug >> -Xrunjdwp:transport=dt_shmem,address=javadebug99833,suspend=y >> org.apache.catalina.startup.Bootstrap start >> >> Could not create the Java virtual machine. >> Invalid maximum heap size: -Xmx512m -Dofbiz.home=E:/ofbiz >> >> Fatal error: >> Target VM failed to initialize. >> >> With Regards, >> Manish.K >> www.cevalsoft.com >> >> Go Green >> Print only when necessary. >> >> >> -----Original Message----- >> From: Carsten Schinzer [mailto:[hidden email]] >> Sent: Tuesday, August 11, 2009 7:37 PM >> To: [hidden email] >> Subject: Re: can we host this application inside webapps in tomacat server >> >> Well looking at your startup sequence, there definitely is conflicting info >> there, check your command line at the highlighted sections (sorry, this is >> just set bold, so if your mail agent does not do RTF, bad luck) ... >> >> VM start exception: VM initialization failed for: C:\Program >>> Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m >> -Xmx512m*-Dofbiz.home=E:/ofbiz >>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >>> -Djava.util.logging.config.file=C:\Program Files\Apache Software >>> Foundation\Tomcat 6.0\conf\loggi >>> ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M >>> -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat >>> 6.0\endorsed -classpath C:\Program >>> Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software >>> Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi >>> les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program >>> Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program >>> Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug >>> -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y >>> org.apache.catalina.startup.Bootstrap start >>> >> so your "exploded" startup line (amended by the Tomcat scripts) specifies >> two different initial and two different max Heap Sizes. >> >> I recommend two things: >> * set -Xms512M to both and -Xmx1024M to both values >> * if this is your production configuration, make sure you min and max >> setting are identical in order to reach good performance. >> >> Regards >> >> >> Carsten >> >> > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
Hi;
I got this same bug again E:\apache-tomcat-6.0.18\bin>catalina debug Using CATALINA_BASE: E:\apache-tomcat-6.0.18 Using CATALINA_HOME: E:\apache-tomcat-6.0.18 Using CATALINA_TMPDIR: E:\apache-tomcat-6.0.18\temp Using JAVA_HOME: C:\Java\jdk1.6.0_12 Initializing jdb ... > run run org.apache.catalina.startup.Bootstrap start VM start exception: VM initialization failed for: C:\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=E:\apache-tomcat-6.0.18\conf\logging.properties -Xms256M -Xmx512M -XX:MaxPermSi ze=512M -Djava.endorsed.dirs=E:\apache-tomcat-6.0.18\endorsed -classpath C:\Java\jdk1.6.0_12\lib\tools.jar;E:\apache-tomcat-6.0.18\bin\bootstrap.jar -Dcatalina.base=E:\apache-tomcat-6.0.18 -Dcatalina.home=E:\apache-tomcat-6.0.18 -Djava.io.tmpdir=E:\apache-tomcat-6.0.18\temp -Xdebug -Xrunjdwp:transpo rt=dt_shmem,address=javadebug16705,suspend=y org.apache.catalina.startup.Bootstrap start Could not create the Java virtual machine. Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz Fatal error: Target VM failed to initialize. With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: BJ Freeman [mailto:[hidden email]] Sent: Wednesday, August 12, 2009 12:54 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server java does not tolerate spaces in path. you still have spaces in your paths please check the log you sent. manish sent the following on 8/12/2009 12:12 AM: > Hi; > > > Hi; > Even after removing the white space I am getting same error: > > E:\apache-tomcat-6.0.18\bin>catalina debug > Using CATALINA_BASE: E:\apache-tomcat-6.0.18 > Using CATALINA_HOME: E:\apache-tomcat-6.0.18 > Using CATALINA_TMPDIR: E:\apache-tomcat-6.0.18\temp > Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_12 > Initializing jdb... >> run > run org.apache.catalina.startup.Bootstrap start > VM start exception: VM initialization failed for: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=E:\apache-tomcat-6.0.18\conf\logging.properties > -Xms256M -Xmx512M -XX:MaxPermSize=512M -Djava.endorsed.dirs=E:\apache-tomcat-6.0.18\endorsed > -classpath C:\Program Files\Java\jdk1.6.0_12\lib\tools.jar;E:\apache-tomcat-6.0.18\bin\bootstrap.jar -Dcatalina.base=E:\apache-tomcat-6.0.18 > -Dcatalina.home=E:\apache-tomcat-6.0.18 -Djava.io.tmpdir=E:\apache-tomcat-6.0.18\temp > -Xdebug -Xrunjdwp:transport=dt_shmem,address=javadebug54884,suspend=y org.apache.catalina.startup.Bootstrap start > > Could not create the Java virtual machine. > Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > -----Original Message----- > From: Carsten Schinzer [mailto:[hidden email]] > Sent: Wednesday, August 12, 2009 3:29 AM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Did you try Chuck's suggestion, i.e. getting rid of the spaces in your paths > for JVM startup? You should then also change your entire CATALINA_HOME > (which is C:\Program Files\Apache Software Foundation\Tomcat 6.0 from what I > see below) to include zero white spaces, not only the "C:\Program Files" > part of it. > > E.g. my CATALINA_HOME sits at D:\apache-tomcat-6.0.18, so no whitespace at > all. > > Regards > > > Carsten > > 2009/8/11 manish <[hidden email]> > >> Hi Carsten Schinzer; >> >> Again I got this error: >> >> run org.apache.catalina.startup.Bootstrap start >> VM start exception: VM initialization failed for: >> C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xms256m -Xmx512m >> -Dofbiz.home=E:/ofbiz >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >> -Djava.util.logging.config.file=C:\Program Files\Apache Software >> Foundation\Tomcat 6.0\conf\logging.properties -Xms256M -Xmx512M >> -XX:MaxPermSize=512M >> -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat >> 6.0\endorsed -classpath C:\Program >> Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software >> Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program >> Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug >> -Xrunjdwp:transport=dt_shmem,address=javadebug99833,suspend=y >> org.apache.catalina.startup.Bootstrap start >> >> Could not create the Java virtual machine. >> Invalid maximum heap size: -Xmx512m -Dofbiz.home=E:/ofbiz >> >> Fatal error: >> Target VM failed to initialize. >> >> With Regards, >> Manish.K >> www.cevalsoft.com >> >> Go Green >> Print only when necessary. >> >> >> -----Original Message----- >> From: Carsten Schinzer [mailto:[hidden email]] >> Sent: Tuesday, August 11, 2009 7:37 PM >> To: [hidden email] >> Subject: Re: can we host this application inside webapps in tomacat server >> >> Well looking at your startup sequence, there definitely is conflicting info >> there, check your command line at the highlighted sections (sorry, this is >> just set bold, so if your mail agent does not do RTF, bad luck) ... >> >> VM start exception: VM initialization failed for: C:\Program >>> Files\Java\jdk1.6.0_12\jre\bin\java *-Xms256m >> -Xmx512m*-Dofbiz.home=E:/ofbiz >>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >>> -Djava.util.logging.config.file=C:\Program Files\Apache Software >>> Foundation\Tomcat 6.0\conf\loggi >>> ng.properties *-Xms512M -Xmx1024M* -XX:MaxPermSize=512M >>> -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat >>> 6.0\endorsed -classpath C:\Program >>> Files\Java\jdk1.6.0_12\lib\tools.jar;C:\Program Files\Apache Software >>> Foundation\Tomcat 6.0\bin\bootstrap.jar -Dcatalina.base=C:\Program Fi >>> les\Apache Software Foundation\Tomcat 6.0 -Dcatalina.home=C:\Program >>> Files\Apache Software Foundation\Tomcat 6.0 -Djava.io.tmpdir=C:\Program >>> Files\Apache Software Foundation\Tomcat 6.0\temp -Xdebug >>> -Xrunjdwp:transport=dt_shmem,address=javadebug72599,suspend=y >>> org.apache.catalina.startup.Bootstrap start >>> >> so your "exploded" startup line (amended by the Tomcat scripts) specifies >> two different initial and two different max Heap Sizes. >> >> I recommend two things: >> * set -Xms512M to both and -Xmx1024M to both values >> * if this is your production configuration, make sure you min and max >> setting are identical in order to reach good performance. >> >> Regards >> >> >> Carsten >> >> > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
As I pointed out before, log clearly tells about the problem i.e.
"Invalid initial heap size". I am not sure what is wrong there but certainly this is the cause of the problem as reported by Java executable. Does your system have enough RAM? Try removing the -Xms and -Xmx VM arguments all together, run Tomcat and if it goes beyond this point add them correctly. Also paste the part of the script where these two are defined. > Could not create the Java virtual machine. > Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > |
Hi;
What I got a new error: C:\>catalina run Using CATALINA_BASE: E:\apache-tomcat-6.0.18 Using CATALINA_HOME: E:\apache-tomcat-6.0.18 Using CATALINA_TMPDIR: E:\apache-tomcat-6.0.18\temp Using JRE_HOME: C:\Java\jre6 Exception in thread "main" java.lang.NoClassDefFoundError: -Dofbiz/home=E Caused by: java.lang.ClassNotFoundException: -Dofbiz.home=E:.ofbiz at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. -----Original Message----- From: Raj Saini [mailto:[hidden email]] Sent: Wednesday, August 12, 2009 2:14 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server As I pointed out before, log clearly tells about the problem i.e. "Invalid initial heap size". I am not sure what is wrong there but certainly this is the cause of the problem as reported by Java executable. Does your system have enough RAM? Try removing the -Xms and -Xmx VM arguments all together, run Tomcat and if it goes beyond this point add them correctly. Also paste the part of the script where these two are defined. > Could not create the Java virtual machine. > Invalid initial heap size: -Xms256m -Xmx512m -Dofbiz.home=E:/ofbiz > > Fatal error: > Target VM failed to initialize. > |
Free forum by Nabble | Edit this page |