okky1922
267
2018-10-04 11:34:51 작성 2018-10-04 11:51:22 수정됨
4
855

cafe24 64bit JSP호스팅


안녕하세요 이번에 cafe24로 웹페이지를 구현(연습)하고자 하여 cafe24를 이용하였습니다


저 서버에는 tomcat 7.0 , mysql 5.x지원 , jdk 1.7.x 버전 제공입니다.


제 컴퓨터에서는 프로젝트를 돌리면 DB연결 및 프로젝트가 정상적으로 돌아가는데


cafe24 서버에 올린후 구동시키면 이런 에러가 떠서 구동이 되지않습니다.


정보: Starting Servlet Engine: Apache Tomcat/7.0.90

10월 04, 2018 10:05:17 오전 org.apache.catalina.startup.TldConfig execute

정보: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug                                  logging for this logger for a complete list of JARs that were scanned but no TLD                                 s were found in them. Skipping unneeded JARs during scanning can improve startup                                  time and JSP compilation time.

10월 04, 2018 10:05:17 오전 org.apache.catalina.core.ApplicationContext log

정보: No Spring WebApplicationInitializer types detected on classpath

10월 04, 2018 10:05:17 오전 org.apache.catalina.core.ApplicationContext log

정보: Initializing Spring root WebApplicationContext

INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContex                                 t: initialization started

INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refres                                 hing Root WebApplicationContext: startup date [Thu Oct 04 10:05:17 KST 2018]; ro                                 ot of context hierarchy

INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading X                                 ML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.x                                 ml]

WARN : org.mybatis.spring.mapper.ClassPathMapperScanner - No MyBatis mapper was                                  found in '[classpath:sql/minton-sql.xml]' package. Please check your configurati                                 on.

INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostP                                 rocessor - JSR-330 'javax.inject.Inject' annotation found and supported for auto                                 wiring

INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pr                                 e-instantiating singletons in org.springframework.beans.factory.support.DefaultL                                 istableBeanFactory@10f00d3: defining beans [dataSource,sqlSessionFactory,org.myb                                 atis.spring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotat                                 ion.internalConfigurationAnnotationProcessor,org.springframework.context.annotat                                 ion.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.                                 internalRequiredAnnotationProcessor,org.springframework.context.annotation.inter                                 nalCommonAnnotationProcessor]; root of factory hierarchy

INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - De                                 stroying singletons in org.springframework.beans.factory.support.DefaultListable                                 BeanFactory@10f00d3: defining beans [dataSource,sqlSessionFactory,org.mybatis.sp                                 ring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotation.int                                 ernalConfigurationAnnotationProcessor,org.springframework.context.annotation.int                                 ernalAutowiredAnnotationProcessor,org.springframework.context.annotation.interna                                 lRequiredAnnotationProcessor,org.springframework.context.annotation.internalComm                                 onAnnotationProcessor]; root of factory hierarchy

ERROR: org.springframework.web.context.ContextLoader - Context initialization fa                                 iled

org.springframework.beans.factory.BeanCreationException: Error creating bean wit                                 h name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/root-con                                 text.xml]: Error setting property values; nested exception is org.springframewor                                 k.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException:                                  Property 'driverClassName' threw exception; nested exception is java.lang.Unsupp                                 ortedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor versi                                 on 52.0 (unable to load class com.mysql.cj.jdbc.Driver)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb                                 ject(AbstractBeanFactory.java:294)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr                                 y.getSingleton(DefaultSingletonBeanRegistry.java:225)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe                                 an(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean                                 (AbstractBeanFactory.java:193)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                 preInstantiateSingletons(DefaultListableBeanFactory.java:585)

        at org.springframework.context.support.AbstractApplicationContext.finish                                 BeanFactoryInitialization(AbstractApplicationContext.java:913)

        at org.springframework.context.support.AbstractApplicationContext.refres                                 h(AbstractApplicationContext.java:464)

        at org.springframework.web.context.ContextLoader.configureAndRefreshWebA                                 pplicationContext(ContextLoader.java:385)

        at org.springframework.web.context.ContextLoader.initWebApplicationConte                                 xt(ContextLoader.java:284)

        at org.springframework.web.context.ContextLoaderListener.contextInitiali                                 zed(ContextLoaderListener.java:111)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex                                 t.java:5157)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContex                                 t.java:5680)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.                                 java:1702)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.                                 java:1692)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.                                 java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor                                 .java:615)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.PropertyBatchUpdateException; nested Proper                                 tyAccessExceptions (1) are:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException:                                  Property 'driverClassName' threw exception; nested exception is java.lang.Unsupp                                 ortedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor versi                                 on 52.0 (unable to load class com.mysql.cj.jdbc.Driver)

        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(                                 AbstractPropertyAccessor.java:102)

        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(                                 AbstractPropertyAccessor.java:58)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)

        ... 22 more

