[Datasource Configuration] - Hypersonic DB - Jboss AS 6.0.M1- Datasource/Tables unaccessible from JSP pages
by venkatesan pillai
venkatesan pillai [http://community.jboss.org/people/dvenkatesan] created the discussion
"Hypersonic DB - Jboss AS 6.0.M1- Datasource/Tables unaccessible from JSP pages"
To view the discussion, visit: http://community.jboss.org/message/536696#536696
--------------------------------------------------------------
Hello,
I want to acces Hypersonic database localDB (table name "Customer") from my JSP page.
I am missing some configuration information while seting up a database in Hypersonic/JBoss AS 6.0.
Due to this I am unable to access the tables from my JSP page.
Can someone help me to fix this and tell me where should I set things right?
Thanks for your kind attention.....
Regards,
Venkatesan D. Pillai
PS: I paste herewith the JBOSS console error, hsqldb-ds.xml for your info. pls.
==============
0) My JSP program snippet
###################################
.....
<%
Connection conn = null;
ResultSet result = null;
Statement stmt = null;
System.out.println("I AM HERE ..........1111");
try {
Class c = Class.forName("org.hsqldb.jdbcDriver");
System.out.println("I AM HERE ..........2222");
}
catch (Exception e) {
System.out.println("Error occurred " + e);
}
try {
conn = DriverManager.getConnection("jdbc:hsqldb:/home/venkat/downloads/jboss-6.0.0.M1/server/default/data/hypersonic/localDB", "sa","");
System.out.println("I AM HERE ..........33333");
}
catch (SQLException e) {
System.out.println("Error occurred " + e);
}
try {
stmt = conn.createStatement();
System.out.println("I AM HERE ..........44444");
result = stmt.executeQuery("SELECT * FROM PUBLIC.Customer");
System.out.println("I AM HERE ..........55555");
if (result.next()) {
%>
<table width="100%" border="1">
.......................
1) JBoss AS Console error
##########################
................
05:30:07,677 INFO [STDOUT] [Server@1724ca6]: Startup sequence initiated from main() method
05:30:07,677 INFO [STDOUT] [Server@1724ca6]: Loaded properties from [/home/venkat/Downloads/jboss-6.0.0.M1/bin/server.properties]
05:30:07,688 INFO [STDOUT] [Server@1724ca6]: Initiating startup sequence...
05:30:07,711 INFO [STDOUT] [Server@1724ca6]: Server socket opened successfully in 4 ms.
05:30:08,285 INFO [STDOUT] [Server@1724ca6]: Database [index=0, id=1, db=file:/home/venkat/Downloads/jboss-6.0.0.M1/server/default/data/hypersonic/default, alias=] opened sucessfully in 566 ms.
05:30:08,285 INFO [STDOUT] [Server@1724ca6]: Startup sequence completed in 580 ms.
05:30:08,443 INFO [STDOUT] [Server@1724ca6]: 2010-04-10 05:30:08.442 HSQLDB server 1.8.0 is online
05:30:08,443 INFO [STDOUT] [Server@1724ca6]: To close normally, connect and execute SHUTDOWN SQL
05:30:08,443 INFO [STDOUT] [Server@1724ca6]: From command line, use [Ctrl]+[C] to abort abruptly
...................................
05:31:49,593 INFO [STDOUT] I AM HERE ..........1111
05:31:49,594 INFO [STDOUT] I AM HERE ..........2222
05:31:49,792 INFO [STDOUT] I AM HERE ..........33333
05:31:49,792 INFO [STDOUT] I AM HERE ..........44444
05:31:49,793 ERROR [STDERR] java.sql.SQLException: Table not found in statement [SELECT * FROM PUBLIC.Customer]
05:31:49,794 ERROR [STDERR] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
05:31:49,794 ERROR [STDERR] at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
05:31:49,794 ERROR [STDERR] at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
05:31:49,794 ERROR [STDERR] at org.apache.jsp.jspdb_jsp._jspService(jspdb_jsp.java:88)
........................
2) HSQL-DB config. information (snippet)
###############################
<datasources>
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements/>
<security-domain>HsqlDbRealm</security-domain>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<metadata>
<type-mapping>Hypersonic SQL</type-mapping>
</metadata>
<depends>jboss:service=Hypersonic,database=localDB</depends>
</local-tx-datasource>
<!-- Uncomment if you want hsqldb accessed over tcp (server mode)
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic">
<attribute name="Port">
<value-factory bean="ServiceBindingManager" method="getIntBinding"
parameter="jboss:service=Hypersonic"/>
</attribute>
<attribute name="BindAddress">
<value-factory bean="ServiceBindingManager" method="getStringBinding"
parameter="jboss:service=Hypersonic"/>
</attribute>
..................
-->
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic">
<attribute name="Port">1701</attribute> ##### i did modify this line as I have configured the ServiceBindingManager database ..is this OK?
<attribute name="BindAddress">localhost</attribute> ##### i did modify this line as I have configured the ServiceBindingManager database ..is this OK?
<attribute name="Silent">true</attribute>
<attribute name="Database">default</attribute>
<attribute name="Trace">false</attribute>
<attribute name="No_system_exit">true</attribute>
</mbean>
<!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic,database=localDB">
<attribute name="Database">localDB</attribute>
<attribute name="InProcessMode">true</attribute>
</mbean>
</datasources>
3) Some issues in hsqldb-ds.xml configuration
########################################
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic">
<attribute name="Port">
<value-factory bean="ServiceBindingManager" method="getIntBinding"
parameter="jboss:service=Hypersonic"/>
</attribute>
<attribute name="BindAddress">
<value-factory bean="ServiceBindingManager" method="getStringBinding"
parameter="jboss:service=Hypersonic"/>
</attribute>
"Port, BindAddress" attributes create error in JBossAS console if I leave it as is with VALUE-FACTORY tag. So I replace them with 1701, localhost.
Is this shortccut acceptable?
==================
thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536696#536696]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[JBoss Messaging] - java.lang.NullPointerException on JBoss 6 M2
by ilango gurusamy
ilango gurusamy [http://community.jboss.org/people/ilangocal] created the discussion
"java.lang.NullPointerException on JBoss 6 M2"
To view the discussion, visit: http://community.jboss.org/message/536677#536677
--------------------------------------------------------------
I am trying to deploy 2 MDBs in a standalone XP machine running JBoss 6 M2. I am getting the following exceptions in my server.log
I do have a ejb-jar.xml but I gather I do not need one since I have EJB3, but I do have session beans that are from EJB 2.0.
I have configured an Mysql datasource and necessary queues in the appropriate xml files, but it is apparent I am not doing something right somewhere. How can I solve this problem? Any pointers in resolving this issue are appreciated. Thanks in advance.
The errors are below:
2010-04-09 16:47:20,661 WARN [org.jboss.resource.adapter.jms.inflow.JmsActivation] (pool-1-thread-3) Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@40d447(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)967df destination=queue/jissuetrackerLog destinationType=null tx=true durable=false reconnect=10 provider=DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=30000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10): java.lang.NullPointerException
at org.jboss.jms.client.container.ConnectionAspect.getConnectionState(ConnectionAspect.java:252)
at org.jboss.jms.client.container.ConnectionAspect.handleSetExceptionListener(ConnectionAspect.java:117)
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:597)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.setExceptionListener(ClientConnectionDelegate.java)
at org.jboss.jms.client.JBossConnection.setExceptionListener(JBossConnection.java:116)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:142)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:414)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:730)
at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172)
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:780)
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:800)
at java.lang.Thread.run(Thread.java:619)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
---------------------------------------------------------------------------------------
The following is the code of one of the MDBs. The other MDB's code is similar.
import javax.annotation.Resource;
import javax.ejb.ActivationConfigProperty;
import org.jboss.annotation.ejb.PoolClass;
import org.jboss.ejb3.Container;
@MessageDriven(mappedName="jLog", activationConfig = {
@ActivationConfigProperty(propertyName = "messagingType", propertyValue = "javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty (propertyName="maxMessages", propertyValue="10"),
@ActivationConfigProperty (propertyName="minSession", propertyValue="10"),
@ActivationConfigProperty (propertyName="maxSession", propertyValue="10"),
@ActivationConfigProperty (propertyName="destination", propertyValue="queue/jLog"),
@ActivationConfigProperty (propertyName="useDLQ", propertyValue="false")
})
public class LogConsumerBean implements MessageDrivenBean, MessageListener {
public LogConsumerBean() {
}
public void setMessageDrivenContext(MessageDrivenContext mdc) {
}
public void ejbCreate() {
}
public void ejbRemove() {
}
public void onMessage(Message msg) {
ObjectMessage oMessage = (ObjectMessage) msg;
try {
Log log = (Log) oMessage.getObject();
LogServicesImpl logServicesImpl = new LogServicesImpl();
logServicesImpl.logSync(log);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536677#536677]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [JBoss Tools] - Is RichFaces supported out of the box in JBoss Tools
by John Bailo
John Bailo [http://community.jboss.org/people/jabailo] replied to the discussion
"Is RichFaces supported out of the box in JBoss Tools"
To view the discussion, visit: http://community.jboss.org/message/536653#536653
--------------------------------------------------------------
Not only did RichFaces support not work, but it seems to have caused a deployment error on my existing MyFaces project (MyFaces being the only JSF implementation that I have gotten to work).
I even went and created a brand new JSF project, selecting the 1.1.4 Tomahawk MyFaces, and moved my (formerly working) pages to it, but it won't deploy!
*Error messages* below -- have I damaged my JBoss installation entirely (?!):
15:28:49,298 INFO [STDOUT] 15:28:49,298 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
15:28:49,298 WARN [JBossJSFConfigureListener] MyFaces JSF implementation found! This version of JBoss AS ships with the java.net implementation of JSF. There are known issues when mixing JSF implementations. This warning does not apply to MyFaces component libraries such as Tomahawk. However, myfaces-impl.jar and myfaces-api.jar should not be used without disabling the built-in JSF implementation. See the JBoss wiki for more details.
15:28:49,328 WARN [config] Unable to process deployment descriptor for context '/INGAdmin4'
15:28:50,060 ERROR [[/INGAdmin4]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
Source Document: jar:file:/C:/Documents%20and%20Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin4.war/WEB-INF/lib/tomahawk-1.1.4.jar!/META-INF/faces-config.xml
Cause: Class 'org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener' is not an instance of 'interface javax.faces.event.PhaseListener'
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:71)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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:592)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
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:592)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy44.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: jar:file:/C:/Documents%20and%20Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin4.war/WEB-INF/lib/tomahawk-1.1.4.jar!/META-INF/faces-config.xml
Cause: Class 'org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener' is not an instance of 'interface javax.faces.event.PhaseListener'
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:259)
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)
... 91 more
15:28:50,075 ERROR [StandardContext] Error listenerStart
15:28:50,075 ERROR [StandardContext] Context [/INGAdmin4] startup failed due to previous errors
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536653#536653]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [JBoss Tools] - Is RichFaces supported out of the box in JBoss Tools
by John Bailo
John Bailo [http://community.jboss.org/people/jabailo] replied to the discussion
"Is RichFaces supported out of the box in JBoss Tools"
To view the discussion, visit: http://community.jboss.org/message/536647#536647
--------------------------------------------------------------
After creating a very simple page, and right-clicking and selecting Debug in Eclipse, this message appears:
*HTTP Status 404 - /RFacesTest/testrf.jsf*
+The requested resource (/RFacesTest/testrf.jsf) is not available.+
*testrf.jsp*:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" version="2.0">
<jsp:directive.page language="java"
contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
<jsp:text>
<![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
</jsp:text>
<jsp:text>
<![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
</jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:outputText value="Hello, RF" />
</f:view>
</body>
</html>
</jsp:root>
*Startup messages from Eclipse/JBoss server 4.2.3:*
14:44:51,204 INFO [Server] Starting JBoss (MX MicroKernel)...
14:44:51,204 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
14:44:51,219 INFO [Server] Home Dir: C:\jboss\jboss-4.2.3.GA
14:44:51,219 INFO [Server] Home URL: file:/C:/jboss/jboss-4.2.3.GA/
14:44:51,219 INFO [Server] Patch URL: null
14:44:51,219 INFO [Server] Server Name: default
14:44:51,219 INFO [Server] Server Home Dir: C:\jboss\jboss-4.2.3.GA\server\default
14:44:51,219 INFO [Server] Server Home URL: file:/C:/jboss/jboss-4.2.3.GA/server/default/
14:44:51,219 INFO [Server] Server Log Dir: C:\jboss\jboss-4.2.3.GA\server\default\log
14:44:51,219 INFO [Server] Server Temp Dir: C:\jboss\jboss-4.2.3.GA\server\default\tmp
14:44:51,234 INFO [Server] Root Deployment Filename: jboss-service.xml
14:44:51,676 INFO [ServerInfo] Java version: 1.5.0_22,Sun Microsystems Inc.
14:44:51,676 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_22-b03,Sun Microsystems Inc.
14:44:51,676 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
14:44:52,180 INFO [Server] Core system initialized
14:44:54,315 INFO [WebService] Using RMI server codebase: http://localhost:8083/
14:44:54,315 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
14:44:54,833 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
14:44:54,833 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
14:44:55,047 INFO [TransactionManagerService] Starting recovery manager
14:44:55,199 INFO [TransactionManagerService] Recovery manager started
14:44:55,199 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
14:44:58,494 INFO [EJB3Deployer] Starting java:comp multiplexer
14:45:01,300 INFO [NativeServerConfig] JBoss Web Services - Native
14:45:01,300 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
14:45:02,703 INFO [Embedded] Catalina naming disabled
14:45:02,917 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_22\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_22\jre\bin;native
14:45:03,054 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8084
14:45:03,069 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
14:45:03,069 INFO [Catalina] Initialization processed in 373 ms
14:45:03,069 INFO [StandardService] Starting service jboss.web
14:45:03,069 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
14:45:03,146 INFO [Catalina] Server startup in 88 ms
14:45:03,344 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
14:45:04,091 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
14:45:04,366 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
14:45:04,518 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
14:45:05,754 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
14:45:06,623 INFO [MailService] Mail Service bound to java:/Mail
14:45:06,974 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
14:45:07,050 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
14:45:07,126 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
14:45:07,202 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
14:45:07,324 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
14:45:07,385 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
14:45:07,492 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
14:45:07,507 INFO [QuartzResourceAdapter] start quartz!!!
14:45:07,614 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
14:45:07,660 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
14:45:07,660 INFO [RAMJobStore] RAMJobStore initialized.
14:45:07,675 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
14:45:07,675 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
14:45:07,675 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
14:45:09,002 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
14:45:09,322 INFO [A] Bound to JNDI name: queue/A
14:45:09,322 INFO [B] Bound to JNDI name: queue/B
14:45:09,322 INFO [C] Bound to JNDI name: queue/C
14:45:09,322 INFO [D] Bound to JNDI name: queue/D
14:45:09,322 INFO [ex] Bound to JNDI name: queue/ex
14:45:09,353 INFO [testTopic] Bound to JNDI name: topic/testTopic
14:45:09,353 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
14:45:09,353 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
14:45:09,368 INFO [testQueue] Bound to JNDI name: queue/testQueue
14:45:09,414 INFO [UILServerILService] JBossMQ UIL service available at : localhost/127.0.0.1:8093
14:45:09,475 INFO [DLQ] Bound to JNDI name: queue/DLQ
14:45:09,673 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
14:45:09,734 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
14:45:10,100 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8084
14:45:10,146 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
14:45:10,146 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 18s:897ms
14:45:14,920 INFO [TomcatDeployer] deploy, ctxPath=/DISSOPRO, warUrl=file:/C:/Documents and Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/DISSOPRO.war/
14:45:15,149 INFO [TomcatDeployer] deploy, ctxPath=/INGAdmin, warUrl=file:/C:/Documents and Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin.war/
14:45:15,438 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
14:45:15,438 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
14:45:15,438 ERROR [STDERR] log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@61a885
] whereas object of type
14:45:15,438 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@80fa6f].
14:45:15,438 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
14:45:15,682 INFO [STDOUT] 14:45:15,682 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
14:45:15,804 INFO [STDOUT] 14:45:15,804 INFO [FacesConfigurator] Reading config jar:file:/C:/Documents%20and%20Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin.war/WEB-INF/lib/richfaces-impl-3.3.0.GA.jar!/META-INF/faces-config.xml
14:45:17,329 INFO [STDOUT] 14:45:17,329 INFO [FacesConfigurator] Reading config jar:file:/C:/Documents%20and%20Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/faces-config.xml
14:45:18,229 INFO [STDOUT] 14:45:18,229 INFO [FacesConfigurator] Reading config jar:file:/C:/Documents%20and%20Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/INGAdmin.war/WEB-INF/lib/tomahawk-1.1.4.jar!/META-INF/faces-config.xml
14:45:18,260 INFO [STDOUT] 14:45:18,260 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
14:45:18,382 INFO [STDOUT] 14:45:18,382 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
14:45:22,622 INFO [STDOUT] 14:45:22,622 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
14:45:22,622 INFO [STDOUT] 14:45:22,622 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
14:45:22,622 INFO [STDOUT] 14:45:22,622 WARN [WebXmlParser] Ignored element 'dispatcher' as child of 'filter-mapping'.
14:45:22,622 INFO [STDOUT] 14:45:22,622 INFO [StartupServletContextListener] ServletContext 'C:\Documents and Settings\jbailo\workspace\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Server\deploy\INGAdmin.war\' initialized.
14:45:22,622 INFO [STDOUT] 14:45:22,622 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
14:45:22,668 INFO [STDOUT] 14:45:22,668 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:45:22,683 INFO [STDOUT] 14:45:22,683 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.SKIN=classic, org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL=true, org.apache.myfaces.ALLOW_JAVASCRIPT=true, companyName=RR Donnelley, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, org.apache.myfaces.PRETTY_HTML=true, org.apache.myfaces.DETECT_JAVASCRIPT=false, javax.faces.STATE_SAVING_METHOD=server, org.apache.myfaces.AUTO_SCROLL=true}
14:45:22,683 INFO [STDOUT] 14:45:22,683 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:45:22,713 INFO [STDOUT] 14:45:22,713 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:45:22,713 INFO [STDOUT] 14:45:22,713 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {org.ajax4jsf.SKIN=classic, org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL=true, org.apache.myfaces.ALLOW_JAVASCRIPT=true, companyName=RR Donnelley, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, org.apache.myfaces.PRETTY_HTML=true, org.apache.myfaces.DETECT_JAVASCRIPT=false, javax.faces.STATE_SAVING_METHOD=server, org.apache.myfaces.AUTO_SCROLL=true}
14:45:22,713 INFO [STDOUT] 14:45:22,713 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:45:22,759 INFO [TomcatDeployer] deploy, ctxPath=/RFacesTest, warUrl=file:/C:/Documents and Settings/jbailo/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/RFacesTest.war/
14:45:22,942 WARN [config] JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
14:45:26,801 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:45:26,801 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {com.sun.faces.verifyObjects=true, org.ajax4jsf.SKIN=classic, companyName=RR Donnelley, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, com.sun.faces.validateXml=true, facelets.REFRESH_PERIOD=2, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
14:45:26,801 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:45:26,831 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:45:26,831 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {com.sun.faces.verifyObjects=true, org.ajax4jsf.SKIN=classic, companyName=RR Donnelley, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, com.sun.faces.validateXml=true, facelets.REFRESH_PERIOD=2, facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml, javax.faces.STATE_SAVING_METHOD=client}
14:45:26,831 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:46:13,781 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/536647#536647]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years