IntelliJ Tomcat Problem : external jars missing during deployment in tomcat

Hello,

I have a question about IntelliJ IDEA, I would like to migrate Eclipse project to IntelliJ. My project is a Maven Web application and when I tried to deploy it on Tomcat I have some issues.

It seems to me that IntelliJ doesn't take the library that I add to libraries on the Tomcat Application Server....

I don't understand why IntelliJ IDEA 13 doesn't take jars that I added in the Tomcat libraries Please file in attachment.


How can I do the same like Eclipse : Add external jars in the Classpath user entries of the Tomcat ?

for example :
- In Eclipse if I don't add ojdbc14.jar in the classpath user entries of the Tomcat I have this error : Cannot load JDBC driver class 'oracle.jdbc.OracleDriver' and to solve this issue I added it to the classpath user entries

- In IntelliJ IDEA nothing solve this issue

And I have this issue to :
Caused by: java.lang.NoClassDefFoundError: javax/mail/Authenticator

It's like IntelliJ doesn't seen the mail.jar in the tomcat libraries

Could you help me please ?

Thank you very much for your help.



Attachment(s):
IJ_tomcat6_classes.jpg
3 comments
Comment actions Permalink

Hi,
I have created the following issue http://youtrack.jetbrains.com/issue/IDEA-119231 for your question.

BR,
Kirill

0
Comment actions Permalink

Hi,

Thank you very much for open this issue.

I hope that it should be solved quickly.

Best Regards

0
Comment actions Permalink

Sorry, it is by design and most probably will not be fixed, see http://youtrack.jetbrains.com/issue/IDEA-90303#comment=27-579704

Note that you have multiple ways to solve the problem:
- just copy the missing jar into the $CATALINA_BASE/lib manually,
- add this jar into the artifact
- modify common.loader property in $CATALINA_BASE/conf/catalina.properties to point to the other folder with your libs

We can think about some intelligent way of in-advance warning about the problem. But in general we think that the difference in tomcat behavior (depending on whether it is started from IDEA or not) will create more harm than good.

Regards,
Michael

0

Please sign in to leave a comment.