[Remoting] - HTTP/HTTPS Connector problems
by lm28ness
I'm trying to do JMS over HTTP/S with JBAS 4.2.1 but i run into problems. I think i configured everything fine since there is no error when JB starts up.
When i run my client i get this error. I can get the bisocket and sslbisocket to work fine but not with http/https. Any thoughts as to what i might be missing.
Failed to download and/or install client side AOP stack
org.jboss.jms.exception.MessagingNetworkFailureException
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:221)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:202)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:227)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
....
Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:332)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.remoting.Client.invoke(Client.java:518)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
... 14 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073989#4073989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073989
18Â years, 11Â months
[Installation, Configuration & DEPLOYMENT] - JNDI problem
by zhlu
I got the following errors when I deploy my app:
8:05:32,718 WARN [ServiceController] Problem starting service jboss.web.deploy
ent:war=aaa.war,id=-1582241627
rg.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
: (javax.naming.NamingException: resource-ref: java:mcv_test has no valid JNDI
inding. Check the jboss-web/resource-ref.)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
...
Here is my oracle-ds.xml file:
<jndi-name>mcv_test</jndi-name>
<connection-url>jdbc:oracle:thin:@123:1521:xxx</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>x</user-name>
y
within the app, WEB-INF, I have jboss-web.xml:
<jboss-web>
<resource-ref>
<res-ref-name>mcv_test</res-ref-name>
<jndi-name>java:mcv_test</jndi-name>
</resource-ref>
</jboss-web>
and web.xml:
<resource-ref>
<res-ref-name>java:mcv_test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
Are there any idea how to fix the problem?
-Henry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073984#4073984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073984
18Â years, 11Â months
[JBoss Seam] - Re: Qestion about timers in jboss seam
by vadger
Am I right, if I have for instance:
| @Stateful
| @Name("paymentAction")
| public class CreatePaymentAction
| {
| @In(create=true) PaymentHandler paymentHandler;
| @In Bill bill;
|
| public String schedulePayment()
| {
| paymentHandler.processScheduledPayment( new Payment(bill), bill.getDueDate() );
| return "success";
| }
|
| public String scheduleRecurringPayment()
| {
| paymentHandler.processRecurringPayment( new Payment(bill), bill.getDueDate(),
| ONE_MONTH );
| return "success";
| }
| }
The example is taken from seam documentation.
So, if I want to invoke method at deploy time, I have to do next:
| @Stateful
| @Name("paymentAction")
| public class CreatePaymentAction
| {
| @In(create=true) PaymentHandler paymentHandler;
| @In Bill bill;
|
| public String schedulePayment()
| {
| paymentHandler.processScheduledPayment( new Payment(bill), bill.getDueDate() );
| return "success";
| }
|
| @Observer("org.jboss.seam.postInitialization")
| public String scheduleRecurringPayment()
| {
| paymentHandler.processRecurringPayment( new Payment(bill), bill.getDueDate(),
| ONE_MONTH );
| return "success";
| }
| }
?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073981#4073981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073981
18Â years, 11Â months