CSISS / cc

NSF EarthCube CyberConnector
http://cube.csiss.gmu.edu/CyberConnector
MIT License
13 stars 10 forks source link

All the systemPath dependencies are missing in the released war #13

Closed ZihengSun closed 5 years ago

ZihengSun commented 6 years ago

the jars included as system dependencies are missing the released war, e.g. net.opengis.wms-v_1_3_0-2.6.2-SNAPSHOT the missing will make the war unusable.

ZihengSun commented 5 years ago

Any progress on this issue? The COVALI cannot function correctly because of missing library: SEVERE: Servlet.service() for servlet [spring-webmvc] in context with path [/CyberConnector] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/Credentials] with root cause java.lang.ClassNotFoundException: org.apache.commons.httpclient.Credentials at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1136) at edu.gmu.csiss.earthcube.cyberconnector.ncwms.ncWMSTool.addDataset(ncWMSTool.java:11) at edu.gmu.csiss.earthcube.cyberconnector.web.UserController.adddata(UserController.java:206) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:849) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:760) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)

ZihengSun commented 5 years ago

Try to figure out how to make maven package all the local jars under the lib/ to the generated war WEB-INF/lib/

If that is not possible, consider to move all the local jars back to WebContent/WEB-INF/lib

ZihengSun commented 5 years ago

Done. Use Maven correctly.