facebook

Spring servlet initialization problem

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #252680 Reply

    amir55
    Participant

    hi all

    I tried to use Spring with servlet but I get this
    error instantiating servlet class.

    when I add listner to web.xml I get unknow source message

    ******************* web.xml *************
    <!– Spring application context locations –>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    classpath:/src/spring-config.xml
    </param-value>
    </context-param>

    <servlet>
    <servlet-name>SpringContextServlet</servlet-name>
    <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>MyServlet</servlet-name>
    <servlet-class>test.de.laliluna.library.MyServlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/MyServlet</url-pattern>
    </servlet-mapping>
    *******************************************

    thnaks a lot

    #252698

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #253362

    amir55
    Participant

    sorry to bother u and the answer to my question was simply is to that to add spring.jar to my lib dir.

    thanks alot and all is working

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Spring servlet initialization problem

You must be logged in to post in the forum log in