[JBoss JIRA] (AS7-5188) WS-Addressing Action on response is not being returned as specified in the WSDL
by Jakob Munih (JIRA)
Jakob Munih created AS7-5188:
--------------------------------
Summary: WS-Addressing Action on response is not being returned as specified in the WSDL
Key: AS7-5188
URL: https://issues.jboss.org/browse/AS7-5188
Project: Application Server 7
Issue Type: Bug
Components: Web Services
Affects Versions: 7.1.2.Final (EAP)
Environment: AS7, SOA 5.2
Reporter: Jakob Munih
Assignee: Alessio Soldano
According to https://issues.apache.org/jira/browse/CXF-2629 its should be implemented that a WS method call can be overridden by the wsaw:Action or better by the @Action annotation. With jbossWS in AS7 as in SOA5.2 this is not honored.
As show from the soa52.txt log file, having two methods with the same inbound input but different wsaw:Action the same method is called every time. In the occasion where the right return type is triggered the outbound body rightfully contains the MCCI_IN000002UV01 object representation. With the wsaw:Action referring the the other method (the same method is called as before) an empty body is replied. AS7 is a little bit more clever. It replies in the second occasion throws an SoapFault that the method not supported. Seem that CXF try to handle the situation, but there are some problems in the INVOKE phrase between jboss-ws and the deployed endpoint call.
The web service is created with maven org.apache.cxf:cxf-codegen-plugin that correctly adds @Action from the interface created from the wsdl. And the implementation has @Addressing(required = true, enabled = true) annotation and sending and request without the addressing headers correctly refuses the inbound message.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (AS7-1375) UnsupportedDataTypeException sending email
by Tomáš Remeš (JIRA)
UnsupportedDataTypeException sending email
-------------------------------------------
Key: AS7-1375
URL: https://issues.jboss.org/browse/AS7-1375
Project: Application Server 7
Issue Type: Bug
Environment: jdk-u26, jboss-as-7.1.0.Alpha1-SNAPSHOT(07/22/2011)
Reporter: Tomáš Remeš
Seam 3 send mail example fails on:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_1_340486764.1311336438303"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:905) [activation-1.1.1.jar:1.1.1]
at javax.activation.DataHandler.writeTo(DataHandler.java:330) [activation-1.1.1.jar:1.1.1]
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476) [mail-1.4.4.jar:1.4.4]
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772) [mail-1.4.4.jar:1.4.4]
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099) [mail-1.4.4.jar:1.4.4]
... 42 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] (AS7-5187) Java Activation API Module prevents use of Java Mail API in JBoss OSGI
by Ed Roberts (JIRA)
Ed Roberts created AS7-5187:
-------------------------------
Summary: Java Activation API Module prevents use of Java Mail API in JBoss OSGI
Key: AS7-5187
URL: https://issues.jboss.org/browse/AS7-5187
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.2.Final (EAP), 7.1.1.Final
Environment: jdk-u32, jboss-as-7.1.1.Final, Windows XP
Reporter: Ed Roberts
The module.xml content for javax.activation.api prevents the ability to expose it and the javax.mail.api modules to the JBoss OSGi container.
Inside the module.xml there is a dependency declaration on javax.mail and an embedded import statement that includes everything beneath META-INF. This statement is including the Manifest.mf which causes the OSGi container to believe the activation bundle is the mail bundle.
Adding additional exclude or exclude-set statements does not alter the include in any way. Some documentation explaining the relation between these sibling elements within the module schema would help, and inclusion of the module schema in the jboss as distribution also.
2012-07-17 10:11:47,182 ERROR [org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener](EclipseGeminiBlueprintExtenderThread-5) Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=my-svc, config=osgibundle:/META-INF/spring/*.xml)): org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean' defined in URL [bundle://my.svc-44-0-0/META-INF/spring/osgi.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myBean' defined in URL [bundle://my.svc-44-0-0/META-INF/spring/osgi.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:198)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
... 14 more
Caused by: java.lang.NoClassDefFoundError: javax/mail/MessagingException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:67)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
... 24 more
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException from [Module "deployment.my-svc:1.0.0.SNAPSHOT" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 30 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] (AS7-3281) Add a "force" attribute to CLI add operations to allow existing resources to be transparently recreated
by Robert Reimann (JIRA)
Robert Reimann created AS7-3281:
-----------------------------------
Summary: Add a "force" attribute to CLI add operations to allow existing resources to be transparently recreated
Key: AS7-3281
URL: https://issues.jboss.org/browse/AS7-3281
Project: Application Server 7
Issue Type: Feature Request
Components: CLI
Affects Versions: 7.1.0.CR1b
Reporter: Robert Reimann
Assignee: Alexey Loubyansky
To allow for repeatable CLI script executions (e.g. in case of a missconfiguration like wrong IP or DB-Password provided) conditional logic is required to prevent "Duplicate resource" failures. These logic is typically contained in a wrapper script (shell script or another scripting language).
Pseudocode:
{code}
exists = test if the resource to be (re-)added already exists
if (exists) remove resource
add resource
{code}
Adding a "force" or "override" attribute to the add operation (which recreates the resources transparently if necessary) would remove the need for conditional logic and additional wrapper scripts.
A simple example, assuming that the logger to be added already exists:
{code}
/subsystem=logging/logger=com.arjuna:add(level=TRACE, force=true)
{code}
In such a case the existing logger should be removed and recreated with the new properties provided.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months