Sun RI and MyFaces with JBoss AS

Hi all,
I am using JBoss AS and have a JSF application. By default, JBoss bundle MyFaces JSF with Jboss. I have everything working fine with MyFaces. However, I encounter problem when I tried to display the banding for dataTable using Oracle ADF. From my research, it seems ADF table's banding does not work with MyFaces so I want to test out using Sun RI JSF with Jboss. I remove MyFaces jar files and put Sun RI jar file in WEB_INF/lib directory and remove the line in web.xml
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
This is done following Jboss documentation. But when Tomcat starts up, it seems still look for org.apache.myfaces.webapp.StartupServletContextListener class and throw ClassNotFoundException (because I removed myfaces jars). Has anyone benn able switched to use Sun RI in JBoss AS version 4.0.5?
Thanks a lot,
LNgo

Hello Raymond,
I must say that I downloaded the JBoss Portal Binary and not the bundle JBoss AS + JBoss Portal, because I already had a JBoss AS working, so it was the best way to do it (as it is said in the JBossPortalReferenceGuide). I have both things (server and portal) in the same directory, but I don't know if maybe one of them should contain the other (I have seen that in the bundle, the portal directory contains the JBoss application server) When I downloaded the JBoss Portal and tried to deploy it by directing my web browser to http://localhost:8080/portal it did not work, so I decided to copy the jboss-portal.sar directory from the JBoss Portal to the deploy of my server. Maybe this was a mistake.
But anyway I have seen that JBoss Portal 2.6 comes with the myfaces jars, and as JBoss AS 4.2 uses Sun RI by default, it is going to collapse anyway. Should I just remove these jars from the portal? As I told you before, I tried doing it and I got two errors of not found classes.
Please, any help would be really appreciated, I am losing a lot of time with this bug, because the server keeps getting out of memory due to it.
Thanks in advance.

