NetBeans 5.0 and Tomcat 4.1

Hello,
I'm using NetBeans 5.0 and I have been using the Bundled Tomcat version 5.5.9 for my servlet container and everything's been great. Now that I'm ready to push my application up to a web host, I found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet container. Tomcat 5.5 uses servlet container 2.4.
So I downloaded Tomcat 4.1 (which has 2.3) and I don't know how to properly tell Netbeans to use it. When I open Server Manager and select 'Add Server', I can't just tell NetBeans to point to my Tomcat 4.1 directory. It wants me to select from a dropdown list of servers and Tomcat 4.1 isn't in the list.
I tried to fake NetBeans out by selecting the 'Tomcat 5' server and pointing to my Tomcat 4.1 directory but I'm getting the following message when I try to run:
FAIL - Unknown command /deploy
C:\workspace\myApp\nbproject\build-impl.xml:425: Deployment error:
Can anyone point me in the right direction on how to get Tomcat 4.1 running with NetBeans 5.0?
Thanks,
Eric

I found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet containerPlease read the post before answering, the reasoning is crystal clear.
I don't have a concrete answer to this problem, but I do have a suggestion.
1) You can add your own tomcat server to netbeans. Under the runtime tab you will find servers, if you right click this you can add a server. Use this to manually configure your own server
2) as for the servlet spec problem, when creating a web project setting the java EE version to 1.3 might solve the problem... I can't tell this for sure because I've never done it.

