Avatar billede ktl Nybegynder
23. april 2001 - 11:09 Der er 11 kommentarer og
1 løsning

Resin JSP server

Jeg har prøvet at installere resin,d et skal ikke køre med apache eller anden webserver bare standalone. Når jeg kører httpd.exe skriver følgende fejl ud indtil jeg stopper den igen....

C:\\resin-1.2.5\\bin>httpd -java_home c:\\jdk1.3.0_02
Usage: java [-options] class [args...]
          (to execute a class)
  or  java -jar [-options] jarfile [args...]
          (to execute a jar file)

where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
                  set search path for application classes and resources
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -showversion  print product version and continue
    -? -help      print this help message
    -X            print help on non-standard options
Avatar billede disky Nybegynder
23. april 2001 - 11:19 #1
mystisk, har du configuret config filen ?

Når jeg skriver httpd.exe starter den en lille graphics application hvor jeg kan starte og stoppe serveren.
Avatar billede ktl Nybegynder
23. april 2001 - 12:28 #2
nope har ikke rørt den, den starter osse det lille vindue med start/stop op, men i konsollen bliver den ved med at dumpe ovenstående fejlbesked....hvis jeg ligger resin på desktoppen , kommer den med en anden besked.
Exception in thread \"main\" java.lang.NoClassDefFoundError: and
Avatar billede disky Nybegynder
23. april 2001 - 13:08 #3
et vildt gæt: jeg tror config er i uorden.

skal jeg poste min ?
Avatar billede ktl Nybegynder
23. april 2001 - 13:31 #4
det er et forsøg værd
Avatar billede disky Nybegynder
23. april 2001 - 13:32 #5
<!--
  - The Resin configuration file.
  -
  - This example file is more complicated than is needs to be because
  - it makes several configurations explicit that can be simplified and
  - because it needs to configure the examples.
  -
  - Look in conf/samples for more realistic sample configurations.
  -  conf/samples/simple.conf - a simple, basic configuration
  -  conf/samples/deploy.conf - a simple configuration for deployment
  -
  - The configuration is based on a purely element-based XML.  To make
  - it easier to read, attributes can be used as syntactic sugar.
  -
  - The following are equivalent:
  - <foo><bar>13</bar></foo>  - canonical representation, but verbose
  - <foo bar=13/>            - typical configuration
  - <foo><bar id=13/></foo>  - sometimes useful
  -->
 
<caucho.com>

<log id=\'/caucho.com/jsp\' href=\'stderr:\' timestamp=\'[%H:%M:%S.%s]\'/>


<!-- Security providers.  Adding JSSE looks like:
  - <security-provider id=\'com.sun.net.ssl.internal.ssl.Provider\'/>
  -->

<!--
  - You can change the compiler to \"internal\" or jikes
  - and change the work-dir
  -->
<java compiler=\"internal\" compiler-args=\"\" work-dir=\'work\'/>

<!--
  - Sample database pool configuration
  - The JDBC name is java:comp/jdbc/test
  -->
<resource-ref>
  <res-ref-name>jdbc/test</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <init-param driver-name=\"org.gjt.mm.mysql.Driver\"/>
  <init-param url=\"jdbc:mysql://localhost:3306/test\"/>
  <init-param user=\"\"/>
  <init-param password=\"\"/>
  <init-param max-connections=\"20\"/>
  <init-param enable-transaction=\"false\"/>
</resource-ref>

<!--
  - Use precompiled JSP classes if available.
  - \'static-encoding\' - optimization if you stick to one character set
  -->
<jsp precompile=\'true\' static-encoding=\'true\'/>

<!--
  - For production sites, change class-update-interval to something
  - like 60, so it only checks for updates every minute.
  -->
