Marvinbeans running on Tomcat Java hosting

User bb2ba884f2

18-02-2011 06:55:42

Hi to all !


I am getting in trouble with my hosting when running molconvert utility from Marvinbeans ( cross platform version).
When I execute a molconvert utility it give me the error - "Java not found".
Well I searched this forum and I found the answer here - https://www.chemaxon.com/forum/ftopic1579.html />I asked my hosting support to follow this link or to indicate me the JAVA_HOME path.


And the answer was the following:


" We only have the runtime to run a Java application. You would need to upload a .WAR file to have your application exploded on the hosting plan.



When deploying a .war file on a hosting account running Tomcat, the file will be exploded in the same directory that it is located when the Tomcat service is restarted automatically at 1:00 a.m., Arizona time. It is not possible to manually restart the Tomcat service.
"


What did they mean ? Or maybe they didn't understood what I need ?


Please give me more advance in this questions.


As I know my hosting plan is running on Linux, with Tomcat 5.0.27 version.

Best regards.

ChemAxon 7c2d26e5cf

22-02-2011 14:28:38

I do not know how you can access your server.I guess you have tried run molconvert on the server in command line but Java is not installed for your account.



Probably, only Tomcat has right to run Java code on this server. I guess your host support wanted to point to that. In this context, the answer of your host support gains meaning:



  1. Create a web application where you can insert your Java code in JSP or Java servlets.

  2. Wrap it as a WAR file. Upload the war file to Tomcat.


Tomcat will expand war automatically. After that you can access your web application via web just type its URL:


<address of tomcat>/<path of your a web application where tomcat mapped it>


Consult with your host support which is the exact url.


You can find books, manuals what is JSP (Java Serve Pages), how you can create a web applications.


http://en.wikipedia.org/wiki/JavaServer_Pages


http://en.wikipedia.org/wiki/Web_application


Just type "create Java web application" and you will get several hints.


If you need JSP examples, you can check JSP examples on our site, you can find their source in the JChem package.


http://www.chemaxon.com/products/online-tryouts/jchem-search/

User bb2ba884f2

23-02-2011 07:40:42










Tamas wrote:

I do not know how you can access your server.I guess you have tried run molconvert on the server in command line but Java is not installed for your account.



Probably, only Tomcat has right to run Java code on this server. I guess your host support wanted to point to that. In this context, the answer of your host support gains meaning:



  1. Create a web application where you can insert your Java code in JSP or Java servlets.

  2. Wrap it as a WAR file. Upload the war file to Tomcat.


Tomcat will expand war automatically. After that you can access your web application via web just type its URL:


<address of tomcat>/<path of your a web application where tomcat mapped it>


Consult with your host support which is the exact url.


You can find books, manuals what is JSP (Java Serve Pages), how you can create a web applications.


http://en.wikipedia.org/wiki/JavaServer_Pages


http://en.wikipedia.org/wiki/Web_application


Just type "create Java web application" and you will get several hints.


If you need JSP examples, you can check JSP examples on our site, you can find their source in the JChem package.


http://www.chemaxon.com/products/online-tryouts/jchem-search/



Hi Tamas!

I use PHP to execute molconvert utility. I also tried from SSH to run molconvert. In both cases it give me the error
"Java not found". What about this solution - https://www.chemaxon.com/forum/ftopic1579.html ? Maybe the hosting support have to do the same thing ? Or this solution is not valid for Tomcat ?

ChemAxon 7c2d26e5cf

25-02-2011 15:58:11

It is a configuration problem on your side.


Probably, the java command is missing from the PATH (as it is described in the linking topic).


You should consult with the administrator of the server why you can not access Java neither in ssh nor in php.