4

Hi my dynamic web application in struts1 spring and hibernate integration is developed on 64 bit machine..Its running fine on 64 bit machine but giving jar issues on 32 bit machine its giving following error

    SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
    at java.lang.ClassLoader.findBootstrapClass(Native Method)

and

    SEVERE: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
    at java.lang.ClassLoader.findBootstrapClass(Native Method)

should i change all jars for 32 bit machine?

2
  • This is not related to platform architecture, but some configuration problem. What servlet container you are using? Apache Tomcat? Commented Aug 7, 2014 at 11:14
  • 1
    Why is this tagged hibernate? Commented Aug 7, 2014 at 13:57

2 Answers 2

3

I had some similar problem in when i tried to compile one project without the servlet dependancy, if you use maven put the javax.servlet in the pom.xml

<dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>3.0.1</version>
        <scope>provided</scope>
</dependency>

You can change the version to another if you know the version target and the scope is provided because is probably that you will use tomcat or another type of server, that contain already the implementation

Or if you not use maven, you can download the .jar and add to the lib folder of your projet

Sign up to request clarification or add additional context in comments.

Comments

0

You just do not have Spring (totally or partially) in your classpath at runtime. It seems that Log4jConfigListener is the first class referenced when you try to load your application. Take care on copying all needed jar files to your WEB-INF/lib directory.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.