3 Replies Latest reply on Oct 2, 2002 1:49 AM by pvamstel

    where to place jar files

      hi

      i am new to jboss.

      i have download jboss-3.0.2 and directly unzipped in to my system. i set the path as follows

      set PATH=c:\jboss-3.0.2\jboss-3.0.2;c:\jboss-3.0.2\jboss-3.0.2\bin;c:\jboss-3.0.2\jboss-3.0.2\lib;%PATH%
      set JAVA_HOME=c:\jdk1.3
      set PATH=c:\javasample;%PATH%

      set CLASSPATH=c:\jboss-3.0.2\jboss-3.0.2\lib;%CLASSPATH%
      set CLASSPATH=c:\jboss-3.0.2\jboss-3.0.2\lib\myjar.jar;%CLASSPATH%
      set CLASSPATH=c:\jboss-3.0.2\jboss-3.0.2\server\default\lib\myjar.jar;%CLASSPATH%

      i can browse the default page when i type http://localhost:8080/invoker

      and i can create a servlet class and keep it under web-inf/classes folder i do can browse the servlet with the url http://localhost:8080/invoket/servlet/servletname>

      i need to know the followings :-

      where should i keep (under which directroy)

      1] java classes (direct java classes files to access by jsp or html files
      2] jar files (contains java classes)
      3] ejb files

      and

      i have created one war file (my own application) and placed it under deploy folder. sometimes it is working with the url http://localhost:8080/myApp but on the sudden it is not woking.

      is there any procedure are there ? and also i wanted to know to use the jndi service for database

      i am very thankful to you for helping me in this regard

      thank you for your kindness

      good day,

      shiva

        • 1. Re: where to place jar files
          pvamstel

          You do not have to set the classpath.

          All is done in the run.bat file.

          If you want to add jars to jboss you can add them in the $jboss_dist/server/default/lib.

          War ear and rar files go in the $jboss_dist/server/default/deploy folder.

          • 2. Re: where to place jar files

            hi,

            shiva again, i got the following error while i browse the page HelloWorld.jsp (which call the HelloWorld.class)

            i suppose, i have to set the path properly or any one of the .xml file has to be modified pl see the error message and help me out

            thank you and take care

            shiva.

            Error message

            An error occurred between lines: 1 and 12 in the jsp file: /HelloWorld.jsp Generated servlet error: C:\WINDOWS\TEMP\Jetty__8080___invoker\HelloWorld$jsp.java:57: Class org.apache.jsp.HelloWorld not found. HelloWorld obj = new HelloWorld(); ^ An error occurred between lines: 1 and 12 in the jsp file: /HelloWorld.jsp Generated servlet error: C:\WINDOWS\TEMP\Jetty__8080___invoker\HelloWorld$jsp.java:57: Class org.apache.jsp.HelloWorld not found. HelloWorld obj = new HelloWorld(); ^ 2 errors Date: Tue, 01 Oct 2002 06:10:29 GMT Server: Jetty/RELEASE_MAJOR_MINOR (Windows 98 4.10 x86) Servlet-Engine: Jetty/RELEASE_MAJOR_MINOR (Servlet 2.3; JSP 1.2; java 1.3.0) Content-Type: text/html Content-Length: 2278
            HTTP ERROR: 500 Unable to compile class for JSP An error occurred between lines: 1 and 12 in the jsp file: /HelloWorld.jsp Generated servlet error: C:\WINDOWS\TEMP\Jetty__8080___invoker\HelloWorld$jsp.java:57: Class org.apache.jsp.HelloWorld not found. HelloWorld obj = new HelloWorld(); ^ An error occurred between lines: 1 and 12 in the jsp file: /HelloWorld.jsp Generated servlet error: C:\WINDOWS\TEMP\Jetty__8080___invoker\HelloWorld$jsp.java:57: Class org.apache.jsp.HelloWorld not found. HelloWorld obj = new HelloWorld(); ^ 2 errors
            RequestURI=/invoker/HelloWorld.jsp

            • 3. Re: where to place jar files
              pvamstel

              You have to create a war file.
              And in the war file you must have a
              WEB-INF/classes folder

              Put your class files there it should work