Maven throwing SAML Statement error message - java

I am working on Maven and I get error as shown below. I tried checking deployment assembly and build path but I am not getting any hint on what the system is complaining about. I also made sure I cleaned tomcat directory and cleaned the project. I would appreciate any help on it
Jan 20, 2020 12:11:13 PM org.apache.catalina.core.StandardWrapperValve
invoke SEVERE: Servlet.service() for servlet [cas] in context with
path [/URL] threw exception [Request processing failed; nested
exception is
org.springframework.webflow.execution.ActionExecutionException:
Exception thrown executing
org.springframework.webflow.action.ViewFactoryActionAdapter#2def1006
in state 'viewServiceErrorView' of flow 'login' -- action execution
attributes were 'map[[empty]]'] with root cause
java.lang.ClassNotFoundException: org.opensaml.SAMLStatement at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
at java.lang.Class.getDeclaredConstructors0(Native Method) at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at
java.lang.Class.getConstructor0(Class.java:3075) at
java.lang.Class.getDeclaredConstructor(Class.java:2178) at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.

As the system was complaining I was missing opensaml jar.
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>1.1</version>
</dependency>
System was unable to download the jar from maven repo. I manually updated the jar in my local and it worked fine.

Related

org.apache.commons.validator.EmailValidator

I am trying to validate the email: hello.world#cir.care
boolean isValidEmail = EmailValidator.getInstance().isValid("hello.world#cir.care")
It throws error when I use commonvalidator 1.14 but its works with 1.5.1
Error StackTrace:
org.apache.axis2.engine.AxisEngine receive null org.apache.axis2.AxisFault
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
boths the jars are available in server path.
Please suggest me if I miss any thing?
Download and add the following jar in your server path apache-jakarta-oro.jar
Also refer the following link for more options
NoClassDefFoundError problems with help of Apache Commons Validator
If you are using maven add this dependency to the project repository
<dependency>
<groupId>oro</groupId>
<artifactId>oro</artifactId>
<version>2.0.8</version>
</dependency>

java.lang.ClassNotFoundException: org.joda.time.ReadablePartial

I'm using Eclipse Luna with Jaspersoft Studio plugin 6.2.2 to developer reports for web application. No problem to run one basic blank report from Eclipse plugin, but when I load this jrxml from java class, I receive the message:
Servlet.service() for servlet [default] in context with path [/insurance] threw exception [Filter execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.joda.time.ReadablePartial
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1858)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
I'm using the code:
JasperDesign jasperDesign = JRXmlLoader.load(fileName);
What's this error?
Sounds like you're missing the Joda-Time dependency. GitHub project for Joda-Time available here.
As per documentation, to get the latest Joda-Time jar you can do:
Maven:
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.4</version>
</dependency>
Gradle:
compile 'joda-time:joda-time:2.9.4'
Or you can manually download the latest jar from here and add it to your classpath.

NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil

After moving a Tomcat app from one server to the other, we get this error:
SEVERE: Servlet.service() for servlet dwr-invoker threw exception
java.lang.NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil
at org.directwebremoting.dwrp.CallBatch.parseParameters(CallBatch.java:135)
at org.directwebremoting.dwrp.CallBatch.<init>(CallBatch.java:47)
at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:72)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
We have the dwr.jar in the WEB-INF/lib dir (and I opened it and checked, the org/directwebremoting/extend/ConvertUtil is there)
/srv/tomcat6/webapps/APPNAME/WEB-INF/lib/dwr.jar
UPDATE this is how DWR dependency is defined in the pom.xml
<dependency>
<groupId>org.directwebremoting</groupId>
<artifactId>dwr</artifactId>
<version>3.rc1</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/dwr.jar</systemPath>
</dependency>

IntelliJ IDEA + Tomee 1.7.1 - Bean Manager not found error

I'm getting a strange error when starting up tomee in IntelliJ and deploying my web app (as war). I'm not referencing any bean manager or weld classes in my pom.xml file and so far this is just a "bare bones" web application that I'm using to try out TomEE and do a bit of fun stuff with it (hopefully) - but this error is blocking me - any help would be appreciated. Thanks
Mar 24, 2015 10:55:32 PM org.apache.tomee.catalina.TomcatResourceFactory create
SEVERE: Can't create resource BeanManager
java.lang.ClassNotFoundException: org.jboss.weld.resources.ManagerObjectFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at org.apache.tomee.catalina.LazyStopWebappClassLoader.loadClass(LazyStopWebappClassLoader.java:129)
at org.apache.tomee.catalina.TomcatResourceFactory.create(TomcatResourceFactory.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

how to install missing jars in eclipse for aws sdk with SES service

I added maven set up to my eclipse project and I am able to see the lib in my target folder,
I referred the AWS SES docs to send mail using API . I wont see any complation error but when I try to send mail usig AWS SES API I am getting class not found exception .
java.lang.ClassNotFoundException: org.apache.http.pool.ConnPoolControl
After searching on google I added jars (both with mavan and Java build path ) ,Both of the ways doesnt work out.
I am unable to find out the exact problem .
my maven code includes .
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.8.9.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-hal-client-java</artifactId>
<version>1.1.1</version>
</dependency>
I can able import all class specified in doc,but whenever i call email sending method I getting class not found exception .
I have
1.Eclipse Helios
2. Spring-hibernate project
3.Maven 2
and I have access and secret key for AWS set up
Please some one help me out .
I encountered the following error:
Sep 01, 2014 4:18:30 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [spring] in context with path [/peer] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/http/pool/ConnPoolControl] with root cause
java.lang.ClassNotFoundException: org.apache.http.pool.ConnPoolControl
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2888)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1172)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
at com.amazonaws.http.ConnectionManagerFactory.createPoolingClientConnManager(ConnectionManagerFactory.java:29)
at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:97)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:181)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:119)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:103)
at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:142)
at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:123)

Categories

Resources