10월 04, 2018 10:05:17 오전 org.apache.catalina.core.StandardContext listenerSta                                 rt

심각: Exception sending context initialized event to listener instance of class                                  org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean wit                                 h name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/root-con                                 text.xml]: Error setting property values; nested exception is org.springframewor                                 k.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException:                                  Property 'driverClassName' threw exception; nested exception is java.lang.Unsupp                                 ortedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor versi                                 on 52.0 (unable to load class com.mysql.cj.jdbc.Driver)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb                                 ject(AbstractBeanFactory.java:294)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr                                 y.getSingleton(DefaultSingletonBeanRegistry.java:225)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe                                 an(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean                                 (AbstractBeanFactory.java:193)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.                                 preInstantiateSingletons(DefaultListableBeanFactory.java:585)

        at org.springframework.context.support.AbstractApplicationContext.finish                                 BeanFactoryInitialization(AbstractApplicationContext.java:913)

        at org.springframework.context.support.AbstractApplicationContext.refres                                 h(AbstractApplicationContext.java:464)

        at org.springframework.web.context.ContextLoader.configureAndRefreshWebA                                 pplicationContext(ContextLoader.java:385)

        at org.springframework.web.context.ContextLoader.initWebApplicationConte                                 xt(ContextLoader.java:284)

        at org.springframework.web.context.ContextLoaderListener.contextInitiali                                 zed(ContextLoaderListener.java:111)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex                                 t.java:5157)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContex                                 t.java:5680)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.                                 java:1702)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.                                 java:1692)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.                                 java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor                                 .java:615)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.springframework.beans.PropertyBatchUpdateException; nested Proper                                 tyAccessExceptions (1) are:

PropertyAccessException 1: org.springframework.beans.MethodInvocationException:                                  Property 'driverClassName' threw exception; nested exception is java.lang.Unsupp                                 ortedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor versi                                 on 52.0 (unable to load class com.mysql.cj.jdbc.Driver)

        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(                                 AbstractPropertyAccessor.java:102)

        at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(                                 AbstractPropertyAccessor.java:58)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean                                 Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)

        ... 22 more


10월 04, 2018 10:05:17 오전 org.apache.catalina.core.StandardContext startIntern                                 al

심각: One or more listeners failed to start. Full details will be found in the a                                 ppropriate container log file

10월 04, 2018 10:05:18 오전 org.apache.catalina.util.SessionIdGeneratorBase crea                                 teSecureRandom

경고: Creation of SecureRandom instance for session ID generation using [SHA1PRN                                 G] took [1,064] milliseconds.

10월 04, 2018 10:05:18 오전 org.apache.catalina.core.StandardContext startIntern                                 al

심각: Context [] startup failed due to previous errors

10월 04, 2018 10:05:18 오전 org.apache.catalina.core.ApplicationContext log

정보: Closing Spring root WebApplicationContext

10월 04, 2018 10:05:18 오전 org.apache.catalina.startup.HostConfig deployWAR

정보: Deploying web application archive /home/hosting_users/okky1922/www.war

10월 04, 2018 10:05:19 오전 org.apache.catalina.startup.TldConfig execute

정보: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug                                  logging for this logger for a complete list of JARs that were scanned but no TLD                                 s were found in them. Skipping unneeded JARs during scanning can improve startup                                  time and JSP compilation time.

10월 04, 2018 10:05:19 오전 org.apache.catalina.core.ApplicationContext log

정보: No Spring WebApplicationInitializer types detected on classpath

10월 04, 2018 10:05:19 오전 org.apache.catalina.core.ApplicationContext log

정보: Initializing Spring root WebApplicationContext

INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContex                                 t: initialization started

INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refres                                 hing Root WebApplicationContext: startup date [Thu Oct 04 10:05:19 KST 2018]; ro                                 ot of context hierarchy

INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading X                                 ML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.x                                 ml]

INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pr                                 e-instantiating singletons in org.springframework.beans.factory.support.DefaultL                                 istableBeanFactory@9d0b86: defining beans [dataSource,sqlSessionFactory,sqlSessi                                 on]; root of factory hierarchy

INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContex                                 t: initialization completed in 261 ms

10월 04, 2018 10:05:19 오전 org.apache.catalina.core.ApplicationContext log

정보: Initializing Spring FrameworkServlet 'appServlet'

INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'app                                 Servlet': initialization started

INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refres                                 hing WebApplicationContext for namespace 'appServlet-servlet': startup date [Thu                                  Oct 04 10:05:19 KST 2018]; parent: Root WebApplicationContext

INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading X                                 ML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/ser                                 vlet-context.xml]

INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - J                                 SR-250 'javax.annotation.ManagedBean' found and supported for component scanning

INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - J                                 SR-330 'javax.inject.Named' annotation found and supported for component scannin                                 g

INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostP                                 rocessor - JSR-330 'javax.inject.Inject' annotation found and supported for auto                                 wiring

INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pr                                 e-instantiating singletons in org.springframework.beans.factory.support.DefaultL                                 istableBeanFactory@7edbfd: defining beans [org.springframework.web.servlet.mvc.m                                 ethod.annotation.RequestMappingHandlerMapping#0,org.springframework.format.suppo                                 rt.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.                                 method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet                                 .handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotati                                 on.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annot                                 ation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.supp                                 ort.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.Be                                 anNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAd                                 apter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.spr                                 ingframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframewo                                 rk.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet                                 .view.InternalResourceViewResolver#0,mintonController,mintonServiceImpl,homeCont                                 roller,org.springframework.context.annotation.internalConfigurationAnnotationPro                                 cessor,org.springframework.context.annotation.internalAutowiredAnnotationProcess                                 or,org.springframework.context.annotation.internalRequiredAnnotationProcessor,or                                 g.springframework.context.annotation.internalCommonAnnotationProcessor,org.sprin                                 gframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPos                                 tProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListable                                 BeanFactory@9d0b86


에러 결과를 확인해보니 이것은 JDK,JRE 버전에러라고 하는데 제 프로젝트는 1.8이고 서버쪽엔 1.7이라


에러가 발생하는줄 알고 1.7로 변경하였으나 에러는 동일하게 발생하였습니다..




어떻게 해결해야 하는지 도움을 여쭙고자 합니다 ㅠ


제 root-context.xml 파일 소스입니다


<!-- Mybatis -->

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis</artifactId>

            <version>3.2.8</version>

        </dependency>

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis-spring</artifactId>

            <version>1.2.2</version>

        </dependency>

         

        <!-- Mysql -->

        <dependency>

            <groupId>mysql</groupId>

            <artifactId>mysql-connector-java</artifactId>

            <version>5.1.46</version>

        </dependency>

         

        <!-- DB -->

        <dependency>

            <groupId>commons-dbcp</groupId>

            <artifactId>commons-dbcp</artifactId>

            <version>1.4</version>

        </dependency>

        <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->

<dependency>

    <groupId>org.springframework</groupId>

    <artifactId>spring-jdbc</artifactId>

    <version>3.2.16.RELEASE</version>

</dependency>



1
  • 답변 4

  • 밥도둑계장
    664
    2018-10-04 11:50:13 작성 2018-10-04 11:56:20 수정됨

    mysql connector와 자바 컴파일버전도 한번 확인해보세요.

    https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html

    혹시나 이클립스 자바 컴파일러 버전도한번 확인해보세요.


  • 오후
    1k
    2018-10-04 11:55:05

    jre 뿐만아니라 프로젝트 프로터피쪽 컴파일러 버전도확인해보세요.

  • okky1922
    267
    2018-10-04 12:09:29

    밥도둑계장

    제 프로젝트 mysql connector 버전은 5.1.46입니다..

    들어가서 보니 5.1,8.0이 두개있는것 같은데 5.1 버전의 MySql = 5.5, 5.6*, 5.7*, 8.0* 이라고 되어있는데

    이것 때문인건가요.. 그리고 자바 컴파일버전 확인해보니 50 ( 1.6 으로 되어있네요..)


  • okky1922
    267
    2018-10-04 12:16:18

    오후 죄송한데 그부분확인을 어떻게 해야하는지 알수있을까요..


    이것 말씀하시는 건가요?



  • 로그인을 하시면 답변 을 등록할 수 있습니다.