[JBoss Seam] - Re: Problems running SeamTest's from mvn with Seam 2.0.0.Bet
by charles.crouchï¼ jboss.com
Sorry its taken me so long to reply to this.
So basically the steps that I needed to do were the following:
| public class SeamHelper extends SeamTest
| {
| ...
| @Override
| @BeforeClass
| public void init() throws Exception
| {
| // this is required to get vfs URLs (used by JBoss Embeddded) recognized
| // while executing the test
| org.jboss.net.protocol.URLStreamHandlerFactory factory
| = new org.jboss.net.protocol.URLStreamHandlerFactory();
| URL.setURLStreamHandlerFactory(factory);
|
| // set up anything else which is needed before Seam starts loading
|
| // do all the SeamTest set up
| super.init();
| }
| ...
| }
Then I have my tests extend SeamHelper rather than SeamTest
Then in src\test\resources I put a subset of files from the \bootstrap folder in jboss-seam-2.0.0.BETA1 distro (dont need all of them because not using EJB3 for example). The subset I needed were
jndi.properties
\conf\bootstrap-beans.xml
\conf\jboss-service.xml
\conf\jbossjta-properties.xml
\conf\login-config.xml
[Had to make changes to some of these files so as to remove the need for a deployers and deploy folder for example]
Then in my pom.xml I have the following as test dependencies, again from the Seam distro:
jboss-embedded-all.jar
thirdparty-all.jar
That should be it. Let me know how you get on.
Cheers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073722#4073722
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073722
18Â years, 11Â months
[JBoss Seam] - Re: Seam SSL form Redirect
by glblack
The application failed to deploy after using <navigation:pages>.
I did find a solution by modifying the server.xml for the jboss.web connector. Adding scheme="https" to the Connector set the correct scheme for the HttpServletRequest to return the correct scheme.
Unfortunately, this creates the reverse problem of not being able to connect to the server directly.
This problem of being behind an SSL load balancer seems to be more of a servlet container issue.
<Service name="jboss.web">
|
| <!-- A "Connector" represents an endpoint by which requests are received
| and responses are returned. Documentation at :
| Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
| Java AJP Connector: /docs/config/ajp.html
| APR (HTTP/AJP) Connector: /docs/apr.html
| Define a non-SSL HTTP/1.1 Connector on port 8000
| -->
| <Connector port="8000"
| scheme="https"
| maxThreads="250" maxHttpHeaderSize="8192"
| emptySessionPath="true" protocol="HTTP/1.1"
| enableLookups="false" redirectPort="8009" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true" />
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073718#4073718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073718
18Â years, 11Â months
[Messaging, JMS & JBossMQ] - Re: connectionFactoryJndiName config property
by rosama77
"rosama77" wrote : If this work for you, this was my solution, applying scenarios 2 from the documentation examples:
|
| modify jboss-service.xml (there I defined a ConnectionFactory):
|
| <!-- start new production module bean for wms -->
|
| WSMQXAMQFACTORY
| Queue
| false
| XMYMXLW01L.QM
| 199.99.99.99
| 1420
| tt.SV
| MQJMS_TP_CLIENT_MQ_TCPIP
| jboss:service=Naming
|
|
|
| Q.MXTOB.MX
| Queue
| XMYMXLW01L.QM
| Q.MXTOB.MX
| jboss:service=Naming
|
|
|
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
|
|
|
| This in webspherems-ds.xml (deploy/jms directory):
|
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <connection-factories>
|
|
| WSMQJMSProvider
| org.jboss.jms.jndi.JNDIProviderAdapter
| WSMQXAMQFACTORY
| WSMQXAMQFACTORY
|
|
| </connection-factories>
|
| I have to create a jar file with jmx clases for classes, like jmx.service.wsmq.WSMQDestination (if you want, i can send you the jar file).
|
| And in ejb-jar.xml:
|
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
| <ejb-jar id="ejb-jar_ID">
| <display-name>WMSLoadMQEJB</display-name>
| <enterprise-beans>
| <message-driven id="ProdOrder">
| <ejb-name>ProdOrder</ejb-name>
| <ejb-class>ca.itcan.wmsloadmq.ejb.ProdOrderBean</ejb-class>
| <transaction-type>Container</transaction-type>
| <message-driven-destination>
| <destination-type>javax.jms.Queue</destination-type>
| </message-driven-destination>
| <resource-ref id="ResourceRef_1168271268760">
|
| <res-ref-name>jdbc/WMS</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
| </message-driven>
| </enterprise-beans>
| <assembly-descriptor>
| <container-transaction>
|
| <ejb-name>ProdOrder</ejb-name>
| <method-name>onMessage</method-name>
| <method-params>
| <method-param>javax.jms.Message</method-param>
| </method-params>
|
| <trans-attribute>NotSupported</trans-attribute>
| </container-transaction>
| </assembly-descriptor>
| </ejb-jar>
|
|
| Jboss.xml:
|
| <?xml version="1.0"?>
|
| <!DOCTYPE jboss PUBLIC
| "-//JBoss//DTD JBOSS 3.2//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
|
| <enterprise-beans>
| <message-driven>
| <ejb-name>ProdOrder</ejb-name>
| <configuration-name>WSMQ Message Driven Bean</configuration-name>
| <destination-jndi-name>Q.MXTOB.MX</destination-jndi-name>
| </message-driven>
| </enterprise-beans>
|
| <!-- container configuration for WSMQ -->
| <container-configurations>
| <container-configuration extends="Standard Message Driven Bean">
| <container-name>WSMQ Message Driven Bean</container-name>
| <invoker-proxy-binding-name>wsmq-message-driven-bean</invoker-proxy-binding-name>
| </container-configuration>
| </container-configurations>
|
| <!-- The JmsProviderAdapterJNDI must match the ProviderName in SERVER_HOME/deploy/jms/webspheremq-ds.xml file. -->
| <invoker-proxy-bindings>
| <invoker-proxy-binding>
| wsmq-message-driven-bean
| <invoker-mbean>default</invoker-mbean>
| <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
| <proxy-factory-config>
| WSMQJMSProvider
| StdJMSPool
| true
| <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->
| 1
| 15
| 30000
| 1
|
| 10
|
| </proxy-factory-config>
| </invoker-proxy-binding>
| </invoker-proxy-bindings>
|
|
|
| Greetings, Hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073714#4073714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073714
18Â years, 11Â months