Tomcat start fails with syntax error [message #231941] |
Thu, 28 May 2009 10:46  |
Eclipse User |
|
|
|
Hi all.
I've worked with WTP for about 6 months successfully and I'm really
happy with this feature, but today, when I went to my eclipse and
clicked on "Start", the following message appeared on the console:
Java(TM) Web Start 1.6.0_13
Sintaxis: javaws [opciones de ejecución] <archivo-jnlp>
javaws [opciones de control]
las opciones de ejecución pueden ser:
-verbose mostrar salida adicional
-offline ejecutar la aplicación sin conexión
-system ejecutar la aplicación desde la caché del sistema
únicamente
-Xnosplash ejecutar sin mostrar pantalla de bienvenida
-J<option> proporcionar opción a la máquina virtual
-wait iniciar proceso java y esperar a que se cierre
las opciones de control pueden ser:
-viewer mostrar el visor de caché en el panel de control java
-uninstall eliminar todas las aplicaciones de la caché
-uninstall <archivo-jnlp> eliminar la aplicación de la
caché
-import [opciones de importación] <archivo-jnlp> importar la
aplicación a la caché
las opciones de importación pueden ser:
-silent importar automáticamente (sin interfaz de usuario)
-system importar aplicación a la caché del sistema
-codebaseurl> extraer recursos de la base de códigos seleccionada
-shortcut instalar accesos directos como si el usuario hubiese
aceptado un aviso
-association instalar asociaciones como si el usuario hubiese
aceptado
un aviso
It seems like the command that eclipse is launching to start my tomcat
is corrupt. Has anyone come across this before? Any ideas?
Thanks in advance.
Carlos.
|
|
|
|
|
Re: Tomcat start fails with syntax error [message #231981 is a reply to message #231965] |
Fri, 29 May 2009 09:55  |
Eclipse User |
|
|
|
Carlos wrote:
> Hi Larry.
>
> I've checked what you said and the results are the following:
>
> - The full invoked command is :
>
> /usr/lib/jvm/java-6-sun-1.6.0.13/bin/javaw
> -Dcatalina.base=/home/carlos/dev/workspaceg/.metadata/.plugi ns/org.eclipse.wst.server.core/tmp0
> -Dcatalina.home=/home/carlos/dev/apache-tomcat-5.5.27
> -Dwtp.deploy=/home/carlos/dev/workspaceg/.metadata/.plugins/ org.eclipse.wst.server.core/tmp0/wtpwebapps
> -Djava.endorsed.dirs=/home/carlos/dev/apache-tomcat-5.5.27/c ommon/endorsed
> -Dfile.encoding=UTF-8 -classpath
> /home/carlos/dev/apache-tomcat-5.5.27/bin/bootstrap.jar:/usr /lib/jvm/java-6-sun-1.6.0.13/lib/tools.jar
> org.apache.catalina.startup.Bootstrap start
>
> As you may see, I'm working on an *nix OS, Ubuntu 9.04 exactly.
> Inspecting that executable I've seen that is a soft link to the javaws
> executable on the same directory.
>
> Obviously, executing this same command on a shell gives the same output.
>
> Thanks.
> Carlos
>
The command is correct and Eclipse is doing what it should. The problem
is that as you noted, the javaw is linked to javaws which is something I
assume Ubuntu did incorrectly. If you correct that javaw link to
execute the appropriate javaw, then you should be fine. You might check
was "java" links to. Hopefully it links to a "java" and you can use it
as a guide to what javaw should link to.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.03881 seconds