java - ClassNotFoundException for maven provided dependencies -
I have a web application that relies on another Maven project, which has some dependencies in its POM file. When I keep my war on jeans, I get a Klassnotfound exception for the JasonSaileyLiizer and Dissarizer, which is in the Jackson-Mapper-ASL jar. If I have not been wrong, it means that the application server in the runtime or in my case will provide the server. The Jackson-Mapper-ASL Jar has been installed as a module on the Jbys server. I thought the problem was caused by mismatch of version numbers, but to update jars in jboss modules and update the module. XML-s did not help. I tried to copy it to the deployment folder because it used to help before the ojdbc driver but he did not help either, can you give some suggestions? change Compilation- This is the default scope, if none is specified, then compile the dependencies in all the squares of a project. In addition, those dependencies are promoted in dependent projects. Provided - It is very similar to the compilation, but it indicates that you expect JDK or container to provide dependency on runtime. For example, when creating a web application for Java Enterprise Edition, you will define the dependency on the serlet API and related Java EE API for the claim because the web container provides those sections. This scope is available only on the compilation and testing class, and is not transitive. View pre & lt; & Lt; Group & gt; org.codehaus.jackson & lt; / Group & gt; & Lt; ArtifactId & gt; Jackson-Map Maker-ASL & lt; / ArtifactId> & Lt; Version & gt; 1.9.12 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; org.codehaus.jackson & lt; / Group & gt; & Lt; ArtifactId & gt; Jackson-jaxrs & lt; / ArtifactId> & Lt; Version & gt; 1.9.12 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt;
Reason by: java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonDeserializer [module "deployment.biz.modit.tit.gop.education.teacherportlets.createtest-0.0.1 -SNAPSHOT.war: from the main "Service module loader] org.jboss.modules.ModuleClassLoader.findClass (ModuleClassLoader.java:190) [jboss-modules.jar: 1.1.1.ja] org.jboss.modules.ConcurrentClassLoader. Checked on displayLoadClass (concurrentClassLoader.java:468) [jboss-modules.jar: 1.1.1.ga] org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked (ConcurrentClassLoader.java:456) at [jboss-modules.jar: 1.1 .1.GA] org.jboss.modules.ConcurrentClassLoader.performLoadClass (ConcurrentClassLoader.java:398) [jboss-modules.jar: 1.1.1.ja] org.jboss.modules.ConcurrentClassLoader.loadClass at (ConcurrentClassLoader.java: 120) [jboss-modules.jar: 1.1.1.G.A.] ... 26 more
& lt; Scope & gt; Provided & lt; / Scope & gt;
& lt; Scope & gt; Collection & lt; / Scope & gt; .
Comments
Post a Comment