Avatar billede thinge Nybegynder
26. november 2006 - 10:20 Der er 4 kommentarer og
1 løsning

com.caucho.config.LineConfigException: WEB-INF/web.xml:4:

[09:42:45.188] com.caucho.config.LineConfigException: WEB-INF/web.xml:4:
`hkclient.actions.welcome.WelcomeAction' is not a known servlet.  Servlets belong in the classpath, often in WEB-INF/classes.

Filerne ligger hvor de skal!

Alt hvad jeg har fundet på nettet er at de siger at en kendt fejl. Men jeg synes ikke at der er en "workaround".

Eller kan det være at det er mig, der har lavet en fejl, ang. resin.conf eller nogen af de ander conf. filer

/thinge
Avatar billede thinge Nybegynder
26. november 2006 - 10:20 #1
Resin.conf:
<!--
  - Resin 3.0 configuration file.
  -->
<resin xmlns="http://caucho.com/ns/resin"
      xmlns:resin="http://caucho.com/ns/resin/core">
  <!--
    - Logging configuration for the JDK logging API.
    -->
  <log name="" level="info" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
  <log name="com.caucho.java" level="config" path="stdout:"
      timestamp="[%H:%M:%S.%s] "/>
  <log name="com.caucho.loader" level="config" path="stdout:"
      timestamp="[%H:%M:%S.%s] "/>

  <!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    -->
  <dependency-check-interval>2s</dependency-check-interval>

  <!--
    - You can change the compiler to "javac" or jikes.
    - The default is "internal" only because it's the most
    - likely to be available.
    -->
  <javac compiler="internal" args=""/>

  <!-- Security providers.
    - <security-provider>
    -    com.sun.net.ssl.internal.ssl.Provider
    - </security-provider>
    -->

  <!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    -
    - <user-name>resin</user-name>
    - <group-name>resin</group-name>
    -->

  <!--
    - Configures threads shared among all HTTP and SRUN ports.
    -->
  <thread-pool>
    <!-- Maximum number of threads. -->
    <thread-max>128</thread-max>

    <!-- Minimum number of spare connection threads. -->
    <spare-thread-min>25</spare-thread-min>
  </thread-pool>

  <!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    -->
  <min-free-memory>1M</min-free-memory>

  <server>
    <!-- adds all .jar files under the resin/lib directory -->
    <class-loader>
      <tree-loader path="${resin.home}/lib"/>
      <tree-loader path="${server.root}/lib"/>
    </class-loader>

    <!-- Configures the keepalive -->
    <keepalive-max>500</keepalive-max>
    <keepalive-timeout>120s</keepalive-timeout>

    <resin:if test="${resin.isProfessional()}">
      <select-manager enable="true"/>
    </resin:if>

    <!-- The http port -->
    <http server-id="" host="*" port="8080"/>

    <!--
      - SSL port configuration:
      -
      - <http port="8443">
      -  <openssl>
      -    <certificate-file>keys/gryffindor.crt</certificate-file>
      -    <certificate-key-file>keys/gryffindor.key</certificate-key-file>
      -    <password>test123</password>
      -  </openssl>
      - </http>
      -->

    <!--
      - The local cluster, used for load balancing and distributed
      - backup.
      -->
    <cluster>
      <srun server-id="" host="127.0.0.1" port="6802"/>
    </cluster>

    <!--
      - Configures the persistent store for single-server or clustered
      - in Resin professional.
      -->
    <resin:if test="${resin.isProfessional()}">
      <persistent-store type="cluster">
        <init path="session"/>
      </persistent-store>
    </resin:if>

    <!--
      - Enables/disables exceptions when the browser closes a connection.
      -->
    <ignore-client-disconnect>true</ignore-client-disconnect>

    <!--
      - For security, use a different cookie for SSL sessions.
      - <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
      -->

    <!--
      - Enables the cache (available in Resin Professional)
      -->
    <resin:if test="${isResinProfessional}">
      <cache path="cache" memory-size="8M"/>
    </resin:if>

    <!--
      - Enables periodic checking of the server status.
      -
      - With JDK 1.5, this will ask the JDK to check for deadlocks.
      - All servers can add <url>s to be checked.
      -->
    <resin:if test="${isResinProfessional}">
      <ping>
        <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
      </ping>
    </resin:if>

    <!--
      - Defaults applied to each web-app.
      -->
    <web-app-default>
      <!--
        - Extension library for common jar files.  The ext is safe
        - even for non-classloader aware jars.  The loaded classes
        - will be loaded separately for each web-app, i.e. the class
        - itself will be distinct.
        -->
      <class-loader>
        <tree-loader path="${server.root}/ext-webapp"/>
      </class-loader>

      <!--
        - Sets timeout values for cacheable pages, e.g. static pages.
        -->
      <cache-mapping url-pattern="/" expires="5s"/>
      <cache-mapping url-pattern="*.gif" expires="60s"/>
      <cache-mapping url-pattern="*.jpg" expires="60s"/>

      <!--
        - Servlet to use for directory display.
        -->
      <servlet servlet-name="directory"
              servlet-class="com.caucho.servlets.DirectoryServlet"/>

      <!--
        - Enable EL expressions in Servlet and Filter init-param
        -->
      <allow-servlet-el/>

      <!--
        - for security, disable session URLs by default.
        -->
      <session-config>
        <enable-url-rewriting>false</enable-url-rewriting>
      </session-config>

      <!--
        - For security, set the HttpOnly flag in cookies.
        - <cookie-http-only/>
        -->
    </web-app-default>

    <!--
      - Sample database pool configuration
      -
      - The JDBC name is java:comp/env/jdbc/test
        <database>
          <jndi-name>jdbc/mysql</jndi-name>
          <driver type="org.gjt.mm.mysql.Driver">
            <url>jdbc:mysql://localhost:3306/test</url>
            <user></user>
            <password></password>
            </driver>
            <prepared-statement-cache-size>8</prepared-statement-cache-size>
            <max-connections>20</max-connections>
            <max-idle-time>30s</max-idle-time>
          </database>
      -->

    <!--
      - Default host configuration applied to all virtual hosts.
      -->
    <host-default>
      <class-loader>
        <library-loader path="webapps/WEB-INF/lib"/>       
        <compiling-loader path="webapps/WEB-INF/classes"/>
      </class-loader>

      <!--
        - With another web server, like Apache, this can be commented out
        - because the web server will log this information.
        -->
      <access-log path="logs/access.log"
            format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
            rollover-period="1W"/>

      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path="webapps"/>

      <!-- creates the deploy directory for .ear expansion -->
      <ear-deploy path="deploy">
        <ear-default>
          <!-- Configure this for the ejb server
            -
            - <ejb-server>
            -  <config-directory>WEB-INF</config-directory>
            -  <data-source>jdbc/test</data-source>
            - </ejb-server>
            -->
        </ear-default>
      </ear-deploy>

      <!-- creates the deploy directory for .rar expansion -->
      <resource-deploy path="deploy"/>

      <!-- creates a second deploy directory for .war expansion -->
      <web-app-deploy path="deploy"/>
    </host-default>

    <!-- includes the web-app-default for default web-app behavior -->
    <resin:import path="${resinHome}/conf/app-default.xml"/>

    <!-- configures a deployment directory for virtual hosts -->
    <host-deploy path="hosts">
      <host-default>
        <resin:import path="host.xml" optional="true"/>
      </host-default>
    </host-deploy>

    <!-- configures the default host, matching any host name -->
    <host id="" root-directory=".">
      <!--
        - configures an explicit root web-app matching the
        - webapp's ROOT
        -->
      <web-app id="/" document-directory="webapps/ROOT"/>
    </host>
  </server>
</resin>
Avatar billede thinge Nybegynder
26. november 2006 - 10:22 #2
web.xml:
  <?xml version="1.0" encoding="windows-1252" ?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
  <description>Empty web.xml file for Web Application</description>
- <servlet>
  <servlet-name>WelcomeAction</servlet-name>
  <servlet-class>hkclient.actions.welcome.WelcomeAction</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>CreateHeaderAction</servlet-name>
  <servlet-class>hkclient.actions.CreateHeaderAction</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>ShowPictureAction</servlet-name>
  <servlet-class>hkclient.actions.ShowPictureAction</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>MenuAction</servlet-name>
  <servlet-class>hkclient.actions.menu.MenuAction</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>LoginAction</servlet-name>
  <servlet-class>hkclient.actions.login.LoginAction</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>DefaultPage</servlet-name>
  <servlet-class>hkclient.structuredpages.DefaultPage</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>HeaderMenuMainasiframeFooterPage</servlet-name>
  <servlet-class>hkclient.structuredpages.HeaderMenuMainasiframeFooterPage</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>PicturePage</servlet-name>
  <servlet-class>hkclient.structuredpages.PicturePage</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>MenuPage</servlet-name>
  <servlet-class>hkclient.structuredpages.MenuPage</servlet-class>
  </servlet>
- <servlet>
  <servlet-name>TestAction</servlet-name>
  <servlet-class>hkclient.TestAction</servlet-class>
  </servlet>
- <servlet-mapping>
  <servlet-name>WelcomeAction</servlet-name>
  <url-pattern>/welcomeAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>CreateHeaderAction</servlet-name>
  <url-pattern>/createHeaderAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>ShowPictureAction</servlet-name>
  <url-pattern>/showPictureAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>MenuAction</servlet-name>
  <url-pattern>/menuAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>LoginAction</servlet-name>
  <url-pattern>/login/loginAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>LoginAction</servlet-name>
  <url-pattern>/login/logoutAction</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>PicturePage</servlet-name>
  <url-pattern>/picturePage</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>HeaderMenuMainasiframeFooterPage</servlet-name>
  <url-pattern>/headerMenuMainasiframeFooterPage</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>DefaultPage</servlet-name>
  <url-pattern>/defaultPage</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>MenuPage</servlet-name>
  <url-pattern>/menuPage</url-pattern>
  </servlet-mapping>
- <servlet-mapping>
  <servlet-name>TestAction</servlet-name>
  <url-pattern>/testAction</url-pattern>
  </servlet-mapping>
- <session-config>
  <session-timeout>35</session-timeout>
  </session-config>
- <mime-mapping>
  <extension>html</extension>
  <mime-type>text/html</mime-type>
  </mime-mapping>
- <mime-mapping>
  <extension>txt</extension>
  <mime-type>text/plain</mime-type>
  </mime-mapping>
- <welcome-file-list>
  <welcome-file>welcomeAction</welcome-file>
  </welcome-file-list>
  </web-app>
Avatar billede arne_v Ekspert
26. november 2006 - 15:42 #3
du har en WEB-INF/classes/hkclient/actions/welcome/WelcomeAction.class ?
Avatar billede thinge Nybegynder
26. november 2006 - 16:08 #4
Også det jeg troede første gang.
Men alt ligger der hvor det skal

/thinge
Avatar billede thinge Nybegynder
27. november 2006 - 15:39 #5
Har nu skiftet tomcat, hvor den godt kan finde servlets
Nu har jeg bare en anden fejl, som du tjekke

LUKKET

/thinge
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