classnotfoundexception javax/mail/MessagingException - jakarta-mail

I am getting the classnotfoundexception javax/mail/MessagingException using eclipse/jetty.
I have added activation.jar, javax.mail-1.5.3.jar, and javaee.jar to my java build path to my lib folder and war/web-inf/lib folder.
Any suggestions would be greatly appreciated. Thank you.

You have to add those jar file in classpath, go to your project build path and there you can see classpath tab, find your jar's and select them and save, should work after that.

My mistake was that I was trying to execute the code on the client. Once I moved the code to the server it worked great and javaee.jar wasn't required.

Related

How to create a react project war and deploy it on jboss?

I know there are many articles on google about this but in some cases they are keeping react(frontend) + springboot(backend) together in a single war, but my requirement is different I want to keep the both wars as separate.
So what I tried till now,
Directly adding the react build folder in jboss->standalone->deployment but it does not work, it works on tomcat but not on jboss
Then I created a new dynamic web maven project and renamed react build folder and added it to maven project webapps directory and created a war, but after deployment its giving 403 error, and I am not getting why.
Here is a snapshot of my folder structure, pom file and error on browser
Please help regarding this have been stuck at it for days now with jboss
Is there any other way to do it, I will be happy to change my approach.
tried this also, did not worked
https://www.megadix.it/blog/create-react-app-servlet/
spring boot comes with default tomcat, you can exclude from the dependency
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
https://dev.to/jakmar17/deploy-spring-boot-on-wildfly-application-server-2029
I have the same problem and I haven't found a good solution. The best I found is to create a dynamic web project in eclipse. Copy the build files into webContent and use HashRouter instead of BrowserRouter with basename equal to the project name. Finally compile and generate the war. I hope the advice helps you.

Codename One: Rename project

I tried to rename my project to other one by Refactor\Rename, but I got errors after renaming processing finished and when I run project
Can you help me, please ?
Thanks a lot!
Don't use refactor/rename. There are many dependencies in the project creation especially with the main package name that can't be changed once you publish your app.
Create a new project with the correct packages/names and copy the sources manually to that project.

NoClassDefFoundError: Could not initialize OauthRawGcsServiceFactory on production environment

I'm using appengine-sdk 1.9.3.
In devserver, works in Eclipse and Ant normally.
When I deploy (update) to appengine (production environment), I get this error:
event.getResults(): [<pre>Error for /p7/formPanelServlet
java.lang.NoClassDefFoundError: Could not initialize class
com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:42)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:34)
at com.bitvisio.p7.server.FormPanelServlet.<init>(FormPanelServlet.java:27)
At FormPanelServlet.java:27, the code is:
private final GcsService gcsService = GcsServiceFactory
.createGcsService(new RetryParams.Builder()
.initialRetryDelayMillis(10)
.retryMaxAttempts(10)
.totalRetryPeriodMillis(15000)
.build());
I put the lib appengine-gcs-client-0.3.9.jar in war/WEB-INF/lib. I think there is a problem with this lib.
Thanks for help.
Always use tools like Maven or Ivy to resolve dependencies for you. Copying JARs to war/WEB-INF/lib/ directory and editing .classpath file manually will be painful and may not help you always. If you use Eclipse & Google App Engine plugin, use Add Google APIs... as mentioned here - Google Plugin for Eclipse. In my case, adding Cloud Storage API via Google Plugin for Eclipse helped resolve this NoClassDefFoundError.
I had the same problem. I use Ivy to resolve dependencies and always get the latest.integration (with Maven use RELEASE) for revisions.
However I usually ignore transitive libraries. It looks like Google is expanding the API family - at least splitting out discrete functionality.
There are now quite a few transitive dependencies and it seems they released a new version of the GCS client around the same time as 1.9.3.
Getting all dependencies and packaging them in my deployment fixed my issue. I did not have the issue in development which made it more confusing.
You are facing this issue because you are not adding the some of the jar like
google-api-services-storage-v1-rev78-1.22.0.jar download link
joda-time-2.94.jar download link
guava-19.0.jar link to download
you can use the different version of jar according to your appengine-gcs-client jar file.
Note : Add all these jar and build path with the project and problem will get solve.

Imagemagick class "imagick" not found in cakephp

I am working on cakephp project which I need to run sample source code before I started my project.
I have config all file in apache and PHP and my project seem to be run well, but one problem that I faced is about class imagick not found.
sounds like you don't have imagick installed on your sever

Java JXTA - where is the JAR file?

Where can I download JXTA/JXSE? I mean the JAR file of this library, because I found project code here
http://java.net/projects/jxta-jxse/sources/svn/show
downloaded by SVN and I have no idea how to link all classes this to NetBeans.
any help please?
See this download page. You can manually download artifacts/jars from there.

Resources