[Tomcat, HTTPD, Servlets & JSP] - Re: mod_jk in Jboss
by Metal Jboss
Hey I guessed I understood something about mod_jk, this has to be in Apache, and Apache will forward the requests to the JBOSS/Tomcat server ok I got that, but there is somethin I found about the downloading of the connectors....
Section of the Configuration
Step #2: Download mod_jk 1.2.x
Download the latest package available from Tomcats's 'Download Tomcat connector section' page . Always download the latest stable release if possible.
Rename the lib mod_jk.so and drop it in APACHE_HOME/modules directory.
In this url: http://tomcat.apache.org/download-connectors.cgi I downloaded the 1.2.26 of the tomcat connectors, inside this zip file there is the folder apache2-0 I found two mod_jk files , the mod_jk.c and mod_jk.dsp, accordin to the instruction I must rename the lib mod_jk.so, and drop it to the Apache Modules , but which one o which of them I have to move in order to this works?? I hope I am cleared with my question and thanks by the way
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171587#4171587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171587
17 years, 8 months
[Beginners Corner] - JavaMail JNDI Problem
by wcydaip
I am trying to setup the example jar from javamail1.4 within JBoss, but, I keep having problems linking my war to the appropriate JNDI value or setting the JNDI resource explicitly. I'm using JBoss4.0.3RC1
The following is the error:
| ... 62 more
| 10:39:12,031 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0
| .3SP1-FRESH/server/default/deploy/javamail.war
| org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
| e: (javax.naming.NamingException: resource-ref: MySession has no valid JNDI bind
| ing. Check the jboss-web/resource-ref.)
|
I'm not sure what is meant by the jboss-web/resource-ref. I've taken a guess that it means a jboss-web.xml file, but, then again, I'm not sure which jboss-web.xml file I'm supposed edit.
web.xml
| <resource-ref>
| <res-ref-name>MySession</res-ref-name>
| <res-type>javax.mail.Session</res-type>
| <jndi-name>java:/NetaMail</jndi-name>
| <res-auth>Container</res-auth>
| </resource-ref>
|
default/deploy/mail-service.xml
| <mbean code="org.jboss.mail.MailService"
| name="jboss:service=Mail">
| <attribute name="JNDIName">java:/NetaMail</attribute>
| <attribute name="User">###</attribute>
| <attribute name="Password">###</attribute>
| <attribute name="Configuration">
| <!-- Test -->
| <configuration>
| <!-- Change to your mail server prototocol -->
| <property name="mail.store.protocol" value="imap"/>
| <property name="mail.transport.protocol" value="smtp"/>
|
| <!-- Change to the user who will receive mail -->
| <property name="mail.user" value="###"/>
|
| <!-- Change to the mail server -->
| <property name="mail.pop3.host" value="###"/>
|
| <!-- Change to the SMTP gateway server -->
| <property name="mail.smtp.host" value="###"/>
|
| <!-- Change to the address mail will be from -->
| <property name="mail.from" value="neta(a)###.com"/>
|
| <!-- Enable debugging output from the javamail classes -->
| <property name="mail.debug" value="true"/>
| </configuration>
| <depends>jboss:service=Naming</depends>
| </attribute>
| </mbean>
|
and I tried the server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml
but to no avail:
| <resource-ref>
| <res-ref-name>MySession</res-ref-name>
| <res-type>javax.mail.Session</res-type>
| <jndi-name>java:/NetaMail</jndi-name>
| <res-auth>Container</res-auth>
| </resource-ref>
|
Can anyone tell me where I'm messing up?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171585#4171585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171585
17 years, 8 months
[JBoss Messaging] - Re: JBoss Messaging and Spring Message Listener Container
by zackurey
Since the topic was about Spring Message Listener containers in general I thought I'd add with one gotcha that I ran into with a customer trying to integrate with JBM.
If you use Spring's DefaultMessageListenerContainer, which I believe polls for new messages, ensure that you set the caching level to CACHE_NONE. The relevant comment in the Spring code is:
| * Specify the level of caching that this listener container is allowed to apply.
| * <p>Default is CACHE_NONE if an external transaction manager has been specified
| * (to reobtain all resources freshly within the scope of the external transaction),
| * and CACHE_CONSUMER else (operating with local JMS resources).
| * <p>Some J2EE servers only register their JMS resources with an ongoing XA
| * transaction in case of a freshly obtained JMS Connection and Session,
| * which is why this listener container does by default not cache any of those.
| * However, if you want to optimize for a specific server, consider switching
| * this setting to at least CACHE_CONNECTION or CACHE_SESSION even in
| * conjunction with an external transaction manager.
| * <p>Currently known servers that absolutely require CACHE_NONE for XA
| * transaction processing: JBoss 4. For any others, consider raising the
| * cache level.
| * @see #CACHE_NONE
| * @see #CACHE_CONNECTION
| * @see #CACHE_SESSION
| * @see #CACHE_CONSUMER
| * @see #setCacheLevelName
| * @see #setTransactionManager
|
The way the issue ended up manifesting itself was that messages, when browsing in the JMX console, would appear stuck in a 'DELIVERING' state, even though the client had consumed them(the Session was just never closed). Sometimes this appeared to hang the queue entirely for reasons I didn't pursue further. After setting to CACHE_NONE the issue happily went away.
Note that I saw this behavior with JBoss Message 1.4.0SP3 + Spring 2.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171582#4171582
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171582
17 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Re: JBoss not recognizing deployments from Maven
by HappySpaceInvader
"PeterJ" wrote : But doesn't your Maven build place a Messaging.jar (or perhaps Messaging-1.0-SNAPSHOT.jar) into your target directory? I would think that the maven-jboss-deploy-plugin would use that when it has to deploy somthing.
|
It does place a Messaging.jar in /jboss/server/myserver/deploy/myproject/Messaging/1.0-SNAPSHOT/lib. This is why I am surprised that JBoss does not pick it up. If I move that jar file to any other set of nested directories under the deploy directory, JBoss sees it and deploys it successfully. JBoss seems to know to watch the ...myproject/Messaging/1.0-SNAPSHOT/ directory as you can see from the above logs. This is why I think the component-info.xml is preventing JBoss from deploying this package... due to missing information.
I've tried to find some more information on what that file actually needs, but haven't found anything conclusive. Also, I am limited to what I can pass in via the maven plugin, but this plugin has been developed by JBoss and is at version 1.6, so I would have thought that it works enough to allow something simple like a JAR to be deployed.
"PeterJ" wrote :
| Crazy question - where is your project directory located? I hope that it is not at /jboss/server/myserver/deploy/myproject.
That is where it is deployed to. The build project directory is somewhere completely different.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171581#4171581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171581
17 years, 8 months