[JBoss Seam] - 1.2.1 GA -- Split deployments
by tzman
I have been trying to split the registration example into 2 non-nested/root level deployments ( war and ear ). So far this has been unsuccessful and it appears as though the reason is that the loading of the jboss-seam.jar kicks off the seam deployment scanner. This means that it should be deployed with components. The problems is that war deployments are done prior to ear deployments and since it requires the SeamListener web deployment fails because it is also in jboss-seam.jar.
Searching the forums on this gives me nothing, but I find it hard to believe someone hasn't asked this before, most likely in some other words.
Is this possible with Seam 1.2.1GA? My first thought was to pull out the servlet package and put it into a jboss-seam-web.jar but it looks as though that may turn out to reference much of core.
Thanks in advance for any insight.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039262#4039262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039262
19 years
[Beginners Corner] - Re: Unable to Run an EAR or WAR File
by jhimmel
Here are more details about the problem.
If I deploy HelloJSF.war into the "deploy" folder and go to the http://localhost:8080/HelloJSF/ URL, I get the following:
Directory Listing For /
--------------------------------------------------------------------------------
Filename Size Last Modified
greeting.jsp 0.4 kb Tue, 13 Mar 2007 22:04:54 GMT
hello.jsp 0.6 kb Tue, 13 Mar 2007 22:03:00 GMT
--------------------------------------------------------------------------------
Apache Tomcat/5.5.20
If I click on hello.jsp, I get the following exception report:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NullPointerException
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
org.apache.jsp.hello_jsp._jspx_meth_f_view_0(hello_jsp.java:99)
org.apache.jsp.hello_jsp._jspService(hello_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.20
If anyone has experience with this type of problem, please help. Also, where might I learn how to understand the exception report? Thanks.
- jhimmel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039261#4039261
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039261
19 years
[EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
by oskar.carlstedt
Hi again!
Here is some information from a project I attended a couple of years ago. We operated on a Sun Starfire (Sun Enterprise 10000), totally 32 cpus and 32GB RAM, our domain had 12 cpus and 12 GB RAM. A lot has hapend since then, but still, such computers are not fast when it comes to simple things like database inserts. They are used for extreme load and may calulate a lot of complex stuff.
We hade Oracle on the starfire. On another server we had a Java program doing import stuff to the database.
In our case, on the Starfire, the application perfomed much better when using 5-10 threads than using 20 or 30 of them. (I've read about other persons complaining about how Java 1.4.x scales on multi cpu machines). Note that we used Java 1.4.x here. I don't know about how Java 1.5 or Java 1.6 behave on multi cpu machines.
When we changed the environment to a normal Compaq D180 server (the pizza box) with only 2 Intel Xeon, 1GB RAM having better clock frequency, we got much better performance. I can't remember exactly how much better, but I know we are talking about several 100 percents. We had Java on one server and Oracle on antoher server (also a pizza box, but 4GB RAM). These machines used Windows 2000 Server Std. Edition.
Then we tried to seutp Oracle on a 8 Xeon cpu Dell server 8GB RAM, with Windows 2000 Server Ent. Ed (you had to have ent. ed. to be able to use all processors and all memory). This machine had lower processor speed than the piza box. This configuration gave us worse performance compared to the 2 pizza boxes.
On all machines we were in contact with Oracle about how to setup the Oracle to get the best performance. One thing Otracle learned me, but this was version 8.1.6, was to setup the chunk size of the disks. When you raid your disks, you shall have as specific chunk size. At least on windows. You shall also have a special raid configuration. From the beginning we had raid 10, but as I can remember you shall use something else.
Best insert performance:
1. import of flat file
2. creating a stored procedure wher you sent a kind of comma separated string.
3. Java - Oracle simple sql prepared statements
4. Java - using simple statements.
...
What about the network between database and java. Are they running on separate machines. If not you will have a slower system.
Finally, Yes, the OCI drivers are much faster. Ther are communicating directly with the Oracle DB. The non OCI drivers are normally working with the PL/SQL in Oracle - an extra layer on top of the database.
Regards
Oskar
PS...
>From Java, rember to turn off auto commit. Ds.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039259#4039259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039259
19 years
[JBoss Seam] - inputText form array / dynamic form
by damianharvey
Hi,
I have a form based inside a rich:datatable. The number of fields is dynamic and is backed by an ArrayList in the Bean. I understood that I can use an Array, Set or Map and refer to it in the page by:
<h:inputText id="firstname" value="#{myBean.name[0].firstname}"/>
| <h:inputText id="firstname" value="#{myBean.name[1].firstname}"/>
| etc.
This works fine for the output of the value that was set in the Bean however it doesn't work in reverse - ie. if I change this value, the change is not reflected in the bean.
I've tried to find an example of this, but none exists (maybe that's a hint that it won't work?)
Is this possible or am I grasping? Should I just retrieve the input values in the Bean using the getParameters()?
If the latter, how have people got around the fact that the parameter map doesn't have an array of 'firstname', but instead has something like 'myform:mydatatable:0:firstname' and myform:mydatatable:1:firstname'?
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039240#4039240
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039240
19 years