[Beginners Corner] - Re: error 202: handshake failed
by PeterJ
The run.conf file is used for Linux only it is not used on Windows. But the same settings in run.bat are commented out also. I imagine that if I sat at your computer for a minute I could figure out exactly what is wrong and fix it. But since I cannot, I will give you step-by-step instructions to get the app server running, from scratch.
1) Get a 1.5 JDK from http://java.sun.com/javase/downloads/index_jdk5.jsp.
2) Install it. When it installs, do NOT place it into Program Files. Spaces in directory names cause various Java libraries fits, and unless you like chasing wierd problems, stick with plainer directory names. My JDK is installed at c:\apps\jdk1.5.0_11.
3) Set the JAVA_HOME environment variable in the system properties. To do this, right click My Computer, go to Advanced tab, click the Environment variables button, and under System Variables click New. Set it to where you installed the JDK. On my system, I set it to c:\apps\jdk1.5.0_11
4) Download the 4.0.5 version of the app server from http://labs.jboss.com/portal/jbossas/download. Click the Download link next to 4.0.5 (do not click Run Installer nor click Download Installer).
5) The download is a zip file. Unzip it. I unzipped mine into c:\apps and got c:\apps\jboss-4.0.5.GA.
6) Open a command prompt at c:\apps\jboss-4.0.5.GA\bin, and enter: run
Wait until you see a message like:
19:06:27,343 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 50s:468ms
Once you see that messages, you should be able to open a browser on the same system and enter http://localhost:8080/jmx-console.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033413#4033413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033413
17Â years, 9Â months
[JBoss Seam] - What am I doing wrong - nested Set in a h:dataTable
by henrik.lindberg
This is what I have in my view:
| <h:outputText value="Count = #{cspecInfo.attributeCount}" />
| <h:dataTable value="#{cspecInfo.componentAttributes}" var="attr"
| rows="25" >
| <h:column>
| <h:outputText value="#{attr.name}" />
| </h:column>
| </h:dataTable>
|
The cspecInfo refers to an Entity that has a Set that is obtained as the value. (The output above refers to a transient attribute in the Entity bean (attributeCount).
I get the correct count as output. So I know I have things in the set.
When I try to render the #{attr.name} I get the following error:
| ALLVARLIG: Error Rendering View[/cspec-view.xhtml]
| javax.faces.el.PropertyNotFoundException: /cspec-view.xhtml @113,43 value="#{attr.name}": Bean: org.hibernate.collection.PersistentSet, property: name
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:77)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:217)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:57)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:440)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.renderColumnBody(HtmlTableRendererBase.java:332)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:301)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:277)
| at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:222)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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:619)
|
ComponentAttribute does have the attribute "name".
If I ouput something else - like static string - I get one row per object in the set (with the fixed string).
This is what the parent (what cspecInfo refers to) has as definition:
| private Set<ComponentAttribute> m_componentAttributes;
| @OneToMany(mappedBy="spec")
| public Set<ComponentAttribute> getComponentAttributes()
| {
| return m_componentAttributes;
| }
| public void setComponentAttributes(Set<ComponentAttribute> attributes)
| {
| m_componentAttributes = attributes;
| }
| @Transient
| public String getAttributeCount()
| {
| if(m_componentAttributes == null)
| return "0";
| return new Integer(m_componentAttributes.size()).toString();
| }
|
And the corresponding part in the detail entity looks like this:
| private ComponentSpec m_spec;
|
| @NotNull
| @Length(min = 1, max = 100)
| @Column(unique = true)
| public String getName()
| {
| return m_name;
| }
|
(it has an id column called 'cattr_id')
So - what am I doing wrong?
Should I access the data some other way?
Regards
- henrik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033410#4033410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033410
17Â years, 9Â months
[JBoss Seam] - Re: @DataModel problems
by fernando_jmt
Hi smithbstl,
Because I was wondering about the weird problem, I tried to reproduce your code in my SEAM application, using @DataModel and filling it after a search criteria is entered. And all works fine.
Also I check what debug page returns and I get:
|
| class class org.jboss.seam.jsf.ListDataModel
| dataModelListeners []
| rowAvailable false
| rowCount 22
| rowData java.lang.IllegalArgumentException[row is unavailable]
| rowIndex -1
| wrappedData [com.jtp.app.domain.User@11be57f, com.jtp.app.domain.User@114e777, com.jtp.app.domain.User@1a6c368, com.jtp.app.domain.User@e48e45, com.jtp.app.domain.User@1e64a3b, com.jtp.app.domain.User@4f7537, com.jtp.app.domain.User@7413e8, com.jtp.app.domain.User@1125fe1, com.jtp.app.domain.User@14b43d, com.jtp.app.domain.User@199c55a, com.jtp.app.domain.User@1ebf5c, com.jtp.app.domain.User@164d75, com.jtp.app.domain.User@1224b90, com.jtp.app.domain.User@52ac68, com.jtp.app.domain.User@a6a7d2, com.jtp.app.domain.User@10d0630, com.jtp.app.domain.User@e1ed5b, com.jtp.app.domain.User@1a0353d, com.jtp.app.domain.User@1a40fff, com.jtp.app.domain.User@1245e75, com.jtp.app.domain.User@3c8db9, com.jtp.app.domain.User@1823918]
| toString() org.jboss.seam.jsf.ListDataModel@1cbc5cb
|
|
As you can see in the debug the line java.lang.IllegalArgumentException[row is unavailable] is also presented for me. But nonetheless all is working fine for me. Seems like your problem is not precisely with @DataModel outjection.
Maybe the problem is residing anywhere else.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033409#4033409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033409
17Â years, 9Â months