facebook

MyEclipse Tomcat server error java.lang.NoClassDefFoundError

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

    amir55
    Participant

    dear sir/madam

    1 – I have error in running MyEclipse Tomcat in both version 10.6 and MyEclipse for spring 2014.

    tomcat 7 is ok MyEclipse for spring 2014.

    ***********************************
    Apr 29, 2015 10:13:15 AM org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    java.lang.NoClassDefFoundError: HttpServletRequest
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
    at java.lang.Class.getDeclaredMethods(Class.java:1855)
    at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:490)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:474)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors
    *********************************

    2 – I imported a project from MyEclipse 10.6 to MyEclipse for spring 2014. and I have eroor red spots in next xml file

    datasource-config.xml
    **************************** red spots at start before <?xml and over beans <beans profile=”javaee” >

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!–
    Application context definition for PetClinic Datasource.
    –>
    <beans xmlns=”http://www.springframework.org/schema/beans&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xmlns:p=”http://www.springframework.org/schema/p&#8221;
    xmlns:context=”http://www.springframework.org/schema/context&#8221;
    xmlns:jdbc=”http://www.springframework.org/schema/jdbc&#8221;
    xmlns:jee=”http://www.springframework.org/schema/jee&#8221;
    xsi:schemaLocation=”http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context.xsd
    http://www.springframework.org/schema/jdbc
    http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
    http://www.springframework.org/schema/jee
    http://www.springframework.org/schema/jee/spring-jee.xsd”&gt;

    <!– ========================= DATASOURCE DEFINITION ========================= –>

    <!– Configurer that replaces ${…} placeholders with values from a properties file –>
    <!– (in this case, JDBC-related settings for the dataSource definition below) –>
    <context:property-placeholder location=”classpath:spring/data-access.properties” system-properties-mode=”OVERRIDE”/>

    <!– DataSource configuration for the tomcat jdbc connection pool
    See here for more details on commons-dbcp versus tomcat-jdbc:
    http://blog.ippon.fr/2013/03/13/improving-the-performance-of-the-spring-petclinic-sample-application-part-3-of-5/–&gt;
    <bean id=”dataSource” class=”org.apache.tomcat.jdbc.pool.DataSource”
    p:driverClassName=”${jdbc.driverClassName}” p:url=”${jdbc.url}”
    p:username=”${jdbc.username}” p:password=”${jdbc.password}”/>

    <!– Database initializer. If any of the script fails, the initialization stops. –>
    <!– As an alternative, for embedded databases see <jdbc:embedded-database/>. –>

    <!– <jdbc:initialize-database data-source=”dataSource”>
    <jdbc:script location=”${jdbc.initLocation}”/>
    <jdbc:script location=”${jdbc.dataLocation}”/>
    </jdbc:initialize-database>
    –>
    <beans profile=”javaee” >
    <!– JNDI DataSource for JEE environments –>
    <jee:jndi-lookup id=”dataSource” jndi-name=”java:comp/env/jdbc/petclinic”/>
    </beans>
    </beans>

    ****************************

    3 – please let me know if your team developer would do scaffolding t map into hibernate option as well as JPA for next version like in reverse engineering

    yours faithfully with thanks

    Amir

    #354190 Reply

    support-swapna
    Moderator

    Amir,

    Sorry that you are seeing this issue.

    1. Can you please let us know if you can start the MyEclipse Tomcat without deploying any projects? Do you see the issue when deploying a particular project ?

    2. If the issue is with a particular project then please send us the project to help us investigate futher.

    3. If you cannot get the MyEclipse Tomcat started , please start MyEclipse with -clean, switch to a new workspace and check if the MyEclipse Tomcat starts fine. Here is the FAQ for starting MyEclipse with -clean

    4. When importing the project to MyEclipse for Spring 2014, did the IDE prompt for migration? If yes then did the migration succeed or did you see any issues during migration?

    5. Please let us know the exact errors marked on the xml file.

    6. I will check with the dev team about the Hibernate mapping support timeline and keep you posted.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MyEclipse Tomcat server error java.lang.NoClassDefFoundError

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