[JBoss Web Services] - Strange behaviour on WebService annotated class
by Andrea Previati
Andrea Previati [http://community.jboss.org/people/andrea81it] created the discussion
"Strange behaviour on WebService annotated class"
To view the discussion, visit: http://community.jboss.org/message/547064#547064
--------------------------------------------------------------
Hello,
i'm developing en EJB3 module on JBoss 5.1.10. It contains several beans with relative webservice class using @WebService() annotation.
My dev environment is NetBeans 6.8 on Winxp; i also have a test environment on a linux server.
It works all fine except for an operation: on my Winxp server instance, there's a missing complex type in the wsdl exposed, but the same EAR deployed on the test linux server works fine.
Let me explain with a scrap of source:
*EJB source:*
public MessageListResponse getSentMessages(Integer limit, Integer offset) {
...
*DTO sources:*
public class MessageListResponse extends Response implements Serializable, Cloneable {
private static final long serialVersionUID = -8044091577142524000L;
private List<Message> messages = null;
public MessageListResponse() {
}
public MessageListResponse(List<Message> messages) {
this.messages = messages;
}
...getters+setters...
----------------
public class Response implements Serializable, Cloneable {
private static final long serialVersionUID = -5113231551096825487L;
private Boolean error = false;
private Boolean warning = false;
private Boolean info = false;
private String errorMsg = null;
private String warningMsg = null;
private String infoMsg = null;
...getters+setters...
*WS class source:*
@WebMethod(operationName = "getSentMessages")
public MessageListResponse getSentMessages(@WebParam(name = "limit")
Integer limit, @WebParam(name = "offset")
Integer offset) {
return ejbRef.getSentMessages(limit, offset);
}
Ok. Take a look at the generated wsdl:
WSDL generated on localhost (winxp):
<xs:complexType name='getSentMessagesResponse'>
<xs:sequence>
*<xs:element minOccurs='0' name='return' type='tns:response'/>*
</xs:sequence>
</xs:complexType>
WSDL generated on test env (linux):
<xs:complexType name='getSentMessagesResponse'>
<xs:sequence>
*<xs:element minOccurs='0' name='return' type='tns:messageListResponse'/>*
</xs:sequence>
</xs:complexType>
Any ideas?
Need more infos about platform/dev environment?
Thankyou very much.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547064#547064]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[Spring Integration] - Spring security and JBoss EAP 5.0
by Jan Kowalski
Jan Kowalski [http://community.jboss.org/people/Mentus] created the discussion
"Spring security and JBoss EAP 5.0"
To view the discussion, visit: http://community.jboss.org/message/547065#547065
--------------------------------------------------------------
Hello everyone,
I'm migrating my J2EE application from JBoss 4.2.2 under JBoss EAP 5.0.
I'm using the same configuration spring security, in my login-config.xml is:
<application-policy name="my_app">
<authentication>
<login-module code="org.acegisecurity.adapters.jboss.JbossAcegiLoginModule" flag="required">
<module-option name = "appContextLocation">WEB-INF/applicationContext-auth.xml</module-option>
<module-option name="key">password</module-option>
</login-module>
</authentication>
</application-policy>
and when I try login to application, I don't have any exceptions, only report:
14:19:53,916 INFO [JbossAcegiLoginModule] initializing jboss login module
14:19:53,917 INFO [JbossAcegiLoginModule] cannot locate WEB-INF/applicationContext-auth.xml
But my applicationContext-auth.xml there is in WEB-INF directory :-/
Anyone of you use spring seciurity under JBoss EAP 5.0?
Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547065#547065]
Start a new discussion in Spring Integration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years