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:c.schin...@googlemail.com] > Sent: Wednesday, August 12, 2009 3:29 AM > To: user@ofbiz.apache.org > 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 <manish.krish...@cevalsoft.com> > >> 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:c.schin...@googlemail.com] >> Sent: Tuesday, August 11, 2009 7:37 PM >> To: user@ofbiz.apache.org >> 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.