[JBoss-user] [EJB 3.0] - starting new threads within SLSB?

2006-01-05 Thread dpocock
I am using the Westhawk Java SNMP stack in my application. The PDU objects create their own threads to handle network I/O. Is it safe to use objects like this within an EJB3 Stateless Session Bean? Alternatively, should I be using network I/O methods that block? Incidentally, when the PDU ob

[JBoss-user] [EJB 3.0] - Timer errors, even with Transaction REQUIRES_NEW

2005-12-29 Thread dpocock
I have defined my timeout method with the `REQUIRES_NEW' transaction type: @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) @Timeout public void timeoutHandler(Timer timer) { System.err.println("*** TIMEOUT: " + timer.getInfo() + " ***"); } However, I keep getting these wa

[JBoss-user] [EJB 3.0] - spurious socket timed out exceptions in log

2005-11-29 Thread dpocock
I make calls to a stateless session bean in Jboss 4.0.3. The calls are made from a client running on a separate host. Iuse a remote interface. If the client doesn't make any calls for more than 60 seconds, then the exception below appears in the JBoss console. Should I be releasing my refe

[JBoss-user] [Security & JAAS/JBoss] - LdapLoginModule troubles and fix

2005-11-20 Thread dpocock
p-admin,ou=Roles,dc=mydomain,dc=net description: myldap users objectClass: top objectClass: groupOfNames cn: myldap-admin member: uid=dpocock,ou=Webusers,dc=mydomain,dc=net # myldap, Roles, mydomain.net dn: cn=myldap,ou=Roles,dc=mydomain,dc=net description: Users of myldap logger objectClass: top objectC

[JBoss-user] [JBossWS] - Re: migrating to 4.0.1sp1

2005-10-24 Thread dpocock
I'm having this problem too - it is a client side issue in ServiceFactory.createService I put the username and password in the URL object. This worked with Axis, so why doesn't it work with the JBoss client code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[JBoss-user] [JBossWS] - security bug in ws4ee

2005-10-24 Thread dpocock
Hi, I've just discovered this bug. I have two applications in JBoss. The first is lm.war, a web app. It contains users.properties and roles.properties files for the UsersRolesLoginModule. I also have an application call cm.ear. It contains a working WS4EE EJB Web service, cm.jar. cm.jar a

[JBoss-user] [JBoss Portal] - is multipart/form-data meant to work?

2005-07-03 Thread dpocock
I am trying file upload in a struts application It works fine in regular struts When I access the application through the struts bridge, the property myFile in my ActionForm is null. In fact, when the enctype is multipart/form-data, none of the properties from the web form are available in t

[JBoss-user] [JBoss Portal] - fmt:formatDate bug with struts bridge?

2005-07-02 Thread dpocock
I made a simple jsp that tests the JSTL tag fmt:formatDate: When access directly through JBoss and struts, it works. When tested through the JBoss portal, with the struts bridge, it gives this exception: Error Type java.lang.NullPointerException Stacktrace org.apache.tagli

[JBoss-user] [JBoss Portal] - Struts bridge security output bug

2005-07-01 Thread dpocock
I believe that either I've discovered a bug in the bridging mechanism, or I'm not using it correctly. Some of my struts actions are protected by a `roles' parameter in the ActionMapping line in struts-config.xml When I go directly to the action using an appropriate portal URL (eg http://local

[JBoss-user] [JBoss Portal] - Multi-portal hosting

2005-07-01 Thread dpocock
I'm looking at hosting 3 independent portal sites in a single JBoss instance. Each site must have it's own independent set of users/admins and it's own independent CMS repository. Is JBoss Portal intended to be used this way and is there a howto for achieving this? It appears that many opti

[JBoss-user] [JBossWS] - Re: JbossWS and polymorphism?

2005-06-20 Thread dpocock
These are from the jaxrpc-mapping.xml file, both types appear to be mapped correctly. By the way, how do I make the forum display XML correctly? < java-xml-type-mapping> < java-type>com.uecommerce.telacct.ws.AgentPaymentSchemeOptions< /java-type> < root-type-qname xmlns:typeNS="http://www.uecom

[JBoss-user] [JBossWS] - Re: JbossWS and polymorphism?

2005-06-20 Thread dpocock
The WSDL defines the return type as `AgentOptions', which is defined: < complexType name="AgentOptions"> < sequence> < element name="agentId" type="xsd:int"/> < element name="apso" nillable="true" type="impl:AgentPaymentSchemeOptions"/> < element name="defaultTariff" type="x

[JBoss-user] [JBossWS] - Re: JbossWS and polymorphism?

2005-06-19 Thread dpocock
The forum software messed up the tags, here is the example again: http://www.uecommerce.com/telacct";> < getAgentOptionsReturn> < agentId>10223< /agentId> < apso > < null xsi:nil="1"/> < callBackPw>x< /callBackPw> < instId>12345< /instId> Vie

[JBoss-user] [JBossWS] - JbossWS and polymorphism?

2005-06-19 Thread dpocock
Because of the problems I was having getting my Axis based application to run in 4.0.2, I decided to try and convert it to the JBossWS model, but I have discovered problems with polymorphism in return values. The `AgentPaymentSchemeOptions' complex type is subclassed by the complex type `WPPa

[JBoss-user] [JBossWS] - Re: 4.0.2 breaks Axis

2005-06-19 Thread dpocock
Here is some SOAP output that is accepted by the client application (generated by Axis running with JBoss 4.0.0RC1): http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://schemas.xmlsoap.org

[JBoss-user] [JBossWS] - 4.0.2 breaks Axis

2005-06-19 Thread dpocock
I have an application that I developed last year, while the WS4EE code was still quite primitive. It uses the regular Axis distribution - Axis' JAR files are bundled into a servlet WAR file, which is then bundled into my application's EAR file. When the application is deployed on JBoss 4.0.0RC