<http-server>
  <!--
    - The root file directory of the server.  Apache users will change
    - this to /usr/local/apache/htdocs and IIS users will change it
    - to d:\\inetpub\\wwwroot
    -->
  <app-dir>c:\\apache\\htdocs</app-dir>

  <!-- the http port -->
  <http port=\'8080\'/>

  <!--
    - The srun port, read by both JVM and plugin
    - 127.0.0.1 is the localhost
    -->
  <srun host=\'127.0.0.1\' port=\'6802\'/>

  <!--
    - How to add SSL:
    -
    - <http port=8443>
    -  <ssl>true</ssl>
    -  <key-store-type>pkcs12</key-store-type>
    -  <key-store-file>keys/server_cert.p12</key-store-file>
    -  <key-store-password>changeit</key-store-password>
    - </http>
    -->

  <!--
    - Select an error page to display when the connection fails.
    -
    - <error-page location=\'connection\' location=\'/my-error-page.html\'/>
    -->

  <!-- To disable /caucho-status, set this to false -->
  <caucho-status>true</caucho-status>

  <!-- how often to check servlets for changes (id used for brevity) -->
  <class-update-interval id=\'2\'/>

  <!-- maximum number of threads -->
  <thread-max>150</thread-max>

  <!--
    - How many threads to wait for keepalives.  Should be at least the
    - number of Apache processes to get good performance.
    -->
  <thread-keepalive id=\'100\'/>
  <!--
    - How long an idle keepalive connection should listen to the socket.
    -->
  <thread-timeout id=\'30s\'/>

  <!--
    - Enable internal caching.
    - \'size\' is the memory size in kb
    - \'entries\' is the number of entries in the memory cache
    -->
  <cache dir=\'cache\' size=\'1024\' entries=\'1024\'/>

  <!-- default host if no other host matches -->
  <host id=\'\'>
    <!--
      - The standalone server should uncomment for access logging.
      - With another web server, like Apache, the web server will
      - log this information.
    <access-log id=\'log/access.log\'
          format=\'%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"\'/>
      -->

    <error-log id=\'log/error.log\'/>

    <!--
      - Specifies an automatically-expanding .war dir.  Any foo.war
      - file will be expanded to a /foo application.
      -->
    <war-dir id=\'webapps\'/>

    <web-app id=\'/\'>
      <!--
        - The classpath directive may be repeated.  Source is optional
        - Servlets and beans generally belong in WEB-INF/classes
        -->
      <classpath id=\'WEB-INF/classes\'
                source=\'WEB-INF/classes\'
                compile=\'true\'/>

      <!--
        - Expires time for a cacheable file.  Production sites will
        - normally change this to \'15m\'
        -->
      <cache-mapping url-pattern=\'/\' expires=\'2s\'/>

      <!--
        - set the pages to be used as welcome (index) files
        -->
      <welcome-file-list>index.xtp, index.jsp, index.html</welcome-file-list>

      <session-config>
        <session-max>4096</session-max>
        <session-timeout>30</session-timeout>
        <enable-cookies>true</enable-cookies>
        <enable-url-rewriting>true</enable-url-rewriting>

        <!--
          - Store sessions in the filesystem, so they can persist across
          - servlet and class changes.
          -
          - This may be commented out in deployment for better performance.
          -->
        <file-store>sessions</file-store>
      </session-config>

      <!-- enable multipart-mime/form processing -->
      <multipart-form/>

      <!--
        - special mapping so /servlet/pkg.MyServlet invokes pkg.MyServlet
        -->
      <servlet-mapping url-pattern=\'/servlet/*\' servlet-name=\'invoker\'/>

      <servlet-mapping url-pattern=\'*.xtp\'
                      servlet-name=\'com.caucho.jsp.XtpServlet\'/>
      <servlet-mapping url-pattern=\'*.jsp\'
                      servlet-name=\'com.caucho.jsp.JspServlet\'/>

      <!--
        - The following entries configuration the examples.  You may safely
        - delete anything from here down.
        -->

      <!-- Application init parameters, see Env.java to get the values -->
      <context-param info=\'An application information string\'/>

      <!-- snoop-servlet handles all urls starting with /snoop -->
      <servlet-mapping url-pattern=\'/snoop/*\' servlet-name=\'snoop-servlet\'/>

      <!-- configure snoop-servlet with init parameters -->
      <servlet servlet-name=\'snoop-servlet\' servlet-class=\'Env\'>
        <init-param info=\'A servlet information string\'/>
      </servlet>

      <!-- /~user maps to user directories -->
      <path-mapping url-regexp=\'^/~([^/]*)\' real-path=\'/home/$1/public_html/\'/>
    </web-app>

    <!-- Define applications (ServletContexts) for the examples.
      - Since applications are entirely separate from one another,
      - including session variables and servlet-mappings, the
      - servlet-mapping declarations need to be repeated.
      -->
    <web-app id=\'examples/basic\'/>

    <web-app id=\'examples/tags\'/>

    <web-app id=\'examples/tictactoe\'/>

    <web-app id=\'examples/navigation\'/>

    <web-app id=\'examples/xsl\'/>

    <web-app id=\'examples/templates\'>
      <servlet-mapping url-pattern=\'/servlet/*\' servlet-name=\'invoker\'/>
      <servlet-mapping url-pattern=\'/GuestJsp\' servlet-name=\'GuestJsp\'/>
      <servlet-mapping url-pattern=\'/GuestXtp\' servlet-name=\'GuestXtp\'/>
      <servlet-mapping url-pattern=\'/RSS\' servlet-name=\'jsp.RSS\'/>

      <servlet servlet-name=\'GuestJsp\' servlet-class=\'jsp.GuestJsp\'/>
      <servlet servlet-name=\'GuestXtp\' servlet-class=\'jsp.GuestXtp\'/>
    </web-app>

    <web-app id=\'/examples/login\'/>
  </host>

  <!--
    - Known broken browsers.  These should no longer be necessary, but
    - you can uncomment them if they become a problem.
    -
    - <browser-mapping browser=\"MSIE 4\\.0b2\" force10/>
    - <browser-mapping browser=\"RealPlayer 4\\.0\" force10/>
    - <browser-mapping browser=\"Java/1\\\\.0\" force10/>
    - <browser-mapping browser=\"JDK/1\\\\.0\" force10/>
    -->
</http-server>
</caucho.com>
Avatar billede disky Nybegynder
23. april 2001 - 13:33 #6
men den er temmelig standard.

jeg bruger min Resin sammen med Apache
Avatar billede ktl Nybegynder
23. april 2001 - 13:42 #7
smid den her ktli@novonordisk.com
Avatar billede ktl Nybegynder
23. april 2001 - 13:42 #8
sorry - glemte refresh - jeg kigger på det!
Avatar billede disky Nybegynder
08. maj 2001 - 21:03 #9
noget nyt ?
Avatar billede pawfigge Nybegynder
11. maj 2001 - 03:20 #10
Fjern jdk1.*/bin fra din path. Problemet skyldes formentlig at java.exe befinder sig i pathen på din maskine.
Avatar billede disky Nybegynder
11. maj 2001 - 11:44 #11
pawfigge:

Hvorfor skulle de skabe problemmer ?
Avatar billede ktl Nybegynder
26. maj 2001 - 08:41 #12
fik aldrig resin til at virke på den maskine, men da jeg skulle have den med til eksamen installerede jeg oracle\'s JSP server kørte fint fyldte dog 3gb :)
Nå men jeg lukker...
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester