[Installation, Configuration & Deployment] - Strange Behaviour using JBOSS4.0.4 with JSF MyFaces [Urgent]
by suganda
Hello all ,
i have 1 simple application using JSF and when i deployed in the jboss4.0.4 i got this error
i using netbeans5.5 with visual web pack
| 2007-03-21 17:42:50,281 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PowerPortlet].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.NullPointerException
| at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:524)
| at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:136)
| at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:129)
| at com.sun.rave.web.ui.component.TableRowGroup.getProperties(TableRowGroup.java:1804)
| at com.sun.rave.web.ui.component.TableRowGroup.restoreState(TableRowGroup.java:1490)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:511)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:129)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:185)
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
| at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:310)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:124)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
i found 2 links that related the integration myFaces with JBOSS4.0.4
http://forum.java.sun.com/thread.jspa?threadID=5108494&messageID=9369338
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces
in the Installing Your JSF Application part
i have tried to copy to tomahawk in the jsf-lib, also configure the web.xml
i also have make sure that there is not JSF RI library in my web-inf/lib application
i use war files in the packaging
i have tried all the clues in there, but i still get the same erorr regarding the tables. i want to use myFaces because the default lib that i use to compile all java class in netBeans using myFaces instead of JSF RI
However, when i refresh the tables, it will error
please help me. i stuck in this error since yesterday until now (+-2 days)
helppp
thanks in advance
ganda:)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030165#4030165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030165
19Â years, 1Â month
[JBoss jBPM] - Problem with graph elements comparing
by yamert
Hello!
I have a strange problem with some graph elements comparation in unit tests - such as Nodes, and ProcessDefinitions. Absolutely same entities appear to be different!
For example, code line like
| assertEquals(processDefinition.getNode("step1"), token.getNode());
|
results in
| junit.framework.AssertionFailedError: expected:<TaskNode(step1)> but was:<TaskNode(step1)>
|
Rather strange message! According to it, the objects ARE equal!
But if I use
| assertEquals(processDefinition.getNode("step1").toString(), token.getNode().toString());
|
the test passes!
Can be the reason the fact, that processDefinition is got without persistence (just by parsing XML), and token originates from process instance from DB? But definitions are the same...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030164#4030164
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030164
19Â years, 1Â month
[JCA/JBoss] - OracleConnection underlyingConn after Close(); do not work
by Oleg1962
Good afternoon!
Prompt please, why after conn.close (); and the subsequent conn = getConnection (); I receive an error
ERROR [STDERR] java.sql.SQLException: closed connection
ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
ERROR [STDERR] at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:895)
ERROR [STDERR] at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:802)
ERROR [STDERR] at com.titan.processpayment.ProcessPaymentBean.SelectJGeom(ProcessPaymentBean.java:64)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Also I can work further only after reboot JBoss
| public class ProcessPaymentBean implements javax.ejb.SessionBean
| ............................
| conn = getConnection ();
| pstmt = conn.prepareStatement("select MKT_ID, NAME, SHAPE from MDSYS.cola_markets");
| rs = pstmt.executeQuery();
| pstmt2 = conn.prepareStatement("insert into MDSYS.cola_markets2 (MKT_ID, NAME, SHAPE) values (?, ?, ?)");
|
| while (rs.next()) {
| state = rs.getString(1);
| stateAbrv = rs.getString(2);
| st = (STRUCT) rs.getObject("SHAPE");
| geom = JGeometry.load(st);
| pstmt2.setString(1, state);
| pstmt2.setString(2, stateAbrv);
| st2 = JGeometry.store(geom, conn);
| pstmt2.setObject(3, st2);
| pstmt2.executeUpdate();
| }
| .....
| conn.close();
| .....
| conn = getConnection ();
| //I receive the message on an error
| //Also I can work further only after reboot JBoss
|
|
| private Connection getConnection() throws SQLException {
| //http://forums.oracle.com/forums/thread.jspa?threadID=279238
| try {
| DataSource myJBossDatasource = (DataSource) context.lookup("java:OracleDS");
| java.sql.Connection conn = myJBossDatasource.getConnection();
| WrappedConnection wrappedConn = (WrappedConnection)conn;
| java.sql.Connection underlyingConn = wrappedConn.getUnderlyingConnection();
| oracle.jdbc.driver.OracleConnection oracleConn =
| (oracle.jdbc.driver.OracleConnection)underlyingConn;
| return oracleConn;
| }
| catch (SQLException ex) {
| throw new EJBException(ex);
| }
| }
|
|
| <enterprise-beans>
| <session>
| <description>A service that handles monetary payments</description>
| <display-name>ProcessPaymentEJB</display-name>
| <ejb-name>ProcessPaymentEJB</ejb-name>
| <home>com.titan.processpayment.ProcessPaymentHomeRemote</home>
| <remote>com.titan.processpayment.ProcessPaymentRemote</remote>
| <ejb-class>com.titan.processpayment.ProcessPaymentBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <env-entry>
| <env-entry-name>minCheckNumber</env-entry-name>
| <env-entry-type>java.lang.Integer</env-entry-type>
| <env-entry-value>2000</env-entry-value>
| </env-entry>
| <resource-ref>
| <description>DataSource for the Titan database</description>
| <res-ref-name>jdbc/titanDB</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| </session>
| </enterprise-beans>
|
For earlier it is grateful for the help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030161#4030161
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030161
19Â years, 1Â month
[JBoss Portal] - Re: Url : how to define MyPortal as the default portal.
by Antoine_h
ok, in PortalObjectImpl there is :
/**
| * Return the default child of this object based on the declared property that specifies the default
| * object name.
| */
| protected PortalObject getDefaultChild()
| {
| String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);
| if (portalName == null)
| {
| portalName = DEFAULT_OBJECT_NAME;
| }
| return getChild(portalName);
| }
|
|
so, when not found, it gets the "default" name from interface PortalObject.DEFAULT_OBJECT_NAME.
where can be put the PORTAL_PROP_DEFAULT_OBJECT_NAME property, for defining the default portal among multiple portals instances ?
ie : in what descriptor and where put the xml item portal.defaultObjectName ?
<property>
| <name>portal.defaultObjectName</name>
| <value>MyDefaultPortalName</value>
| </property>
|
I haven't seen in the JSR-168 anything about managing multiple portals.
open a jira ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030158#4030158
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030158
19Â years, 1Â month