Similar Messages

  • Error trying to get LiveCycle ES up and running with JBoss/SQL Server

    I am having an error trying to get LiveCycle ES Trial up and running with JBOSS and SQL Server.  The LiveCycle ES and JBOSS engines are running on Windows Server 2003 SP #2 under VMWare Server with 2 vCPUs/1 GB vRAM.  The SQL Server database is SQL 2005 x86-64 with SP #2 on a separate server.<br /><br />I have carefully followed all of the instructions for setting up jboss, modifying all of the appropriate XML files, downloading the SQL JDBC drivers and putting it in the %JBOSS_HOME%\server\all\lib directory, etc.  I tried both the SQL JDBC 1.1 and 1.2 drivers and they both fail.<br /><br />The error I get is on startup of jboss using<br />cmd /c start /low run.bat -c all<br />(and yes I also just tried run.bat -c all)<br /><br />it runs along file until it gets here<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=IDP_DS' to JNDI name 'java:IDP_DS'<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=EDC_DS' to JNDI name 'java:EDC_DS'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsQueueXA' to JNDI name 'java:adobe_JmsQueueXA'<br />2008-06-18 16:00:03,389 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsTopicXA' to JNDI name 'java:adobe_JmsTopicXA'<br />2008-06-18 16:00:03,482 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'<br />2008-06-18 16:00:03,514 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null<br />org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.microsoft.jdbc.sqlserver.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver))<br />     at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnecti on(LocalManagedConnectionFactory.java:164)<br />[ lots more error scrolls ]<br /><br />this repeats multiple times<br /><br />I can see that it does acknowledge that I put the sqljdbc.jar file in the appropriate directory from the boot.log<br /><br /><snip><br />15:59:44,856 DEBUG [SARDeployer] deployed classes for file:/C:/jboss/server/all/lib/sqljdbc.jar<br /><snip><br /><br />please help!

    APJ<br />We ran into many issues setting up a very similar environment.  In the end we had to use a specially configured JBoss, supplied by Adobe, to make a connection with the SQL database.  Since you have SQL w/ SP2 on it, you will need the 1.2 driver for sure, but you may want to talk to Adobe support about obtaining the version of JBoss they supplied us with.  The Adobe Support Reference Number is: 1-52422366.<br /><br />Even with the alternate JBoss we had to perform the following steps to get the configuration right:<br /><br />1.     Install Livecycle from the installation DVD.  Follow the instructions for installing LiveCycle supplied by Adobe, including all pre-installation instructions.  Make sure NT service is installed with parameters, and dont run Configuration Manager.<br />2.     Rename %LIVECYCLE_INSTALL%\jboss to %LIVECYCLE_INSTALL%\jboss_orig<br />3.     Extract the zipped new, good instance of JBoss (supplied by Adobe)  to the %LIVECYCLE_INSTALL%\ folder  <br />4.     Go to the %LiveCycle_Home%\deploy folder and make a copy of the file adobeimport_SQLServer.jar file.  Rename the copy of the file to aadobeimport_SQLServer.jar.  There seems to be a bug in configuration manager that looks for a file with the extra  a appended to the beginning of the file name, where that file normally isnt there.  Make sure that the adobeimport_SQLServer.jar file is still in this folder as well.<br />5.     Edit the data source file (%JBOSS_HOME%\server\all\deploy\ adobe-ds.xml) to point to the correct database for the LiveCycle Server.<br />a.     Update the <connection-url>, <user-name>, and <password> tags with the correct database connection information.<br />b.     If BAM is to be used on the server (this should be done on the Production server) then delete both lines that state Remove this line, if BAM is used.<br />6.     Go to the login configuration file (%JBOSS_HOME%\server\all\conf\login-config.xml), and edit the section labeled <application-policy name = "MSSQLDbRealm">.<br />a.     Change the Principal, UserName, and Password options to point to the correct database.  These will be the same as what was changed in the adobe-ds.xml file from the step above.<br /><br />7.     Edit the system variables on the server.  Add to the Path variable %JBOSS_HOME%\bin, and add the variable JBOSS_HOME with the path to the JBoss folder on the server. (D:\Adobe\LiveCycle8\jboss  for example)<br />8.     From windows services start the JBoss for Adobe LiveCycle ES v8.0 service.  Review the JBoss server log (%JBOSS_HOME%\server\all\log\server.log) to verify that JBoss starts without throwing any exception errors (A document timeout exception is the only acceptable exception for starting the service).  <br />9.     Run the LiveCycle Configuration Manager (%LiveCycle_Home%\ConfigurationManager\bin\ConfigurationManager.bat).  <br />a.     Select to Not Upgrade fromLiveCycle 7.x.<br />b.     Check all boxes on the Solution Component Selection screen.<br />c.     For the Task Selection screen check all the boxes except for the Import LiveCycle ES Samples into LiveCycle ES if on the production server. <br />d.     Run through the rest of the configuration manager interface to setup the LiveCycle server with the new application server.  Follow the steps supplied by Adobe for this.<br />10.     Once configuration manager has completed, reboot the server, and verify that JBoss starts up again without any exceptions or errors (again a document timeout exception is an acceptable exception.  Look at the server log to verify this (%JBOSS_HOME%\server\all\log\server.log)).

  • Flex and EJB with JBOSS

    Hi!
    I have a web application running on JBOSS 4.0.4 and using EJB/EJB3.
    The main goal is simple, i need to substitute some JSP pages with flex.
    I'm a total newbie with flex and i don't even know how to get started.
    What do i need? Only BlazeDS or something more? Is there some tutorial with a step by step explanation?
    I appreciate your help.

    You cant really replace Struts with Flex, maybe a view part
    , thats about is, you still need backend processioning
    logic,all that you are asking is difficult to answer is one reply,
    IMHO, best thing you can do is to dive into following URLs :
    http://www.adobe.com/devnet/flex/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    and of course your best friend :
    http://livedocs.adobe.com/flex/3/langref/index.html

  • Difference between Sun RI JSF and MyFaces JSF

    Hi all,
    I am using JBoss AS and have a JSF application. By default, JBoss bundle MyFaces JSF with Jboss. I have everything working fine with MyFaces. However, I encounter problem when I tried to display the banding for dataTable using Oracle ADF. From my research, it seems ADF table's banding does not work with MyFaces so I want to test out using Sun RI JSF with Jboss. I remove MyFaces jar files and put Sun RI jar file in WEB_INF/lib directory and remove the line in web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>This is done following Jboss documentation. But when Tomcat starts up, it seems still look for org.apache.myfaces.webapp.StartupServletContextListener class and throw ClassNotFoundException (because I removed myfaces jars). Has anyone benn able switched to use Sun RI in JBoss AS version 4.0.5?
    Thanks a lot,
    LNgo

    Probably I should have posted this message on the Java Server Faces forums. I will repost there but if someone happens to know the answer, please help.
    Thanks,
    Lngo

  • Creating SSL certificate and configuring it with JBOSS 4.0.1

    I have to post some data to a secured site from my application.
    For this, I am creating connection to that site using URLConnection and to send data I create OutputStream using the connection.
    But, while creating the stream it is showing SSLException and message is No trusted certificate found.
    For this, I need to create SSL certificate (mostly using keytool command) and configure it with my application server which is JBOSS 4.0.1
    Now, my problem is that I don't know the exact steps to create a certificate and configure it with JBOSS. Please provide the steps in detail.

    I think you have this back to front. Unless this exception came from the server, in which case it is misconfigured, you don't have to create a certificate, you have to import the server's certificate, or that of one of its signers, into the client's truststore, and tell Java where the truststore is if it's in a non-standard location.
    See http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html. You'll have to ask about the JBoss part in a JBoss forum.

  • Deployment Isssue with Jboss and Blazeds

    Hi,
    I was trying to deploy Blazeds over Jboss 4.0.5.GA , for that i copied blazeds.war, ds-console.war and samples.war to Jboss deploy folder and restarted my jboss server.
    when i'm trying to access samples application by using url http://localhost:8180/samples it is throwing
    The requested resource (/ds-console/) is not available.    exception
    at Jboss console i'm geeting below error with all the three wars i deployed earlier
    status: Deployment FAILED reason: flex/messaging/MessageBrokerServlet (Unsupported major.minor version 49.0)
    state: FAILED
    watch: file:/C:/SabaWeb/JBoss_Tomcat/server/default/deploy/blazeds.war
    altDD: null
    lastDeployed: 1256250757909
    lastModified: 1256250757878
    I think that is because of i'm not using jdk 1.5 or jboss 5 insted i'm using jdk 1.4 because of some dependency for my existing application
    Please let me know which version of blazeds should i use for the above configuration (jboss 4.05 with jdk 1.4) or blazeds is not supported for jdk 1.4 at all
    the version i tried was blazeds-turnkey-3.2.0.3978
    Thanks,
    Anuj

    Remove all spaces from the directory path of where jboss is installed.
    E.g. change
    "c:\my docs\my boss dir" to
    "c:\mydocs\myjbossdir".Strange I know. It appears to be an Eclipse issue rather than a jboss issue.
    Cheers
    Steve
    P.S. You might have to change the server timeout to > 50secs (double click on server entry from within Eclipse (Ganymede)).
    Edited by: Steve-M on 16-Aug-2009 20:05

  • 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

  • UploadBean with JBoss Problem

    Dear Experts
    I am currently creating a web page which allows the customers to upload csv file.
    I serached through the net and found that people are using "UploadBean" for this thus I downloaded the uploadbean jar file and imported it to my Jboss library.
    My jsp code is :
    <%String uploadDir = "C:/EVS Temp";%>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
    </jsp:useBean>Followed by a save button.
    But I got the error message like this:
    An error occurred at line: 27 in the jsp file: /meter/meter_uploadMeterList.jsp
    javazoom.upload.UploadBean cannot be resolved to a type
    26: <%String uploadDir = "C:/EVS Temp"; %>
    27: <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
    28:   <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
    29: </jsp:useBean>
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)I understand that this uploadBean problem has been asked many times. But I dont think those answers can solve my problem as they was not using JBoss.
    On the Uploadbean Support site, they said uploadbean is not tested with JBoss.
    http://www.javazoom.net/jzservlets/uploadbean/documentation/software.html
    Any idea for this?
    Thanks alot.

    Drop your ear into JBOSS_HOME\server\defaultJBOSS_HOME\server\default\deploy that is. Also the webapp must have a context root set up so that you can access it through
    http//localhost:8080/myContextRoot/myPage.jsp
    The context root is specified in the application descriptor, for instance something like
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
    <display-name>PublicationBase2EAR</display-name>
    <description>Application description</description>
    <module>
    <web>
    <web-uri>war-ic.war</web-uri>
    <context-root>PubAdmin</context-root>
    </web>
    </module>
    <module>
    <ejb>ejb-jar-ic.jar</ejb>
    </module>
    </application>
    Hope this helps,
    [email protected]

  • OIM Clustering with JBoss

    Hi Guys
    I am trying to do clustering of OIM server. I am running two instances of OIM server on JBoss. I am able to login into the OIM system but getting this below exception continuously on both nodes:
    17:38:29,451 WARN [TCP] discarded message from different group (Tomcat-Cluster). Sender was pas98:7810
    17:38:31,560 WARN [TCP] discarded message from different group (Tomcat-Cluster). Sender was pas87:7810
    17:38:31,607 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
    17:38:31,607 ERROR [JMSContainerInvoker] Reconnect failed: JMS provider failure detected:
    javax.naming.NameNotFoundException: XAConnectionFactory
    at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
    at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
    at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:229)
    at $Proxy301.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:151)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
    at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:605)
    at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1471)
    at java.lang.Thread.run(Thread.java:534)
    My software configurations:
    1)     Oracle database 9.2.0.7
    2)     OIM 9.0.3
    3)     Apache Http Server 2.0.63
    4)     JBoss 4.0.3 SP1
    Any suggestion where I am going wrong
    Thanks in advance
    Jatin Gupta

    I have read the release notes for 9.0.1, 9.0.2, 9.0.3, 9.0.3.1 and 9.1.0 and it looks like this note that JBoss is certified "for nonclustered environments only" was added for the first time in 9.0.3.1 but only for Solaris and SUSE Linux. In 9.1.0 it seems to have been added to Windows as well.
    Does anyone know why it was added? Was it added because there were problems with JBoss clustering in the previous releases? Are the 9.0.1, 9.0.2 and 9.0.3 releases still certified for JBoss clustering?

  • Test samples with JBoss?

    Hello,
    I downloaded jsf-1_2_02.zip just now.
    I want to test sample apps in the archive. According to sample instructions, I shall install glassfish firstly.
    But currently, I only have JBoss4.0.2. Can I run the samples in JBoss?
    What I must do?
    I droped a sample - jsf-cardemo.war into directory JBoss_Home/server/default/deploy, and startuped JBoss server.
    Unfortunately, many exceptions thrown at the startuping time.
    What's wrong with the matter?
    a cup of Java, cheers!
    Sha Jiang

    Hello dostcasper,
    Thanks for your reply.
    [1]My JBoss donn't have directory "\jBoss\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs".
    [2]I have deleted directories[i] temp and work with your instructions.
    [3]I have ready inserted jsf-api.jar and jsf-impl.jar into WEB-INF/lib directory of cardemo.war. The war is equal to jsf-cardemo.war in Sun's jsf samples directory.
    [4]Executed run.bat, some secondes later, much errors thrown quickly. And the end of them is following:
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.web.deployment:war=cardemo.war,id=-2114882701
    State: FAILED
    Reason: org.jboss.deployment.DeploymentException: URL file:JBoss_Home/server/default/deploy/cardemo.war/ deployment failed
    But the JBoss started sucessfully.
    a cup of Java, cheers!
    Sha Jiang

  • Running JAAS with JBOSS

    Please anybody tell me how to configure JAAS in JBOSS
    I have included in my code . while i am runnin that code with JBOSS it is throwing the following exception:
    09:45:21,484 ERROR [STDERR] javax.security.auth.login.FailedLoginException: Pass
    word Incorrect/Password Required
    09:45:21,484 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordL
    oginModule.login(UsernamePasswordLoginModule.java:213)
    09:45:21,500 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginMo
    dule.login(UsersRolesLoginModule.java:152)
    09:45:21,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    09:45:21,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(U
    nknown Source)
    09:45:21,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(Unknown Source)
    09:45:21,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Sourc
    e)
    Please respond me how to configure it in JBOSS

    How did you packaged the web application - Is it a WAR file?i didnt make any war file I just worked with JBilderX which makes WEB MODULE and i think that is the WAR file??
    Where you put the web archive on the JBoss (Path please)?no where....:(
    hay! i just configured JBoss with JBuilderX and then started using it right away.
    is there any thing else to be done
    please tell me
    waiting...

  • 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>

  • Simple Web App NOT working with JBoss on IDEA IntelliJ

    Hi Experts:
    I am using TOMCAT_4.0.3 (bundled with JBOSS_3.0.0) and using IntelliJ-IDEA as my IDE environment.
    On one of my machine I created a WEB-APP kithany.war. It was working fine on this machine.
    Later when I copied this kithany.war to other machine and put under server/default/deploy directory and then ran Jboss on which I get following error - wonder why?
    13:32:34,078 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    13:32:34,156 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/kithany, warUrl=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    13:32:34,281 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
    java.lang.NullPointerException
    at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
    at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
    13:32:34,281 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@6417805a{ url=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    WHat is wrong on this...? Any related information on above is appreciated.
    THANKS!

    Hello, manojkithany!
    Did you find out what was wrong? I am experiencing this problem with the jboss http-invoker.sar and the jmx-console.war...
    Both machines have the same environment. I found this exception with jobss3.04-tomcat bundle as well as with jobss3.06-tomcat bundle.
    ~~~snip
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying http-invoker.sar
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webContext: null
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] warURL: file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webAppParser: org.jboss.web.AbstractWebContai
    ner$DescriptorParser@1c8efd1
    2003-04-01 17:10:04,173 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] deploy, ctxPath=/invoker, warUrl=file:/home/t
    mt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,220 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
    1.1//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
    ces/web-jsptaglibrary_1_1.dtd'
    2003-04-01 17:10:04,221 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
    1.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
    ces/web-jsptaglibrary_1_2.dtd'
    2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
    2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
    web-app_2_2.dtd'
    2003-04-01 17:10:04,225 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
    2.3//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
    web-app_2_3.dtd'
    2003-04-01 17:10:04,236 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
    2003-04-01 17:10:04,242 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
    Begin
    2003-04-01 17:10:04,243 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Creating ENC using ClassLoader: java.net.Fact
    oryURLClassLoader@df0438
    ### concatenation, always the same ###
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..org.jboss.mx.loading.UnifiedClassLoader3@15
    db13f{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/ }
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..java.net.URLClassLoader@6e1408
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$AppClassLoader@7a78d3
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$ExtClassLoader@929206
    2003-04-01 11:09:07,738 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linked java:comp/UserTransaction to JNDI name
    : UserTransaction
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] addEnvEntries
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceEnvRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbLocalRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkSecurityDomain
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linking security/securityMgr to JNDI name: ja
    va:/jaas/http-invoker
    2003-04-01 11:09:07,741 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
    End
    ##### remark: from here it starts to deviate from normal behavior ####
    2003-04-01 11:09:07,744 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
    2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
    2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
    2003-04-01 11:09:07,751 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scann
    er.URLDeploymentScanner$DeployedURL@ba617c43{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/, deployedLastModi
    fied=0 }
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
    ~~~snap
    Olaf

  • Oracle Communicator With Jboss AS

    I´m trying to instal OCMS with JBoss App Server. All installation finish well, but when i try to run the application server it cant start rigth and always show me this Exception:
    2007-08-30 15:00:28,475 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.sdp.locationdbservice.LocationDbServiceBD
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at
    And in the end ........
    Caused by: java.lang.NullPointerException
         at oracle.sdp.registrar.RegistrarServlet.init(Unknown Source)
         at oracle.sdp.registrar.VoipRegistrarServlet.init(Unknown Source)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
         at $Proxy60.init(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.instantiateSipServletsAndCallInit(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.start(Unknown Source)
         at oracle.sdp.sipservletengine.impl.ApplicationManagerImpl.startApplication(Unknown Source)
         ... 69 more
    2007-08-30 15:00:28,616 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@1b0a98d7{ url=file:/C:/programas/jboss-4.0.5.GA/server/default/deploy/proxyregistrarear-4.1.0-723.ear, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
    This should be really easy, but the thing is it isnt working. this sucks!
    Any body has installed it and got it working ??

    Hi Mauricio,
    I installed OCMS in JBOSS AS 4.0.5.GA installation mode.I m facing the same problem on ocms startup, i.e., proxyregistrar war file is not deployed properly. OCMS not working properly with JBOSS AS 4.2.1 GA and JBOSS AS 4.2.2 GA too i.e., OCMS MBeans are not shown in the jmx-console page and the oc is not getting connected to the ocms, traffic.log file shows that application proxyregistrar is not found. Please help me out in solving this issue.
    Regards,
    Harini Dhanasekaran.

  • 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)

Maybe you are looking for

  • Problem with af:showPrintablePageBehavior and Internet Explorer

    Hi, I am using JDeveloper 11.1.2.1.0. I have a table with the iterators Range size = -1 and the tables AutoHeightRows and FetchSize set to estimatedRowCount. I have added a commandButton with af:showPrintablePageBehavior to the page. The table I am p

  • Gl a/c Control

    Hello all, My client has doubt that once there is no balance in his bank gl a/c and if he post the payment to vender then system allows to post the payment but according to him it should not happened . so he want to control that by executing the erro

  • Unable to shrink tlog

    Hello, Usually,the tlog backup goes to tape but it's giving some error.I took the backup on disk and then doing tlog shrink but it's not happening. Please advise. Best regards, Vishal

  • Consuming Webservice(SAP B1if) by PHP SOAP

    Hi all, im newbie in B1if, is this possible consuming Webservice by PHP SOAP.  i didnt find any Document or Example for consuming Webservice by PHP. just from Yatsea Li "Consuming B1if Web Services by DotNet". i created webservice just like Yatsea Li

  • Wrong data in ST03n

    Dears, We have installed PI 7.1 server.Everting is working fine. But it not showing right data in ST03n . My hostname is ERPPID and it is showing: Isi344_IN3_23 and In date picking 2007 dates. Beside it in every transction showing right date on OS le