Here is the documentation on how mailcap is loaded:
http://java.sun.com/products/javabeans/glasgow/javadocs/javax/activation/MailcapCommandMap.html
----
1. Programatically added entries to the MailcapCommandMap instance.
2. The file .mailcap in the user's home directory.
3. The file <java.home>/lib/mailcap.
4. The file or resources named META-INF/mailcap.
5. The file or resource named META-INF/mailcap.default (usually found
only in the activation.jar file).
----
Please check your home for a .mailcap and the java.home/lib/mailcap.
As a test try to create a .mailcap in your home folder like this:
----
report/*; ;
x-java-content-handler=org.apache.james.util.mail.handlers.multipart_report
message/disposition-notification; ;
x-java-content-handler=org.apache.james.util.mail.handlers.message_disposition_notification
text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
multipart/*;;
x-java-content-handler=com.sun.mail.handlers.multipart_mixed;
x-java-fallback-entry=true
message/rfc822;;
x-java-content-handler=com.sun.mail.handlers.message_rfc822
----
The exception you have is thrown when you try to parse a mimemessage
using multipart/mixed content-type and activation cannot find a
DataContentHandler for that type. The DCH for multipart/* is defined in
the mail-1.4.jar mailcap, but maybe something in your system is
overriding it (or hiding it).
Stefano
Evert Tigchelaar wrote:
I use the run.bat, here is the output that I get when I start James and
let Eclipse attach its debugger:
E:\projects\james\dist\james-2.3-dev\bin>run.bat
Using PHOENIX_HOME: E:\projects\james\dist\james-2.3-dev
Using PHOENIX_TMPDIR: E:\projects\james\dist\james-2.3-dev\temp
Using JAVA_HOME: D:\prg\Java\jdk1.5.0_07
E:\projects\james\dist\james-2.3-dev\bin>"D:\prg\Java\jdk1.5.0_07\bin\java"
-Xde
bug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
"-Djava.ext.di
rs=E:\projects\james\dist\james-2.3-dev\lib;E:\projects\james\dist\james-2.3-dev
\tools\lib" "-Dphoenix.home=E:\projects\james\dist\james-2.3-dev"
"-Djava.securi
ty.policy=jar:file:E:\projects\james\dist\james-2.3-dev/bin/phoenix-loader.jar!/
META-INF/java.policy" "-Djava.security.manager" -jar
"E:\projects\james\dist\ja
mes-2.3-dev\bin\phoenix-loader.jar"
Listening for transport dt_socket at address: 8000
Phoenix 4.2
James Mail Server 2.3-dev
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled
Evert
Stefano Bagnara wrote:
Evert Tigchelaar wrote:
I am working in Eclipse and running with the debugger enabled, when I
assign a byte[] from the debugger to the content of the message to be
send
before its been send then I receive an empty e-mail from the
postmaster where the subject is been prefixed with re: .
How do you run it via eclipse?
You should run james via its run command and maybe connect to it to
debug as remote application so you are sure that eclipse does not
include a bad mailcap in your classpath.
So it looks like that isn't the problem,so I think something with
creating the mail that is sended back goes wrong.
I bet the problem is mailcap.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]