[JBoss Seam] - Errors from app created with seam 2.0b1 seam gen
by ghettojava
Hello,
I am trying to build an app on an existing database using Seam 2.0b1, jboss AS 4.2.0. It will create the app and deploy it to the AS but I get the following error on startup of the app:
08:39:22,803 INFO [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
| 08:39:22,829 INFO [EARDeployer] Started J2EE application: file:/Applications/jboss-4.2.0.GA/server/default/deploy/lyrics03.ear/
| 08:39:22,829 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@1e0685a5 { url=file:/Applications/jboss-4.2.0.GA/server/default/deploy/lyrics03-dev-ds.xml }
| deployer: org.jboss.deployment.XSLSubDeployer@b3d591
| status: Deployment FAILED reason: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)
| state: FAILED
| watch: file:/Applications/jboss-4.2.0.GA/server/default/deploy/lyrics03-dev-ds.xml
| altDD: null
| lastDeployed: 1186058351216
| lastModified: 1186058351000
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=lyrics03.ear,unitName=lyrics03
| State: NOTYETINSTALLED
| I Depend On:
| jboss.jca:name=lyrics03Datasource,service=DataSourceBinding
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.jca:name=lyrics03Datasource,service=DataSourceBinding
| State: NOTYETINSTALLED
| Depends On Me:
| persistence.units:ear=lyrics03.ear,unitName=lyrics03
|
myapp is called lyrics03 at the moment.
Thanks,
Vinny
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070084#4070084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070084
18Â years, 8Â months
[JBoss Seam] - Dynamicaly loaded selectonemenu in table
by maumau61
Hi,
I'm want to display a table based on a List of specs
In this table, I have a selectonemenu which content depends on a value of each row. (The type of spec)
I tried the following
| <rich:dataTable id="specs" rows="20" var="spec" value="#{modelMgm.specs}">
|
| <h:column>
| <f:facet name="header">Spec:</f:facet>
| <h:outputText value="#{spec.spec.spec}" />
| </h:column>
|
| <h:column>
| <f:facet name="header">Value:</f:facet>
| <h:selectOneMenu value="#{spec.specvalue}" required="false">
| <s:selectItems value="#{specvalueListExt.restrictedList(spec.spec)}" var="spec"
| label="#{spec.valuestr}" noSelectionLabel="Select Spec" />
| <s:convertEntity />
| </h:selectOneMenu>
| </h:column>
| </rich:dataTable>
|
using the #{specvalueListExt.restrictedList(spec.spec)}
| @Name("specvalueListExt")
| public class SpecvalueListExt extends SpecvalueList {
|
| @Logger Log log ;
|
| public SpecvalueListExt()
| {
| super() ;
| }
|
| public List getRestrictedList(Spec spec)
| {
| // log.info("*************************** Spec: " + spec.getSpec()) ;
| return super.getResultList() ;
| }
|
| }
|
anonymous wrote : SpecvalueList extends EntityQuery
The error I get is now
anonymous wrote : SEVERE: Error Rendering View[/modules/models/modelsmanagement.xhtml]
| javax.faces.FacesException: javax.el.ELException: /WEB-INF/facelets/tags/model/editModelSpecs.xhtml @53,65 value="#{specvalueListExt.restrictedList(spec.spec)}": Method not found: ch.is.persistence.ext.SpecvalueListExt(a)6053c88e.restrictedList(ch.is.persistence.ejb3.Spec_$$_javassist_24)
| </rich:dataTable>
What am I doing wrong ?
Or is there a more subtle way to manage this case ?
Thank you in advance for your remarks
Sincerely
Malte
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070082#4070082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070082
18Â years, 8Â months
[EJB 3.0] - Re: @EJB injection always injects remote object, why not loc
by jainsau
Heres my code:
inteface (business interface) is unannotated:
public interface OrderService {...}
my slsb is annotated as follows:
@Stateless
@Local
@Remote
@TransactionManagement(TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class OrderServiceBean implements OrderService {...}
Now, in another SLSB (which is annotated just like above), i am accessing the above bean through injection:
public class DemographicsServiceBean implements DemographicsService{
@EJB (name = "earName/OrderServiceBean/local")
private OrderService orderService;
<!-- OR -->
@EJB
private OrderService orderService2;
.....
}
I am just testing this out, so I have a single system, and all the beans are deployed in this system. So the bean has to be available locally also. But still I get only the remote proxy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070076#4070076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070076
18Â years, 8Â months
[Beginners Corner] - Design question: need a
by karypid
My client application needs to obtain some (live) statistics from a database table. The statistics are calculated by regularly (every 5 secs) polling the database for new/updated records in that table (the rows have a timestamp) and processing the modified/new rows. I would like to implement this functionality in the middle tier, so that there is only one "worker thread" polling the database and all clients get their statistics from that worker via a stateless session bean.
I've read that it is not ok to start threads from session beans, as the AS assumes it manages all threads autonomously. However, I really need to have a constantly running thread as long as there is at least one instance of stateless bean X available. I'd settle if the thread is constantly running throughout the lifetime of my application, i.e.:
- Have JBoss start a "worker" thread as soon as my EAR is deployed.
- Have JBoss stop this thread as soon as my EAR is undeployed.
- Allow a stateless session bean to obtain a reference to this thread object (e.g. via JNDI?) so that it may access data that the object holds (the statistics it calculated).
What is the "proper" way to implement this kind of stuff?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070074#4070074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070074
18Â years, 8Â months
[JBoss Seam] - Datasource settings question
by guiltyxsin
Hi,
I am trying to connect to one of the server inside my uni with JDBC and using the Booking example as the canvas.
I modify the ds.xml file as follows. But the problem is that I need to specify the database I am querying for.
How should I do it?
Do I specify it in the ds.xml file or somewhere else?
By the way, the server is microsoft sql server.
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>xxxDatasource</jndi-name>
| <connection-url>jdbc:microsoft:sqlserver://xxx.xxx.xxx.edu.au:1433</connection-url>
| <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
| <user-name>xxx</user-name>
| <password>xxx</password>
| </local-tx-datasource>
| </datasources>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070073#4070073
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070073
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - How to set substitution values?
by g.tomassoni
I have a question which is probably a "newby" one.
When I develop some EAR, I'm used to assign some of the properties and attributes through substitution macros (in example: ${it.site.root} in the <context-root> of a module in the application.xml).
This lets me change some values depending whether I am deploying it on a staging or on a production server, in example.
I'm used to define the values of these macros among the runtime options I specify to start jboss. Unfortunately, this seems suboptimal to me, because:
- I need to modify the jboss startup script to do this;
- I need to restart JBoss in order to change these macros;
- I can't simply deploy the same app with two different names to have two different instances.
Is there any better way to do this? I tried to discover a way by meself, browsing the docs, but I don't think I found anything of useful.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070072#4070072
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070072
18Â years, 8Â months