[JBoss Seam] - SEAM + JSF custom components
by alex_enache
Hi everyone,
I am developing an application that uses SEAM and JSF. I've created some custom JSF components which I will use. The JSF components where tested on JBoss AS and they work as intended. But when I tried to build the application for SEAM, it seems not to work. Maybe it is related to the structure of the .ear.
I am also using the pageflow from jBPM.
My structure is the following:
/app.ear
| /META-INF
| /application.xml
| /jboss-app.xml
| /el-api.jar
| /el-ri.jar
| /jboss-seam.jar
| /jbpm-3.1.4.jar
| /appbeans.jar //which contains seam.properties
| /app.war
| /WEB-INF
| /lib
| /jboss-seam-ui.jar
| /appcomponents.jar //my JSF components
| /*.jspx pages
| /*.jpdl.xml files
My index.html page contains redirect:
<html>
| <head>
| <meta http-equiv="Refresh" content="5; URL=test.seam">
| </head>
| <body>
| testing!!!
| </body>
| </html>
This page actually loads, and displays the "testing!!!" text on the browser. But when the redirect is done, it sais that it does not find the test.seam page.
Maybe I am doing something wrong, or maybe I need other structure because of the custom components. I've read many online docs that talk about packaging and deploying applications on SEAM. But I could not make mine work. Any help is much appreciated since I really need to make this work.
Regards,
Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078261#4078261
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078261
18Â years, 8Â months
[JBoss Seam] - Two web applications in one Seam app
by madsph
Hi.
I am trying to crate a Seam application with two separate webapplications. That is, I want to deploy one ear file containing to war files, both using the same ejb jar file.
The reason for this is that I need one application for customers to maintain their own data, and one application for customer support with admin access to all data.
The two applications will have a different look and feel, and completely different views on the same data.
Since both applications will be working on the same datamodel in the same database, it seems fair that they share the same ejb jar file in the same application context.
I have come a long way with this, but I am now experiencing a problem when loging in. Since the two war files share the same jar file, they are both using the same Authenticator class when logging in.
In my Authenticator I need to inject an actor in order to apply roles (admin vs ordinary user etc.) so I use:
@In Actor actor;
The strange thing is that when I log in to one of the webapps, this is working fine, but when I try to log into the other, I get the "In attribute requires non-null value: authenticator.actor" error.
I can not set the required flag to false, since I need the actor in both applications.
My guess is that I am violating some fundamental principle here, and I would like to know if there is a way to deploy two (Seam) webapps in the the same ear file, or am I a complete nut-case for even trying?
Thanks in advance
madsph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078260#4078260
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078260
18Â years, 8Â months
[JNDI/Naming/Network] - javax.naming.CommunicationException: Failed to connect to se
by lakshmiprasanth
Hi,
I was running my server (jboss-4.0.3SP1)successfully till we restarted the linux machine.But now when i try to start the jboss server it throws exceptions while deploying the ejb's
INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'ASTEntity' to jndi 'mobmeee/ASTEntityLocal'
[JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLExceptio
n: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)
I checked my ip ,username and password.The ASTEntity bean is connecting to the asterisk database which is on a different ip.I checked that ip also .everything ok..
also when i try to connect to the agi server running on port 4573 I get the exception saying
javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.C
onnectException: Connection refused]
what should i do ..please help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078258#4078258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078258
18Â years, 8Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Entity bean & java.util.Map
by mr_d
Hello,
I don't know if I'm in the wrong forum, if it is the case, sorry for the inconvenience.
I have a little problem with a property of an entity bean.
I'm using EJB3, Jboss 4.2.0 GA. and Java 1.5
I need to have on an entity bean a Map<String, String>. When I deploy, I have the following error:
| javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.Map
|
Now, if instead of a Map<String, String>, I use a Map<String, X> where X is also an entity bean, it works.
So I can solve my problem with a second entity bean, but I don't really need it. It would be more clear to use a Map<String, String> in my case.
Anyone has any ideas?
Thanks in advance,
:oD.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078257#4078257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078257
18Â years, 8Â months