Similar Messages

  • Netbeans 6.5 And tomcat

    how can i correctly configure tomcat with netbeans 6.5.. i installed tomcat separately with netbeans.. when i deploy an application. it says "Starting of Tomcat failed, the C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\catalina.bat startup script is missing.
    See the server log for details.
    BUILD FAILED (total time: 2 seconds)"
    Can you please help me with these

    That message is true if you did not install the bundled tomcat server that comes included with NB6. Otherwise you will have to start tomat up separately with the tomcat6.exe and add a NEW tomcat server to NB.

  • Netbeans and Tomcat

    Hello all.
    I have some confusion using Netbeans (v6.1) and Tomcat (v6).
    I have developed a Website that uses a MySql DB. The Website execute on the port 8080 with a DB named "Dev" and in a context call "/Dev" so I can access my application with "http://localhost:8080/Dev/". It works perfectly and everything is beautiful. I think it runs under the Tomcat_base that Netbeans includes (under /home/user/.netbeans/...).
    Then I want to put this Website in a kind of Production environment. So I copy the built .war to the "webapps" of my Tomcat (under /usr/local/tomcat...) and start the Tomcat server. I configured this Tomcat to work on the port 80 and in a context called "/Prod" so I should be able to run the application with "http://localhost/Prod/".
    The question is: I have different Databases for both environments (I mean different DB running on the same Mysql), so I don't know how to do the Dev-Prod change or configure it in an elegant way. I think I can just develop the Website in Development and before copying the .war file to Production, change both the path and the DB name in the "context.xml" file, and then build the WAR. I guess it must be a better way to do it, but I don't know it.
    Can someone give me some advice please?
    I appreciate your help, thank you very much.
    Sarah.

    I believe this is the way to do it:
    If your context is called MyProject, I imagine under tomcat/conf/catalina/localhost there is a file called MyProject.xml. You put configuration information such as database connection info in this file. This file should not be within the war file so when you alter MyProject and deploy it, it doesn't alter this file. In Eclipse IDE, you do not give it permission to alter this file (the option is a checkbox in one of the menu items), note: let it auto-generate it the first time, then yurn off that feature. Your production enviornment will have a different MyProject.xml file than your development enviornemnt. I suggest changing the file to read-only in both production and development so it doesn't accidently get altered.

  • Communication problem between NetBeans and Tomcat

    hi!
    i got a quite mysterious problem. here is what happens:
    - i start NetBeans 5.5.1 (the first time)
    - i want to debug my JSF-Project, the Debugger starts
    - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
    - Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
    okay.
    when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
    In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
    And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
    so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
    But the story goes on:
    When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
    i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
    thanks,
    flo.
    some system-info:
    - windows vista business 32-bit
    - no firewall is running
    - AntiVir Personal Edition IS running
    - Yahoo Widgets Engine IS running
    - no other software is running
    and finally the tomcat-log:
    Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
    Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
    Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
    Listening for transport dt_shmem at address: tomcat_shared_memory_id
    21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
    21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1862 ms
    21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    21.09.2007 18:27:54 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3626 ms

    As i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
    I hope this help you

  • Error starting web service with netbeans and tomcat

    Hi i'm trying to test a web service connection with mysql i follow all the steps showed here:
    http://jaxenter.com/from-database-to-restful-web-service-to-html5-in-five-minutes-48908.html
    the log :
    Using CATALINA_BASE:   "D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base"
    Using CATALINA_HOME:   "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3"
    Using CATALINA_TMPDIR: "D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\temp"
    Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_11"
    Using CLASSPATH:       "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3\bin\tomcat-juli.jar"
    17-Sep-2014 10:48:22.880 INFO [main] org.apache.catalina.core.AprLifecycleListener.init La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files\Java\jdk1.8.0_11\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\tools;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;C:\Windows\System32;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Git\bin;D:\Users\investigacion01\AppData\Roaming\npm;D:\Kony\ImageMagick;D:\Kony\Ant\bin;C:\Program Files\apache-ant-1.9.4\bin;C:\Program Files\Java\jdk1.8.0_11\bin;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\tools;.
    17-Sep-2014 10:48:23.062 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8084"]
    17-Sep-2014 10:48:23.086 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    17-Sep-2014 10:48:23.088 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
    17-Sep-2014 10:48:23.090 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    17-Sep-2014 10:48:23.090 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 523 ms
    17-Sep-2014 10:48:23.113 INFO [main] org.apache.catalina.core.StandardService.startInternal Arrancando servicio Catalina
    17-Sep-2014 10:48:23.113 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.3
    17-Sep-2014 10:48:23.120 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\HelloWorldWebService.xml
    17-Sep-2014 10:48:23.153 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:23.180 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorldWebService]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@2b6fe9b5]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
      at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4841)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4966)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ... 10 more
    Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:\Users\investigacion01\Documents\HelloWorldWebService\build\web] is not valid
      at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:627)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ... 13 more
    17-Sep-2014 10:48:23.181 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error durante el despliegue del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\HelloWorldWebService.xml
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorldWebService]]
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
    17-Sep-2014 10:48:23.182 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\manager.xml
    17-Sep-2014 10:48:23.462 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:23.871 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGenerator.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [347] milliseconds.
    17-Sep-2014 10:48:23.899 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\prueba.xml
    17-Sep-2014 10:48:23.902 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:25.055 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:25.061 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\ROOT.xml
    17-Sep-2014 10:48:25.158 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:25.166 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8084"]
    17-Sep-2014 10:48:25.185 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
    17-Sep-2014 10:48:25.186 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2096 ms
    17-Sep-2014 10:48:27.370 INFO [http-nio-8084-exec-3] org.apache.catalina.startup.HostConfig.undeploy Repliegue (undeploy) de la aplicación web que tiene como trayectoria de contexto /prueba
    17-Sep-2014 10:48:27.411 INFO [http-nio-8084-exec-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\prueba.xml
    17-Sep-2014 10:48:27.414 WARNING [http-nio-8084-exec-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:28.345 INFO [http-nio-8084-exec-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:28.374 INFO [http-nio-8084-exec-1] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/prueba]] after start() had already been called. The second call will be ignored.

    This message comes up for me when i run a project that is different than what's indicated in the error message. In fact, the project has been deleted, yet, it still is referenced during the "run" step.

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • Right problem with apache and tomcat

    Bonjour;
    I use a user login "apache" to stop/start Apache and tomcat. Because never launching apache et tomcat as root.
    But I have the following problem with apache (file error.log) :
    [Tue May  6 17:26:22 2003] [error] Connection "warpConnection" cannot connect
    [Tue May  6 17:26:22 2003] [error] Cannot open connection "warpConnection"
    [Tue May  6 17:27:01 2003] [error] Re-Trying to deploy connections
    As root the error msg does'nt exists (lost)
    Best regards;
    A+;

    Run it from the shell to see whats wrong:
    # httpd

  • Authentication problem with JWS and TOMCAT

    Hi everyone !
    I have a problem with Java Web Start (1.0.1) and Tomcat (4.0.4).
    I'm trying to call my application via Web server Tomcat with restricting access.
    My configuration is the following :
    The deployment descriptor web.xml is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>java</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>JNLP</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    <!-- Define a Security Constraint on this Application -->
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>standard</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- Define the Login Configuration for this Application -->
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>MY APPL</realm-name>
    </login-config>
    </web-app>
    And jnlp File is:
    <jnlp
    spec="1.0+"
    codebase="http://host:8080/Official/"
    href="Application.jnlp">
    <information>
    <title>Application release 0.10</title>
    <vendor> XXXX </vendor>
    <homepage href="/"/>
    <description>Application</description>
    <description kind="short">My Application</description>
    <icon href="Icon.gif"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3"/>
    <jar href="Jar1.jar"/>
    <jar href="Jar2.jar"/>
    <jar href="Jar3.jar"/>
    <jar href="Jar4.jar"/>
    <jar href="Jar5.jar"/>
    <jar href="Jar6.jar"/>
    <jar href="Jar7.jar"/>
    <jar href="Jar8.jar"/>
    <jar href="Jar9.jar"/>
    <jar href="Jar10.jar"/>
    <jar href="MyApplication.jar"/>
    </resources>
    <application-desc main-class="com.xxxx.tool.cm.MyApplication"/>
    </jnlp>
    With the above configuration the Java Web Start not work.
    I'm expecting the message box for insert username and password instead it returns the messagge error :
    An error occurred while launching/running the application.
    Vendor: XXXX
    Category: Download Error
    Unable to load resource: http://host:8080/Official/Application.jnlp
    The Exception error is:
    JNLPException[category: Download Error : Exception: java.lang.NullPointerException : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
         at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I have tried to remove the restrict access in the deployment descriptor (web.xml) and java Web Start WORKS !!!!!!
    I'll appreciate any idea or hint!
    Thanks in advance

    Check this out
    http://forum.java.sun.com/thread.jsp?forum=38&thread=456250
    Mad Einstein

  • Why do I need to restart Apache and Tomcat every time a java file is change

    If a java file is changed and complied the changes are not reflected if Tomcat is not restarted.
    The settings in server.xml are as:
    <!-- Tomcat Manager Context -->
    <Context path="/manager" docBase="manager" debug="0" privileged="true"/>
         <Context path="/cf" docBase="cf" debug="0" reloadable="false"/>
    Here "cf" is my Application folder under webapps. The reloadable property when set to "true" for standalone Tomcat on Windows98 reflects the changes for compiled java files without restarting Tomcat. But on Linux 7.1 with Apache 1.3.19 and Tomcat 4.0.3 this is not working.
    Also tried out with Manager Application of tomcat-users.xml with reloadable="false" as well as reloadable="true",
    But when I reload the application using the command
    http://servername:8080/manager/reload?path=/appli.name
    It tells me that the application is reloaded but changes in the java file are still not reflected.
    Also when reloaded through Manager Servlet, Only my load-on-startup servlet is reloaded, but other java classes are not.
    Is it neccessary to execute this reload command from the server itself. I m executing it from a remote m/c. and have mapped the application with a domain name virtually.
    Is it the case with Tomcat on Linux with Apache. Or is something going wrong on my part.
    Can someone Help out plz.
    Regards,
    Rupali

    or you can "touch" your web.xml file.
    touch web.xmlor that command is for *nix systems, not sure what the Windows command is.  But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to install Java and Tomcat on my VPS

    Hello,
    I am new in Java.
    I would like to install Java and Tomcat on my VPS server.
    Do you know which doc or info i should read?
    Thanks a lot.
    Gil

    The free Perian will do it for you automatically.
    Additional free new machine setup stuff:
    Install and update your Flash here
    http://get.adobe.com/flashplayer/
    Install Perian (addiitonal Quicktime codecs)
    http://perian.org/
    Install the Unarchiver (uncompress software)
    http://wakaba.c3.cx/s/apps/unarchiver.html
    Flip for Mac (for Windows media in Quicktime)
    http://www.telestream.net/flip4mac-wmv/overview.htm
    VLC (plays anything just about)
    http://www.videolan.org/
    Easy Find (finds everything on a Mac)
    http://www.devon-technologies.com/download/index.html
    OnyX (maintenance, cleanup, repair utility)
    http://www.titanium.free.fr/

  • Preinstalled apache, apache2 and tomcat

    Hello,
    I'm setting up a Sun Fire V490 running solaris 10 for use as a web server. I need to have Apache httpd version 2 and tomcat version 4.x to run.
    So I found that the machine comes with apache httpd 2 preinstalled and also apache httpd 1 with fully integrated tomcat engine.
    But as stated I need to have apache httpd 2 with tomcat running!
    Apart from configuring the system to run httpd version 2 instead of version 1 by use of svcadm, I'm wondering how to get a solid solution to also have tomcat running. Ok I could simply install a tomcat version from apache.org, but I would like to ensure that this is the right solution for e.g. future upgrades.
    So if anybody has got some more knowledge but this issue, I would be happy about letting me know!
    Thanks, Raimund

    Hey, I came into the same question while configuring tomact on Sun server.
    So, what did you finally do...........?
    any help will be great....
    Thanks,

  • Setting up eclipse and tomcat

    Does anyone here have any expertise configuring these two products?(eclipse and tomcat)
    I have my tomcat server running and it process them jsp pages just fine. I have also installed the plugin to get tomcat configured with eclispe.
    I am just having problems running a jsp file directly from tomcat. it always points to a file on the hd and not to the webapps area like it's supposed to......

    Sure - we use that combo for development all the time.
    What's the problem specifically? Did you create a new Tomcat project in Eclipse? If you did, then it will automatically add the project's web path as a context to Tomcat, and you can browse directly to it using your browser.
    FYI - note that the context that is created is going to point to the eclipse workspace directory - NOT the default webapps directory that you might have configured for Tomcat. That's OK.
    - K

  • Eclipse and Tomcat questions

    Hi everyone,
    Lastnight I setup Eclipse to work with Tomcat, which works very good, but there are something I don't understand.
    1. My files are put in my workspace in (C:\Documents and Settings\...etc)
    How does Tomcat (which is installed in C:\Tomcat) know that it should get the files from my workspace directory?
    Because in the C:\Tomcat directory I can't find any .XML file that refers to my workspace directory.
    2. How I developed my servlets till now, I had some other free editor, I needed to compile my servlets then restart Tomcat and then test it.
    With Eclipse + Tomcat plugin, all I need to do save the servlet and apparently the source code is compiled automatically. All I need to do is refresh the servlet in my browsers (very handy and easy to develop like this). But my question is, does Eclipse compile the servlet automatically after saving? And why doesn't tomcat have to be restarted?
    Just a few questions to understand it a bit better, I'm really happy with this setup as it makes everything a lot easier.
    Regards,
    Steven.

    I believe you will need to become familiar with and install:
    http://www.eclipse.org/webtools/
    HTH
    Darins
    "raul" <[email protected]> wrote in message
    news:b894c367f9750f367a2e8336f8fe93b1$[email protected]..
    > Hi, I downloaded the latest version of eclipse 3.1 and I've installed
    > apache tomcat in mi PC.
    > Eclipse has a plugin : org.eclipse.tomcat_4.1.30.1
    > My problem is that I don't know how to use the tomcat server with eclipse.
    > I readed some tutorials and they say that I have to configure using menu
    > Window > Preferences and then I will see the tomcat option. But that
    > option doesn't appears or I couldn't see it.
    > Another tutorial say that I have to activate a plugin in the following
    > menu location: Window > Customize Perspective > Commands and select the
    > checkbox for tomcat , but that option doesn't appears either.
    > What can I do, I want to use eclipse and tomcat together...
    > Can someone help me with this questions?
    >
    > Thanks so much.
    > Raul Torres
    >
    >
    >

  • Problem with Netbeans 7.1 and ME SDK 3.0.5 plugin

    Hi!
    I have problem plugin ME SDK 3.0.5 to Netbeans 7.1. When I try to install plugin into Netbeans I get this kind informations:
    Warning - could not install some modules: Profiler (Java ME Projects Support) - The module named org.netbeans.modules.profiler/1 was needed and not found. Java ME SDK CPU Profiler Snapshot Viewer - The module named org.netbeans.modules.profiler/1 was needed and not found. 5 further modules could not be installed due to the above problems.
    Does anyone know what is wrong?
    I am truly grateful for the answer!

    Hi Anvi,
    I think you posted in the right place as the J2ME SDK Team read this forum (though they sometimes don't respond promptly as we would have liked). I also got the same issue as you, but check out the responses by the J2ME SDK Team to: https://blogs.oracle.com/javamesdk/entry/update_java_me_sdk_through
    It seems there are issues with Netbeans 7.1, and they are fixing things for the next release for Netbeans 7.1.1 so I am sure they are aware of problems that we are encountering. Its fine for Netbeans 6.9/7 if you cannot wait though.

  • Jsp import package error after upgrading to jdk1.4.2_08 and tomcat 5.0

    I am trying to upgrade the jdk and tomcat from 1.3/3.3 to 1.4/5.0.
    My jsp imports worked fine prior to the upgrade, but now I get the following:
    Jun 6, 2005 10:01:17 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /C:/Tomcat/work/Catalina/localhost/Print//org/apac
    he/jsp\BillingPrompt_jsp.java [javac] Compiling 1 source file
    C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
    : package com.adware.print.database.inquire does not exist
    import com.adware.print.database.inquire.*;
    ^
    1 error
    A fatal error has occured for user: Unable to compile class for JSP
    Generated servlet error:
    C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
    : package com.adware.print.database.inquire does not exist
    import com.adware.print.database.inquire.*;
    The package in the import statement "import com.adware.print.database.inquire.*" actually has no classes in it. The classes are contained in "import com.adware.print.database.inquire.controller.*". If I change the import statement everything works. The problem is that I have 100s of jsps. If there is a work-around outside of changing the import statements, that would be best.
    Can anyone help? Thanks.

    do you know what url is being looked up? the message is complaining that the url is starting with the string "an]", which seems pretty bogus.

Maybe you are looking for

  • DVI to VGA adapter. Too short?

    Hello. Please do not blame me for being ignorant, I recently had to do a project and in order to connect to the screen, I need to use a DVI to VGA adapter, which is provided when I bought my MBP. But then, isnt it too short? How do I connect it then?

  • Labview 2011 file layout in executable

    I am working on upgrading my projects from v8.6 to 2011. one thing i noticed was that the file layout in the built executable has been changed to treat the executable itself as the root directory of the code sources. To better address my problem, i w

  • Element ISA12 is a coded list element. Code '00502' is not allowed.

    Hi B2B gurus, While our trading partner is sending 810 and 856, we are getting the below error Machine Info: (essaps000-u008.emrsn.com) Element ISA12 is a coded list element. Code '00502' is not allowed. Segment ISA is defined in the guideline at pos

  • Interface FTP - XI - FTP

    Hi, I need to make a interface that take a file via FTP , with this data call a BAPI to update a SAP table and send the same file to other FTP. The problem is that in when an error appears in the ftp receiver (ex. connection error or login error) thi

  • HT201363 I do not remember the questions? How do I find?

    I do not remember the answer to my questions, how can I find? Please help me. I'm deaf. I really appreciate the help you gave me.