Hi, guys thanks for time and help, i am testing cuba in a linux server for acces from a network pc and i get this error
Error:
HTTP ERROR: 404
Problem accessing /. Reason:
Not Found
Powered by Jetty://
Logs:
root@test:/opt/studio-6.4.0/bin# ./studio.sh
Run Studio headless
00:01:46,180 INFO [j] CUBA Studio v.6.4.0 built on 2017-01-31 19:16:55
2017-02-01 00:01:46.255:INFO::main: Logging initialized @473ms
2017-02-01 00:01:46.440:INFO:oejs.Server:main: jetty-9.2.11.v20150529
2017-02-01 00:01:46.525:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /studio, did not find org.eclipse.jetty.jsp.JettyJspServlet
00:01:46,580 INFO [IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
2017-02-01 00:01:46.834:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@d83da2e{/studio,file:/opt/studio-6.4.0/web/,AVAILABLE}
2017-02-01 00:01:46.844:INFO:oejs.ServerConnector:main: Started ServerConnector@49438269{HTTP/1.1}{0.0.0.0:8111}
2017-02-01 00:01:46.846:INFO:oejs.Server:main: Started @1065ms
Test1:
root@test:/opt/studio-6.4.0/bin# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/bin/
root@test:/opt/studio-6.4.0/bin# ./studio.sh
ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-8-openjdk-amd64/bin/
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Test2:
root@test:/opt/studio-6.4.0/bin# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/bin
root@test:/opt/studio-6.4.0/bin# ./studio.sh
ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-8-openjdk-amd64/bin
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Test3:
root@test:/opt/studio-6.4.0/bin# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
root@test:/opt/studio-6.4.0/bin# ./studio.sh
Run Studio headless
14:15:40,713 INFO [j] CUBA Studio v.6.4.0 built on 2017-01-31 19:16:55
2017-02-01 14:15:40.791:INFO::main: Logging initialized @490ms
2017-02-01 14:15:40.900:INFO:oejs.Server:main: jetty-9.2.11.v20150529
2017-02-01 14:15:40.989:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /studio, did not find org.eclipse.jetty.jsp.JettyJspServlet
14:15:41,047 INFO [IOUtils] META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
2017-02-01 14:15:41.284:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@d83da2e{/studio,file:/opt/studio-6.4.0/web/,AVAILABLE}
2017-02-01 14:15:41.294:INFO:oejs.ServerConnector:main: Started ServerConnector@49438269{HTTP/1.1}{0.0.0.0:8111}
2017-02-01 14:15:41.295:INFO:oejs.Server:main: Started @996ms
One important thing: At first run, Studio creates several folders and files (.caches, config.xml etc). Please note that owner of this files is the user who has launched the script.
So if you run the script with sudo for the first time, you should launch it with sudo in future.
Hi, I’m trying to do the same thing, but my server does not have a DE at all, so having the first starting in GUI mode is not an option. How can I get Studio to create the initial caches/config.xml in headless mode? (Is it possible?)