Re: [jboss-dev-forums] [jBPM Development] - AttachmentTest failure
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"AttachmentTest failure"
To view the discussion, visit: http://community.jboss.org/message/539325#539325
--------------------------------------------------------------
Hi Alejandro,
My environment is Window XP, JDK-1.5.0_15, Maven-2.2.1, hsqldb-1.8.0_10.
I changed the logging.properties and add javax.activation.level=FINEST. And there is my test output info.
08:55:37,429 FIN | [activation] MailcapCommandMap: load HOME
08:55:37,429 FIN | [activation] new MailcapFile: file C:\Documents and Settings\Administrator\.mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load SYS
08:55:37,429 FIN | [activation] new MailcapFile: file D:\apps\jdk1.5.0_15\jre\lib\mailcap
08:55:37,429 FIN | [activation] MailcapCommandMap: load JAR
08:55:37,429 FIN | [activation] MailcapCommandMap: getResources
08:55:37,429 FIN | [activation] MailcapCommandMap: URL file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,429 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/gif
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/jpeg
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,445 FIN | [activation] parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] Type: text/html
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] Type: text/xml
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] Type: text/plain
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] Type: multipart/*
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] Type: message/rfc822
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: file:/D:/externals/svn/jbpm4/trunk/modules/test-db/target/test-classes/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: URL jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] Type: text/plain
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_plain
08:55:37,445 FIN | [activation] parse: text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] Type: text/html
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_html
08:55:37,445 FIN | [activation] parse: text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] Type: text/xml
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.text_xml
08:55:37,445 FIN | [activation] parse: multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed; x-java-fallback-entry=true
08:55:37,445 FIN | [activation] Type: multipart/*
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.multipart_mixed
08:55:37,445 FIN | [activation] parse: message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] Type: message/rfc822
08:55:37,445 FIN | [activation] Command: content-handler, Class: com.sun.mail.handlers.message_rfc822
08:55:37,445 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file from URL: jar:file:/D:/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar!/META-INF/mailcap
08:55:37,445 FIN | [activation] MailcapCommandMap: load DEF
08:55:37,445 FIN | [activation] new MailcapFile: InputStream
08:55:37,445 FIN | [activation] parse: image/gif;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/gif
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: image/jpeg;; x-java-view=com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] Type: image/jpeg
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.ImageViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-view=com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: view, Class: com.sun.activation.viewers.TextViewer
08:55:37,445 FIN | [activation] parse: text/*;; x-java-edit=com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Type: text/*
08:55:37,445 FIN | [activation] Command: edit, Class: com.sun.activation.viewers.TextEditor
08:55:37,445 FIN | [activation] Merging commands for type text/*
08:55:37,461 FIN | [activation] MailcapCommandMap: successfully loaded mailcap file: /META-INF/mailcap.default
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for text/plain
08:55:37,461 FIN | [activation] search DB #1
08:55:37,461 FIN | [activation] got content-handler
08:55:37,461 FIN | [activation] class com.sun.mail.handlers.text_plain
08:55:37,461 FIN | [activation] MailcapCommandMap: createDataContentHandler for image/gif
08:55:37,461 FIN | [activation] search DB #1
08:55:37,461 FIN | [activation] search DB #2
08:55:37,461 FIN | [activation] search DB #3
08:55:37,461 FIN | [activation] search fallback DB #1
08:55:37,461 FIN | [activation] search fallback DB #2
08:55:37,461 FIN | [activation] search fallback DB #3
08:55:37,476 FIN | [activation] MailcapCommandMap: createDataContentHandler for multipart/related
08:55:37,476 FIN | [activation] search DB #1
08:55:37,476 FIN | [activation] got content-handler
08:55:37,476 FIN | [activation] class com.sun.mail.handlers.multipart_mixed
### EXCEPTION ###########################################
08:55:37,476 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@1aa0a15
org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@1684e26
at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:46)
As you see, there is no DataContentHandler being configured for image/gif, so the testcase failed. I think there must be additional mailcap file being configured in your and QA environments. So, do I need add an additional mailcap file into my java.home directory?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539325#539325]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
[JBoss Cache Development] - Using JBoss Cache Across Clusters
by Craig Simpson
Craig Simpson [http://community.jboss.org/people/servosimpson] created the discussion
"Using JBoss Cache Across Clusters"
To view the discussion, visit: http://community.jboss.org/message/539280#539280
--------------------------------------------------------------
Using JBoss AS 4.2.3 and JBoss Cache 1.4.1
I have 4 servers. 3 are clustered together to host a web application. The 4th is a dedicated EJB to process batch requests from the three other servers. I need the 4th server to be able to access the cache that is used/modified by the web app on the other servers.
The admin is telling me that if he adds the 4th server to the cluster, then the EJB will be put on the other 3 machines and the web app will be put on the EJB server. I don't want this. I've been trying to find a way for the EJB to access the cache without having to join the cluster. I've creating a second cluster to host the EJB and tweaked the replSync-service.xml on both so that they are the same, but I can't get them to share the cache.
I've tried to find doc on this, but have been unable to do so.
So my two questions are: Can the cache replicate across clusters? If not, can the cluster be configured so that 3 nodes have only the web app and the 4th node has only the EJB.
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539280#539280]
Start a new discussion in JBoss Cache Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
AS m2eclipse
by Kabir Khan
I find it extremely frustrating that each time I do a Maven/Update Dependencies in my AS workspace it takes 15 minutes to complete. Is this happening for others or just me?
I think it was faster before I changed my settings.xml for Nexus, but I am not sure.
15 years, 11 months