[
https://jira.jboss.org/jira/browse/JBSEAM-3534?page=com.atlassian.jira.pl...
]
Rodrigo Saito commented on JBSEAM-3534:
---------------------------------------
Maybe the problem is in the way MockServletContext try to find the web.xml file.
URL webxml = getClass().getResource("/WEB-INF/web.xml");
In glassfish it returns an invalid URI that is passed to File constructor in line 44.
Problem sending email in Glassfish v2
-------------------------------------
Key: JBSEAM-3534
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3534
Project: Seam
Issue Type: Bug
Components: Mail
Affects Versions: 2.1.0.CR1
Environment: Glassfish v2
Reporter: Rodrigo Saito
Assignee: Pete Muir
Attachments: jboss-seam-email.war
In jboss the example application works fine, but in glassfish v2 it throws an exception.
Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.<init>(File.java:363)
at org.jboss.seam.mock.MockServletContext.<init>(MockServletContext.java:44)
at
org.jboss.seam.ui.facelet.MockServletContextManager.create(MockServletContextManager.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:126)
at org.jboss.seam.Component.callComponentMethod(Component.java:2154)
at org.jboss.seam.Component.callCreateMethod(Component.java:2077)
at org.jboss.seam.Component.newInstance(Component.java:2037)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira