Apparent port conflict using LCDS with JBoss

Hi,<br />I am somewhat new to this so please bear with me.  On my server I have lcds installed and sample.war working in JBoss 4.0.5.  I have written a datatier in Java against PostgreSQL 8.x and am writing simple mxml programs to test it.  I have had some success with this. All of the new code is installed in a copy of samples.war because I do not understand the configuration files well enough to toss the examples out.  My latest problem is that my recent versions of the war file get this error in my JBoss log file:<br />Exception in thread "RTMP-Server" <br />flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has encountered a fatal exception starting up: Address already in use<br />     at flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:317)<br />     at java.lang.Thread.run(Thread.java:595)<br />The port specified in the services-config.xml in my war is 2038, and I see JBoss also has an identical services-config.xml at:<br /> <jboss root>/server/default/flex/WEB-INF/flex.  <br />Has anyone else seen this?  Do I just need to change the port?  In both places?  Or is there something else I need to do?<br />Thanks!

Robert,
Thanks for responding. Here is my Ant script, comments and all.
Jerry
=======================
<?xml version="1.0" ?>
<project default="main" >
<!-- basedir. Hmm. we could actually put this Ant script IN THE ROOT of the sbda eclipse project, as it is mapped to svn.
Then we could have a separate script that checks out all of that stuff from svn, cd's to the root of the checked out
code, then runs Ant. In that case the basedir IS ".", because it is all run relative to wherever that checked out
code will lives. This also gets this script into ANT, which is a safe place for it.
So where does the 'first' script live? We have to use it before we check out from svn...
And what about the php code to handle uploads, sb_upload.php? For now that is separate, not directly in svn.
At least until we can get the eclipse for php to also use Subclipse.
Note: we also need to do a plain vanilla copy of the WEB-INF from basedir to the war dir. We do NOT wish
to create the WEB-INF from scratch!!
-->
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask"> </taskdef>
<target name="main" depends="checkout, initvars, initdirs, compile, war, deploy"/>
<target name="mainxxxx" depends="initvars, compile"/>
<property name="checkout_target" value="C:\dev\sb\BuildScience\ant_dev\root3"/>
<property name="checkedout_project" value="${checkout_target}"/>
<target name="checkout" >
<svn javahl="true" description="use svn-ant to checkout from our svn -- destPath is 'basedir' for all else">
<checkout url="http://sb001.com/dev/sbda"
destPath="${checkout_target}"/>
</svn>
</target>
<target name="initvars">
<property name="src" value="${checkedout_project}/src"/> <!-- this works! -->
<property name="bin" value="${checkedout_project}/output"/> <!-- this works! First we compile to 'bin', then later copy to WEB-INF/classes. Yes.-->
<property name="web" value="${checkedout_project}\WebContent"/> <!-- this works! Because all of the webby stuff (in our case the mxml and as in their folders) IS at basedir-->
<property name="descriptors"
value="${checkedout_project}/output/deploymentdescriptors"/>
<property name="wardir" value="${checkedout_project}/output/war"/>
<property name="warfile" value="sbda.war"/>
<property name="warfinaldir" value="${checkedout_project}/finalwar"/>
<property name="deploydir" value="${checkedout_project}/fakojbossdeploydir"/>
<property name="morejarsdir" value="${web}\WEB-INF\lib"/>
<property name="morejarsdir2" value="${web}\WEB-INF\flex\jars"/>
<echo> "checkout_target is: ${checkout_target}" </echo>
<echo> "checkedout_project is: ${checkedout_project}" </echo>
<echo> "src is: ${src}" </echo>
<echo> "bin is: ${bin}" </echo>
<echo> "web is: ${web}" </echo>
<echo> "descriptors is: ${descriptors}" </echo>
<echo> "wardir is: ${wardir}" </echo>
<echo> "warfile is: ${warfile}" </echo>
<echo> "warfinaldir is: ${warfinaldir}" </echo>
<echo> "deploydir is: ${deploydir}" </echo>
<echo> "morejarsdir is: ${morejarsdir}" </echo>
<echo> "morejarsdir2 is: ${morejarsdir2}" </echo>
<!--
<path id="classpath">
<fileset dir="${morejarsdir}" includes="**/*.jar"/>
<fileset dir="${morejarsdir2}" includes="**/*.jar"/>
</path>
-->
</target>
<target name="initdirs">
<!-- <mkdir dir="${wardir}/WEB-INF"/> MUST do a straight copy of this from basedir. Do NOT create from scratch.-->
<mkdir dir="${wardir}/WEB-INF/classes"/> <!-- But this one is a keeper, since our WEB-INF does NOT have a classes directory. -->
<!-- A new directory: a place to put the finished WAR file -->
<mkdir dir="${warfinaldir}" />
<mkdir dir="${deploydir}" />
</target>
<!-- Looks good. Will compile from 'src' and place the results in 'bin', which is /output. The war target will copy them from there to the appropriate place in the WAR file.
Damn. javac cannot find our classpath lib. It should be able to figure out the Postgres and Flex stuff but it does not yet. This classpath ref is the likeliest culprit.
-->
<!-- <target name="compile">
<javac destdir="${bin}" srcdir="${src}" includes="**/*.java" classpathref="classpath" verbose="true" />
</target> -->
<target name="compile">
<javac destdir="${bin}" srcdir="${src}" includes="**/*.java" verbose="true" >
<classpath>
<fileset dir="${morejarsdir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${morejarsdir2}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<!-- <classpath refid="build.classpath" /> -->
</target>
<target name="war">
<!-- This big copy will also copy all of the supporting flex stuff we need, especially the stuff in WEB-INF/flex (in svn) -->
<copy todir="${wardir}">
<fileset dir="${web}" >
<include name="**/*.*" />
<exclude name="**/junit.jar" />
<exclude name="**/javax.servlet.jar" />
<exclude name="**/commons-logging.jar" />
<!-- <exclude name="**/postgresql-8.1-410.jdbc3.jar" /> -->
<!--
-->
</fileset>
<!-- postgresql-8.1-410.jdbc3.jar junit.jar javax.servlet.jar -->
</copy>
<!-- <copy file="${descriptors}/web.xml" todir="${wardir}/WEB-INF" /> Don't need this because the web.xml file will be capied by the previous copy step.-->
<!-- Copy the class files to the special location in the war file -->
<copy todir="${wardir}/WEB-INF/classes">
<fileset dir="${bin}" includes="**/*.class" />
<fileset dir="${src}" >
<!--<include name="**/*.java"/> -->
<!-- Very special inclusion: This line will pull in commons-logging.properties from the root of 'src' dir
We absolutely MUST have it to fix Adobe FDS bug 179227 which will otherwise cause the war to fail in JBoss with an error like:
"Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed."
In fact we don't need the Java files but we need this!
-->
<include name="**/*.properties"/>
</fileset>
</copy>
<!-- war it up: -->
<jar jarfile="${warfinaldir}/${warfile}" basedir="${wardir}" />
</target>
<target name="deploy">
<copy file="${warfinaldir}/${warfile}" todir="${deploydir}" />
</target>
<!-- <target name="ear">
<copy file="${descriptors}/application.xml" todir="${eardir}/META-INF" />
<jar jarfile="${basedir}/${earfile}" basedir="${eardir}" />
</target>
-->
</project>

Similar Messages

  • How do you use Struts with Jboss Portal

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

  • Is it possible to use jdbcappender with jboss's logger?

    Hi
    Is it possible to use JDBCAppender with org.jboss.logging.Logger instead of org.apache.log4j.Logger? secondly can i also use jboss.logging.logger to send my logs to the database (not manually, using configuration file as with apache.log4j) ?
    TIA.

    Back in my days, when you were new to Java, you wrote all sorts of stupid console programs and crapplets to get the hang of it.
    Anyway, without seeing JBoss' logging framework, I'm gonna say "no, you can't" unless they've actually bothered to make it compatible with commons-logging (or was that log4j). However, you probably could write your own JDBCAppender for their framework or at least a small adapter that would forward the logging requests to log4j.

  • Using OAQ with JBoss

    Is anyone else using OAQ and JBoss together ? I am trying to use the patch provided at http://sourceforge.net/tracker/index.php?func=detail&aid=912173&group_id=22866&atid=376687 but running into difficulties (see my comments on that page). If I can't get this worked out then I don't think that I will be able to use a Message-Driven EJB to listen to this OAQ queue. If anyone can give me any suggestions I would really appreciate it !
    -James

    Go through the JBoss documents. You may have to buy some of them ( last time I checked they were 10 dollars, shouldn't break the bank ). Then if you still have problems theres the JBoss mailing list or JBoss forums. They used to be very helpful, if you ask questions sensibly.

  • Can Flex get faster using BLAZEDS with JBOSS

    how can i make the data push faster?
    i develop an application on java that reads data from a gps located in a car, and other java receive this data. im actually sending the data to FLEX using BlazeDS and JBoss as application server, but i dont know why it's too slow,
    flex receive the data push every 3 seconds or more, and i want to be able to receive as much data as i want!!
    my question is, can i make flex faster receiving this data!?
    i need to receive the data faster to actually show on real time the position of the car,
    thanks

    Looks like you guys have blazeds up and running inside JBoss. I'm actually having trouble getting this up and running. Can you provide some info on how you set it up? Here are my configs:
    activemq-jms-ds.xml:
          jms/testTopic
          jboss.jca:service=RARDeployment,name='activemq-ra.rar'
          javax.jms.Topic
          PhysicalName=test.topic
    messaging_config.xml :
                    Topic
                    javax.jms.TextMessage
                    activemq/TopicConnectionFactory
                    jms/testTopic
                    NON_PERSISTENT
                    DEFAULT_PRIORITY
                    "true"
                    AUTO_ACKNOWLEDGE
                    1
    What am I missing? Look forward to hearing from you guys. Thanks in advance.

  • URGENT -- Problem in using JMS with JBOSS

    Hi,
    My jar file which includes my Java/JMS classes can easily be executed when I use Sun Application server, but I don't know how I can change execute the same jar file in when I switch to JBOSS. Do I need to use ants? or I can use the original jar files?
    thanks,

    It can depends on your application, but basically in order to run JMS JBoss client application you need:
    1) Set proper jndi settings, e.g. by placing jndi.properties to the root of your classpath.
    2) Add some jars to your classpath from client folder of your jboss AS distribution. My latest application works well with concurrent.jar, jnp-client.jar and jbossall-client.jar on the classpath.
    You can read more at http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch6.chapt.html It is valid for all the 4.x jboss versions. Check jboss samples also.
    Best Regards,
    Roman

  • Ear file  cant be deployed from  eclipse with jboss 3.2.7

    I am using eclipse with JBOSS IDE1.5
    I want to work with EJB in eclipse. I have created configured all neccessary directory structure , xml files and jar,war,ear files(using XDoclet Configureations).
    But i am not able to deploy my "ear" file . At that time i am getiing following message in JBOSS Console.
    16:48:41,937 INFO [EARDeployer] Init J2EE application: file:/F:/jboss-3.2.7/server/default/deploy/FiboApp.ear
    16:48:42,421 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 22.2
    Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the <home> element.
    Info : Class not found on 'tutorial.interfaces.FiboHome': No ClassLoaders found for: tutorial.interfaces.FiboHome
    16:48:42,453 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 22.2
    Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the <remote> element.
    Info : Class not found on 'tutorial.interfaces.Fibo': No ClassLoaders found for: tutorial.interfaces.Fibo
    16:48:42,453 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 7.10.1
    Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.
    Any suggestions or remarks will be greatly appreciated
    Thanks in advance
    satheesh

    Atlast it worked. The problem was that in my ejb-jar.xml I was referring to 2_0.dtd. I have changed that to 2.1 and it worked.
    Older ejb-jar.xml had:
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "C:/jboss-4.0.1sp1/docs/dtd/ejb-jar_2_0.dtd">
    I changed that to:
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    And it worked.
    -Sathish

  • MySql with JBoss connection refused

    hello,
    I am using MYSql with JBOSS, but while running starting JBOSS it
    gives
    Connection refused error:
    MySqlDB] at java.net.PlainSocketImpl.socketCon
    MySqlDB] at java.net.PlainSocketImpl.doConnect
    MySqlDB] at java.net.PlainSocketImpl.connectTo
    MySqlDB] at java.net.PlainSocketImpl.connect(U
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at org.gjt.mm.mysql.MysqlIO.<init>(My
    MySqlDB] at org.gjt.mm.mysql.jdbc2.IO.<init>(I
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    159)
    MySqlDB] at org.gjt.mm.mysql.Connection.connec
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    va:89)
    MySqlDB] at org.gjt.mm.mysql.Driver.connect(Dr
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:118)
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:151)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XACo
    (XAConnectionFactory.java:246)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    ol.java:819)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:569)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:521)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XAPo
    APoolDataSource.java:165)
    MySqlDB] at org.jboss.jdbc.XADataSourceLoader.
    der.java:330)
    MySqlDB] at org.jboss.util.ServiceMBeanSupport
    ava:93)
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.util.ServiceControl.star
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.Main.<init>(Main.java:21
    MySqlDB] at org.jboss.Main$1.run(Main.java:121
    MySqlDB] at java.security.AccessController.doP
    MySqlDB] at org.jboss.Main.main(Main.java:117)
    I used the following tag in in JBOSS.jacml
    <!-- MYSQL -->
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MySqlDB">
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="PoolName">MySqlDB</attribute>
    <attribute name="URL">jdbc:mysql://192.168.0.6/AccountingDb:3333</attribute>
    <attribute name="Properties">DatabaseName=AccountingDb</attribute>
    <attribute name="JDBCUser"></attribute>
    <attribute name="Password"></attribute>
    <attribute name="MinSize">0</attribute>
    <attribute name="MaxSize">10</attribute>
    <attribute name="GCEnabled">false</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    </mbean>
    <!-- END MYSQL -->
    and JDBC tag is
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.pervasive.jdbc.v2.Driver,org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    plz help me out
    thanks
    bhuwan

    I am just use that ...But it works...!!
    MySQL is Runing good ...
    the problem is that you must reset the defaultDS,
    to be Mysql.
    So,Jboss must have only one DefaultDS,
    In My Setup...
    1.standardjaws.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <jaws>
    <datasource>java:/mySQL</datasource>
    2.jboss.jcml (must changed as followed)
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQL">
    <attribute name="PoolName">mySQL</attribute>
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="Properties"></attribute>
    <attribute name="URL">jdbc:mysql://localhost/j2ee</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="JDBCUser" />
    <attribute name="MaxSize">10</attribute>
    <attribute name="Password" />
    <attribute name="GCEnabled">false</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    <attribute name="MinSize">0</attribute>
    </mbean>

  • Spring-jmx enabled with Jboss getting Exception

    Hi all,
    I am using JMX with Jboss ,
    I am getting follwing error frequently please help me.if i re-start the server this problem will not be ther.
    exception
    javax.servlet.ServletException: Failed to invoke operation
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:269)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.management.MBeanException: RuntimeException thrown in
    RequiredModelMBean while trying to invoke operation reloadSuscriberOptions
    javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1090)
    javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:954)
    org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    org.jboss.mx.modelmbean.RequiredModelMBeanInvoker.invoke(RequiredModelMBeanInvoker.java:127)
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
    org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
    antlr.CharScanner.makeToken(CharScanner.java:173)
    org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
    org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
    org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
    antlr.TokenBuffer.fill(TokenBuffer.java:69)
    antlr.TokenBuffer.LA(TokenBuffer.java:80)
    antlr.LLkParser.LA(LLkParser.java:52)
    org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:139)
    org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:248)
    org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
    org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
    org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
    org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
    org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
    org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
    org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:59)
    org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
    org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:103)
    sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:346)
    $Proxy79.createNamedQuery(Unknown Source)
    sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.springframework.orm.jpa.JpaTemplate$CloseSuppressingInvocationHandler.invoke(JpaTemplate.java:394)
    $Proxy79.createNamedQuery(Unknown Source)
    org.springframework.orm.jpa.JpaTemplate$11.doInJpa(JpaTemplate.java:334)
    org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:185)
    org.springframework.orm.jpa.JpaTemplate.executeFind(JpaTemplate.java:152)
    org.springframework.orm.jpa.JpaTemplate.findByNamedQuery(JpaTemplate.java:332)
    org.springframework.orm.jpa.JpaTemplate.findByNamedQuery(JpaTemplate.java:328)
    aero.sita.voyager.servicecontainer.persistence.PersistenceManagerImpl.findByNamedQuery(PersistenceManagerImpl.java:198)
    please help me

    Hi,
    we've a spring-webapp in a tomcat using jmx via org.springframework.jmx.export.MBeanExporter, and are facing the a similar problem.
    java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token
         at antlr.CharScanner.makeToken(CharScanner.java:173)
         at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
         at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
         at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
         at antlr.TokenBuffer.fill(TokenBuffer.java:69)
         at antlr.TokenBuffer.LA(TokenBuffer.java:80)
         at antlr.LLkParser.LA(LLkParser.java:52)
         at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:139)
         at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:248)
         at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
         at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
         at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
         at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)

  • Help with AXiom anlong with jboss

    Hi
    I have some requirement Regarding AXIOM .
    Currently i am using Enterprise Application EJB2.1 with Jboss4.0.2
    I am deploying my service in jboss which i think uses Axis2 internally
    i've heard that AXIOM has some advantage over Axis2 which are memory related issues and AXiom uses Stax pull parsing internally,
    So if i want to use AXiom in my current application what all changes i need to do
    whether Jboss4.0.2 version supports AXIOM because currently jboss4.0.2 uses org.jboss.axis and not org.apache.axis
    So my question is Can i use AXIOM with jboss ,if yes which version of jboss,and is it concerned with JDK1.5 ?
    can u send me some links which will give me jboss +AXIOM support
    Plz Reply.
    Regards,
    Geetanjali.

    JNDI lookup from InitialContext in the client?
    And the JVM doesn't come with all this JEE stuff anyway, so you'd need to find a j2ee.jar or however the server implementation calls it and deploy it with the client. You will note that Eclipse probably uses something like a "JBoss Runtime" for your project, not just the JVM.

  • Getting Started with JBoss 4.0 printable PDF copy

    Hi All,
    Does anyone know where I could download a copy of the aboved tutorial/document after having exhausted my effort Googling and gone through both Netbeans & JBoss website in vain?
    There is a HTML version around but I am looking for a printable PDF format copy, if there is one available.
    The Netbeans tutorial "Using Netbeans with JBoss Getting Started Guide" has an invalid URL link even though this exercise is largely dependent on the aboved tutorial.
    Many thanks,
    Henry

    The complete link would be - http://docs.jboss.org/jbossas/getting_started/v4/pdf/startguide.pdf

  • Help using a mini display port to HDMI cable with MacBook Air and TV

    Hi, Apple gurus. I need help setting up my MacBook Air to my Vizio TV using a mini display port to HDMI cable that I just purchased on Amazon.
    And here's info about my MacBook Air:
    In the Amazon reviews, someone posted the following how-tos, which aren't working for me:
    1. Plug in both ends, mini display port on your macbook and the HDMI on any available port on your LCD.
    2. Go to upper left Apple menu and scroll down to system preference. Or use your FINDER from the dock, go to applications, then system preference.
    3. Click on Displays
    4. Click on DETECT DISPLAY
    5. A similar screen pops up with name of your LCD, mine says SONY LCD, click on ARRANGEMENT
    6. Click the box that says MIRROR DISPLAYS.
    7. Go back into system preferences and go to SOUNDS which is located under HARDWARE.
    8. Click on OUTPUT, then select HDMI, which should be listed next to your LCD name.
    I ran into trouble at step #4. My MacBook Air doesn't list the option of "detecting display." I do, however, have the box mentioned in step #6, "Show mirroring options in the menu bar when available."
    Regarding step #8, HDMI didn't appear in the list — I only see "internal speakers."
    So, what am I doing wrong? Or, did I buy the wrong cable?
    Thanks in advance for your help!

    Or you need to get an appropriate adaptor. The Griffin adaptor sold on Apple's Online Store will work with a standard HDMI cable.

  • Change tomcat default port with JBoss

    Hello,
    I was looking for the server.xml file for tomcat that's deployed with jboss to change its port but I cannot seem to find that file. Question: how to change the port setting for tomcat that's shipped with jboss 3.2.3?
    Thanks in advance!
    Alan
    09:00:45,554 INFO [SARDeployer] nested deployment: file:/C:/user/product/JBoss/jboss-3.2.
    3-src/build/output/jboss-3.2.3/server/default/deploy/jbossweb-tomcat41.sar/tomcat41-servic
    e.jar
    09:00:46,676 INFO [STDOUT] Apache Tomcat/4.1.29
    09:00:46,796 ERROR [Http11Protocol] Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:30
    2)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)

    sorry, it is in the jboss-service.xml file and here is my modification (8080 to 8088)
    <!-- A HTTP/1.1 Connector on port 8088 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    address="${jboss.bind.address}" port="8088" minProcessors="2" maxProcessors="100"
    enableLookups="true" acceptCount="10" debug="0"
    connectionTimeout="20000" useURIValidationHack="false"/>
    JMi

  • R12 OPMN port Conflict with RAC CRS

    i'm facing problem with port conflict.
    when i stop ora.linux1.ons and ora.linux2.ons
    iam able to start application services and when ora.linux1.ons and ora.linux2.ons are up and running im not able to start application tier services.
    Please help
    Thanks

    What is the port used by the application and by ora.linux1.ons and ora.linux2.ons?
    ons.conf
    localport=6100 # line added by Agent
    allowgroup=true
    usesharedinstall=true
    remoteport=6200 # line added by Agent
    nodes=linux1:6200,linux2:6200 # line added by Agent
    ~
    i have configured RAC on R12.1.1 db-11gr2.
    im trying to start application tier services but when i o that
    sh adstrtal.sh apps/apps
    You are running adstrtal.sh version 120.15
    The logfile for this session is located at /d01/oracle/PROD/inst/apps/PROD_linux 1/logs/appl/admin/log/adstrtal.log
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adopmnctl.sh start
    script returned:
    You are running adopmnctl.sh version 120.6
    Starting Oracle Process Manager (OPMN) ...
    adopmnctl.sh: exiting with status 2
    adopmnctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl /admin/log/adopmnctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adalnctl.sh start
    script returned:
    adalnctl.sh version 120.3
    Checking for FNDFS executable.
    Listener APPS_PROD has already been started.
    adalnctl.sh: exiting with status 2
    adalnctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/ admin/log/adalnctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adapcctl.sh start
    script returned:
    You are running adapcctl.sh version 120.7.12010000.2
    Starting OPMN managed Oracle HTTP Server (OHS) instance ...
    adapcctl.sh: exiting with status 2
    adapcctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/ admin/log/adapcctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adoacorectl.sh start
    script returned:
    You are running adoacorectl.sh version 120.13
    Starting OPMN managed OACORE OC4J instance ...
    adoacorectl.sh: exiting with status 2
    adoacorectl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/admin/log/adoacorectl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adformsctl.sh start
    script returned:
    You are running adformsctl.sh version 120.16
    Starting OPMN managed FORMS OC4J instance ...
    adformsctl.sh: exiting with status 2
    adformsctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/admin/log/adformsctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adoafmctl.sh start
    script returned:
    You are running adoafmctl.sh version 120.8
    Starting OPMN managed OAFM OC4J instance ...
    adoafmctl.sh: exiting with status 2
    adoafmctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/admin/log/adoafmctl.txt for m ore information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/adcmctl.sh start
    script returned:
    You are running adcmctl.sh version 120.17.12010000.3
    Starting concurrent manager for PROD ...
    Starting PROD_1231@PROD Internal Concurrent Manager
    Default printer is noprint
    adcmctl.sh: exiting with status 0
    adcmctl.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/admin/log/adcmctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /d01/oracle/PROD/inst/apps/PROD_linux1/admin/scripts/jtffmctl.sh start
    script returned:
    You are running jtffmctl.sh version 120.3
    Validating Fulfillment patch level via /d01/oracle/PROD/apps/apps_st/comn/java/classes
    Fulfillment patch level validated.
    Starting Fulfillment Server for PROD on port 9300 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    All enabled services for this node are started.
    adstrtal.sh: Exiting with status 0
    adstrtal.sh: check the logfile /d01/oracle/PROD/inst/apps/PROD_linux1/logs/appl/admin/log/adstrtal.log for mor e information ...
    [applmgr@linux1 scripts]$
    Thanks
    Edited by: Maverick on Dec 31, 2010 4:11 AM

  • If I already have an Airport Express Base Station, can i hook an external hard drive into it's USB port and use that hard drive with Time Machine?

    If I already have an Airport Express Base Station, can i hook an external hard drive into it's USB port and use that hard drive with Time Machine?

    No, and that shouldn't be done with an AirPort Extreme or Time Capsule.
    (66017)

Maybe you are looking for

  • While deploying application in weblogic 10.3 getting following eror

    while deploying app into weblogic 10.3 getting following taglib errors please any one cane ensure this.... An error occurred during activation of changes, please see the log for details. weblogic.application.ModuleException: Substituted for the excep

  • Cannot open file in Editor /Elements 3

    Have just installed Elements 3 successfully and can use the file browser without a problem. However I cannot open a file in Editor from any source. It comes up with 'cannot complete request due to program error'. Have tried reinstalling, restore poin

  • How to edit registry in windows 7 SP1 ISO image

    How to edit registry keys in windows 7 SP1 ISO image?

  • City ID - Subscription or Continue Free Trial

    An app that came preinstalled on my Droid X called "CityID" has taken over my screen on its own. I don't believe I launched this app. The screen is telling me that I either should subscribe to City ID for a monthly fee, or I can "continue free trial"

  • SHIP-TO address from HR?

    Hello all, we would like that HR is maintaing Ship-To address for all users in EBP. Which infotype is that? Is that address transferred as user address (business partner address) or as another company ship-to address (like creating through "Edit inte