java - Start Tomcat as Eclipse does -


well, gotta simple question experienced tomcat users. having specific issue since time, , thought through time , experience tomcat , eclipse , intellij, lead me answer, didn't. programming maven project using specific frameworks:

jersey 1.8, spring 3.2.4.release (all spring framework, excluding security module)

my project works fine, can start server within eclipse , intellij , debug application, developing android application parallel server side, running out of memory on work pc, so, want run app cmd (working on windows 8) , when http request received in server throws exception (when i'm running app ide, works fine)

here trace of exception thrown when run tomcat command line

severe: servlet.service() servlet [jersey servlet] in context path [/api] threw exception [servlet execution threw exception] root cause java.lang.abstractmethoderror: javax.ws.rs.core.uribuilder.uri(ljava/lang/string;)ljavax/ws/rs/core/uribuilder; @ javax.ws.rs.core.uribuilder.fromuri(uribuilder.java:119) @ org.glassfish.jersey.servlet.servletcontainer.service(servletcontainer.java:286) @ org.glassfish.jersey.servlet.servletcontainer.service(servletcontainer.java:218) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:303) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:504) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:170) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:421) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1074) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:611) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2466) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2455) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:745)

the commands using run tomcat are:

%tomcat&/bin> startup.bat, %tomcat&/bin> catalina.bat run

how can fix this? [update] here pom.xml

<dependencies> <dependency>   <groupid>junit</groupid>   <artifactid>junit</artifactid>   <version>3.8.1</version>   <scope>test</scope> </dependency>     <!-- spring -->   <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-core</artifactid>       <version>${spring.version}</version>   </dependency>   <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-context</artifactid>       <version>${spring.version}</version>   </dependency>   <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-beans</artifactid>       <version>${spring.version}</version>   </dependency>   <dependency>       <groupid>org.springframework.security</groupid>       <artifactid>spring-security-web</artifactid>       <version>${spring.security.version}</version>   </dependency>   <dependency>       <groupid>org.springframework.security</groupid>       <artifactid>spring-security-core</artifactid>       <version>${spring.security.version}</version>   </dependency>   <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-webmvc</artifactid>       <version>${spring.version}</version>   </dependency>   <dependency>       <groupid>org.springframework</groupid>       <artifactid>spring-jdbc</artifactid>       <version>${spring.jdbc.version}</version>   </dependency>   <dependency>       <groupid>com.sun.jersey.contribs</groupid>       <artifactid>jersey-spring</artifactid>       <version>${jersey.version}</version>       <exclusions>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-web</artifactid>           </exclusion>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-aop</artifactid>           </exclusion>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-asm</artifactid>           </exclusion>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-beans</artifactid>           </exclusion>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-context</artifactid>           </exclusion>           <exclusion>               <groupid>org.springframework</groupid>               <artifactid>spring-core</artifactid>           </exclusion>       </exclusions>    </dependency>      <dependency>         <groupid>com.sun.jersey</groupid>         <artifactid>jersey-server</artifactid>         <version>${jersey.version}</version>     </dependency>      <dependency>       <groupid>com.sun.jersey</groupid>         <artifactid>jersey-core</artifactid>         <version>${jersey.version}</version>     </dependency>   <dependency>       <groupid>com.sun.jersey</groupid>       <artifactid>jersey-json</artifactid>       <version>${jersey.version}</version>   </dependency>    <dependency>       <groupid>asm</groupid>       <artifactid>asm</artifactid>       <version>3.3.1</version>   </dependency>     <dependency>       <groupid>mysql</groupid>       <artifactid>mysql-connector-java</artifactid>       <version>5.1.9</version>   </dependency> 


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -