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:[email protected]] Sent: Wednesday, August 12, 2009 4:25 PM
To: [email protected]
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:[email protected]] Sent: Wednesday, August 12, 2009 4:08 PM
To: [email protected]
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:[email protected]] Sent: Wednesday, August 12, 2009 3:33 PM
To: [email protected]
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:[email protected]] Sent: Wednesday, August 12, 2009 2:14 PM
To: [email protected]
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.





Reply via email to