History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-18425
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Nikolay Chashnikov
Reporter: Sascha Weinreuter
Votes: 4
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Packaged j2ee.jar depends on Geronimo-classes

Created: 05 Feb 07 14:17   Updated: 29 Aug 08 14:35
Component/s: Packaging and Installation
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,691
Severity: Medium


 Description  « Hide
The j2ee.jar in IDE-HOME/lib contains the class javax.mail.internet.ParameterList that relies on the following Geronimo-specific classes:

org.apache.geronimo.mail.util.ASCIIUtil
org.apache.geronimo.mail.util.RFC2231Encoder
org.apache.geronimo.mail.util.SessionUtil

This might be OK for IDEA's internal use, however, the j2ee.jar is offered to be added to J2EE modules which can cause serious and hard to track problems when running command line apps that include the jar through some dependency:

java.lang.NoClassDefFoundError: org/apache/geronimo/mail/util/SessionUtil
	at javax.mail.internet.ParameterList.getInitialProperties(ParameterList.java:140)
	at javax.mail.internet.ParameterList.<init>(ParameterList.java:60)
	at javax.mail.internet.ContentType.<init>(ContentType.java:70)

The jar that is (and has been) offered to be added as J2EE module-library should be a portable one.

BTW: Someone else had that problem as well: http://www.nabble.com/Question-regarding-MTOM-client-t3142379.html



 All   Comments   Work Log   Change History      Sort Order:
Sascha Weinreuter - 02 Oct 07 00:55
This one is ugly, and "Fix Version/s: None" is even more, considering the age of the issue. It cannot be that hard to package a portable j2ee.jar file, can it?

Max Ishchenko - 29 Aug 08 14:35
Damn! Have lost couple of hours investigating the problem, till found that idea adds j2ee.jar to classpath!