Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat start fails with syntax error
Tomcat start fails with syntax error [message #231941] Thu, 28 May 2009 14:46 Go to next message
Carlos is currently offline Carlos
Messages: 2
Registered: July 2009
Junior Member
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 #231958 is a reply to message #231941] Thu, 28 May 2009 15:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1309
Registered: July 2009
Senior Member
Carlos wrote:
> 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.
>

After attempting to start the problem server, switch to the Debug
perspective and find the Debug view. It should show the terminated
server process and display the path of the executable on the first
nested level of the tree. You can right-click on this and select
Properties to view the full command that was executed. Is this command
really executing javaws.exe instead of javaw.exe?

Cheers,
Larry
Re: Tomcat start fails with syntax error [message #231965 is a reply to message #231958] Fri, 29 May 2009 07:38 Go to previous messageGo to next message
Carlos is currently offline Carlos
Messages: 2
Registered: July 2009
Junior Member
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
Re: Tomcat start fails with syntax error [message #231981 is a reply to message #231965] Fri, 29 May 2009 13:55 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1309
Registered: July 2009
Senior Member
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
Previous Topic:Creating a new Module Type
Next Topic:Re: Error in starting Tomcat 5.5
Goto Forum:
  


Current Time: Wed Oct 22 13:59:09 GMT 2014

Powered by FUDForum. Page generated in 0.02314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software