Dofbiz/home=E
should specify the path to where the ofbiz.jar is located. manish sent the following on 8/12/2009 2:35 AM: > 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. >> > > > -- 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;
C:\Documents and Settings\subash>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:/ofbiz 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: BJ Freeman [mailto:[hidden email]] Sent: Wednesday, August 12, 2009 3:33 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server Dofbiz/home=E should specify the path to where the ofbiz.jar is located. manish sent the following on 8/12/2009 2:35 AM: > 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. >> > > > -- 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. |
Try replacing the slash with the back slash in the ofbiz.home folder.
Thanks, Raj manish wrote: > Hi; > > C:\Documents and Settings\subash>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:/ofbiz > 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: BJ Freeman [mailto:[hidden email]] > Sent: Wednesday, August 12, 2009 3:33 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Dofbiz/home=E > should specify the path to where the ofbiz.jar is located. > > manish sent the following on 8/12/2009 2:35 AM: > >> 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. >>> >>> >> >> > > |
Hi;
E:\>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:\ofbiz 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 4:08 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server Try replacing the slash with the back slash in the ofbiz.home folder. Thanks, Raj manish wrote: > Hi; > > C:\Documents and Settings\subash>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:/ofbiz > 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: BJ Freeman [mailto:[hidden email]] > Sent: Wednesday, August 12, 2009 3:33 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Dofbiz/home=E > should specify the path to where the ofbiz.jar is located. > > manish sent the following on 8/12/2009 2:35 AM: > >> 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. >>> >>> >> >> > > |
To me it looks like a wrong command line while running the Tomcat. You
put the echo statements in catalina batch script and post the out put to get a idea what is going wrong. Thanks, Raj manish wrote: > Hi; > > E:\>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:\ofbiz > 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 4:08 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Try replacing the slash with the back slash in the ofbiz.home folder. > > Thanks, > > Raj > > manish wrote: > >> Hi; >> >> C:\Documents and Settings\subash>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:/ofbiz >> 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: BJ Freeman [mailto:[hidden email]] >> Sent: Wednesday, August 12, 2009 3:33 PM >> To: [hidden email] >> Subject: Re: can we host this application inside webapps in tomacat server >> >> Dofbiz/home=E >> should specify the path to where the ofbiz.jar is located. >> >> manish sent the following on 8/12/2009 2:35 AM: >> >> >>> 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. >>>> >>>> >>>> >>> >>> >> >> > > > > |
Hi;
Please check this link: http://pastebin.com/mcf39603 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 4:25 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server To me it looks like a wrong command line while running the Tomcat. You put the echo statements in catalina batch script and post the out put to get a idea what is going wrong. Thanks, Raj manish wrote: > Hi; > > E:\>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:\ofbiz > 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 4:08 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > Try replacing the slash with the back slash in the ofbiz.home folder. > > Thanks, > > Raj > > manish wrote: > >> Hi; >> >> C:\Documents and Settings\subash>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:/ofbiz >> 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: BJ Freeman [mailto:[hidden email]] >> Sent: Wednesday, August 12, 2009 3:33 PM >> To: [hidden email] >> Subject: Re: can we host this application inside webapps in tomacat server >> >> Dofbiz/home=E >> should specify the path to where the ofbiz.jar is located. >> >> manish sent the following on 8/12/2009 2:35 AM: >> >> >>> 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. >>>> >>>> >>>> >>> >>> >> >> > > > > |
To me this problem seems to be at line 46.
set JAVA_OPTS="%JAVA_OPTS% -Dofbiz.home=E:\ofbiz" I do not have Windows environment to test the script. Therefore, I suggest the following: Check you do not have spaces in environment variables. or Remove the JAVA_OPTS and try using the CATALINA_OPTS instead. It should not make difference though, just give it a try and see if error changes. or Instead of JAVA_OPTS or CATALINA_OPTS, try modifying the command line as given below: i. Define OFBIZ_HOME environment variable e.g set OFBIZ_HOME=E:\ofbiz ii. Modify the command line by adding the -Dofbiz.home=%OFBIZ_HOME%. Look at how -Dcatalina.home and -Dcataline.base are passed. Thanks, Raj manish wrote: > Hi; > > Please check this link: http://pastebin.com/mcf39603 > > 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 4:25 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > To me it looks like a wrong command line while running the Tomcat. You > put the echo statements in catalina batch script and post the out put to > get a idea what is going wrong. > > Thanks, > > Raj > > > manish wrote: > >> Hi; >> >> E:\>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:\ofbiz >> 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 4:08 PM >> To: [hidden email] >> Subject: Re: can we host this application inside webapps in tomacat server >> >> Try replacing the slash with the back slash in the ofbiz.home folder. >> >> Thanks, >> >> Raj >> >> manish wrote: >> >> >>> Hi; >>> >>> C:\Documents and Settings\subash>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:/ofbiz >>> 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: BJ Freeman [mailto:[hidden email]] >>> Sent: Wednesday, August 12, 2009 3:33 PM >>> To: [hidden email] >>> Subject: Re: can we host this application inside webapps in tomacat server >>> >>> Dofbiz/home=E >>> should specify the path to where the ofbiz.jar is located. >>> >>> manish sent the following on 8/12/2009 2:35 AM: >>> >>> >>> >>>> 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. >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > |
Hi; I have a doubt, is it possible to but the ofbiz application in a server where tomcat is already installed and an application is running in it. With Regards, Manish.K www.cevalsoft.com Go Green Print only when necessary. |
do you mean, another tomcat instance is already running with this very
configuration and you try to start another instance with the same configuration? |
Hi Carsten Schinzer;
In my server there an application already running in tomcat, so my problem is how I can install the ofbiz in that server, will the ofbiz application effect my current running application. 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 7:26 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server do you mean, another tomcat instance is already running with this very configuration and you try to start another instance with the same configuration? |
Manish,
you can set up several tomcat instances to run next to each other. basically what you will need to do is configuring separate listen ports for you new instance. http://azeditech.com/tomcat/multiple-tomcat-instances.html Note that I consider this to be purely a Tomcat issue (hence further issues NOT for this list for discussion but rather (if you want to make people happy) an update suggestion for existing OFBiz documentation as referenced earlier on this thread. Note also, that the typical Tomcat templates in OFBIZ_HOME/framework/appserver/templates/tomcat6 may not apply in the event it is the non-default-ports-Tomcat instance that you want to run with OFBiz. And your application will only be reachable at http://localhost:<new_port>/ specified in the server/config.xml. In order to test, you may STOP your other Tomcat application and then startup the OFBiz one (just to see if things work out). However, mid term you will have to either separate physical hosts if you want to keep runing with default configs on both ends, or you wil have to change one of the two Tomcats to run on a different portset. Note that there is no issue to be expected once the port conflicts for the local Tomcats have been resolved. The two JVMs will run as isolated processes in your machine. Let me know if this resolves your startup issues (I hope so). Kind regards Carsten 2009/8/12 manish <[hidden email]> > Hi Carsten Schinzer; > > In my server there an application already running in tomcat, so my problem > is how I can install the ofbiz in that server, will the ofbiz application > effect my current running application. > > 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 7:26 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > do you mean, another tomcat instance is already running with this very > configuration and you try to start another instance with the same > configuration? > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
In reply to this post by wt@teksavvy.com
Yes, ofbiz has the feature that allows the party to login with different
usernames, provided Security Group has to be assigned to each username. This is beneficial as same person can login with different username and can associate each username with different secrity group. for example username as xxx could be assigned with security group CATALOGADMN(Catalog Admin) and username with yyyy could be assigned with security group ORDERADMN(Order Admin) If you need any further support on how to do this, please feel free to email us at ofbiz@palinfocom.net -- Best regards, Ajay S PIC Technologies, Mohali
|
In reply to this post by c.schinzer
Hi;
I changed the port to 8081; As I am new to application server, can u tell how I can invoke this ofbiz application by using www.onlineshopping.com instead of using localhost:8081\ecommerce 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 7:55 PM To: [hidden email] Subject: Re: can we host this application inside webapps in tomacat server Manish, you can set up several tomcat instances to run next to each other. basically what you will need to do is configuring separate listen ports for you new instance. http://azeditech.com/tomcat/multiple-tomcat-instances.html Note that I consider this to be purely a Tomcat issue (hence further issues NOT for this list for discussion but rather (if you want to make people happy) an update suggestion for existing OFBiz documentation as referenced earlier on this thread. Note also, that the typical Tomcat templates in OFBIZ_HOME/framework/appserver/templates/tomcat6 may not apply in the event it is the non-default-ports-Tomcat instance that you want to run with OFBiz. And your application will only be reachable at http://localhost:<new_port>/ specified in the server/config.xml. In order to test, you may STOP your other Tomcat application and then startup the OFBiz one (just to see if things work out). However, mid term you will have to either separate physical hosts if you want to keep runing with default configs on both ends, or you wil have to change one of the two Tomcats to run on a different portset. Note that there is no issue to be expected once the port conflicts for the local Tomcats have been resolved. The two JVMs will run as isolated processes in your machine. Let me know if this resolves your startup issues (I hope so). Kind regards Carsten 2009/8/12 manish <[hidden email]> > Hi Carsten Schinzer; > > In my server there an application already running in tomcat, so my problem > is how I can install the ofbiz in that server, will the ofbiz application > effect my current running application. > > 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 7:26 PM > To: [hidden email] > Subject: Re: can we host this application inside webapps in tomacat server > > do you mean, another tomcat instance is already running with this very > configuration and you try to start another instance with the same > configuration? > > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany |
Hey,
that sounds fairly easy: - you need a public IP address on your "localhost", i.e. an IP Address where your server can be reached from the internet. - you need a DNS entry for onlineshopping.com pointing to your IP address These two points will be handled by your ISP or your DNS provider. - then you need to make sure your ecommerce mount point is root, not /ecommerce: edit {OFBIZ_HOME}/specialpurpose/ecommerce/ofbiz-component.xml at the <webapp> element; change the mountpoint attribute from the default "/ecommerce" to "/", i.e. this then looks like: <webapp name="ecommerce" title="eCommerce" server="default-server" location="webapp/ecommerce" mount-point="/" app-bar-display="false"/> That's it :) 2009/8/13 manish <[hidden email]> > Hi; > > I changed the port to 8081; > As I am new to application server, can u tell how I can invoke this ofbiz > application by using www.onlineshopping.com instead of using > localhost:8081\ecommerce > > With Regards, > Manish.K > www.cevalsoft.com > > Go Green > Print only when necessary. > > |
Free forum by Nabble | Edit this page |