[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - AbstractEntityManagerImpl.persist in Embeddable EJB 3.0 usin
Hi all, I'm using Seam 1.0.1GA which means Hibernate as persistence layer. I have done a TestNG test for testing my Data Access EJB which are using hibernate using the SeamTest class. This means that my Data Access EJB is deployed and my test is accessing it as a Seam component. TestNG is using Microcontainer and Embeddable EJB3. According to the log trace, the following hibernate version are used : Hibernate EntityManager 3.2.0.CR1 Hibernate Annotations 3.2.0.CR1 Hibernate 3.2 cr2 The test is working perfectly when I use the compiled class files directly. Then I have packed the classes files in two different jar files : - the first contains the Entities - the second contains the Data Access Objects using the EntityManager I got the following error : anonymous wrote : [testng] ERROR 14-09 09:54:35,609 (Log4JLogger.java:error:119) -persist failed |[testng] java.lang.IllegalArgumentException: Unknown entity: accountingAudit.businessObjects.Publicationstatus |[testng] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:189) |[testng] at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:175) |[testng] at accountingAudit.dataAccessObjects.PublicationstatusHome.persist(PublicationstatusHome.java:38) my entity in the first jar files @Entity | @Table(name = publicationstatus, catalog = accountingaudit, uniqueConstraints = {}) | public class Publicationstatus implements java.io.Serializable { | ... | } My DAO in the second jar files | @Stateless | @Name(publicationstatusDAO) | @Interceptors(SeamInterceptor.class) | @Local | public class PublicationstatusHome implements PublicationStatusLocal { | | private static final Log log = LogFactory | .getLog(PublicationstatusHome.class); | | @PersistenceContext(unitName=entityManager) | private EntityManager entityManager; | | public void persist(Publicationstatus transientInstance) { | log.debug(persisting Publicationstatus instance); | try { | entityManager.persist(transientInstance); | log.debug(persist successful); | } catch (RuntimeException re) { | log.error(persist failed, re); | throw re; | } | } | So, obviously this due to the packing in the jar file. But I don't know if this is due to a missing Hibernate annotations, an error in the Embeddable EBJ3 or anything else... Any help would be greatly appreciate. Thanks in advance Christophe Laumond, M-ITC Ltd, Mauritius I don't know if the error View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971468#3971468 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to hide a portlet/pages that user doesn't have view
I have this same problem. It seems you can hide a page from a user, but setting permissions on a window has no effect. So if I have a page with three portlets on it and I want to hide one of them I can't do this by setting the view permissions on the window for that porltet to admin only. If I set the view permissions on the portlet itself Then you see the portlet window with an access denied message. This is not I want to happen obviously. I also have similar problems with permissions on the edit view. I want to have a portlet be visible to everyone but only be editable for admin users. If I go to the instance security settings for some reason I see only a view option that I can configure even though my portlet supports the edit mode. This occurs for all portlets even out of the box ones like the news portlet that clearly support the edit view. Setting the window permissions to personalize/personalize recursive on the portlet window has no effect. Right now the only permissions that actually seem to work are page wide permissions for view. Even if I set the whole page to personalize/recursive to admin only I can still edit any portlet on the page as a guest. It seems either I am doing something wrong or the permission system doesn't work at all. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971469#3971469 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Cannot start JBoss4 Server from IDE2
Rob Could you explain how to check the properties of twiddle launch. Right-clicking of twiddle launch item gives only Refresh Viewer. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971471#3971471 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - components.xml
I am wondering if there is a full description of the components.xml. The documentation is a bit vague about it. For example: I know you can instantiate components in it but I don't know how to set the scope of that component. Next to the full documentation of the components.xml there also should be a Schema or DTD file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971475#3971475 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971475 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Farm deployement problem
Just noticed message Missing file: /lib/tools.jar run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE. when I launch server... Maybe that could be the reason... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971473#3971473 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Data modiied outside ejb container
hi , i am deploying my aplication using jboss 3.2.5 having BMP for my EJB and JDBC connection seprately for some data updation outside the EJB container,bcoz of this if i modify any of my data using JDBC connection ,then this data is not cashed in the EJB and also due to the ejbstore() method invocation by the container for data persistence,the data stored into the database is changed back to the data which was already cashed by EJB.and the data saved using JDBC connection outside the container is lost. can any one plz suggest the solution to this problem regarding some jboss configuration changes need to be made for calling of ejbload() and comapiring that data befor calling the ejbstore() method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971476#3971476 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Task assignment via pooled actor
Thank you Gavin for your answer. Looking at the process definitions in the DVD store example there are two different ways of assignment: 1) pooled-actors=#{shipperAssignment.pooledActors} 2) pooled-actors=reviewers As far as I understood both ways work via groups assigned to the actor (in LoginAction) and not the actorId itself as stated as possible in the documentation. Because I've tried this, this has been the initial question of my post. Ad 1) shipperAssignment.pooledActors returns a comma separated list of Ids, which I do understand as groupId's (because they match the groups assigned to the actor after login) and not the actorIds (manager) Ad 2) reviewers is not an actorId, it's a groupId Maybe I'm missing a point, but I don't see any example of assigning a pooled task through an actorId. Again, thank you for sticking to the topic. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971477#3971477 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @Basic(optional=true) vs @Column(nullable=true)
Hi! Does anyone know, what's the difference between @Basic(optional=true) and @Column(nullable=true)? Don't both do exactly the same thing? Thanks, Stephan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971478#3971478 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel
8 wrote : | However, when I do this, I don't seem to be getting the DataModel, but rather the actual List itself. This is evidenced by the fact that a method in the class that uses the DataModelSelection is always stuck at pointing to the first item in the List list... | Can you elaborate on that bit, especially the first item in the List. The way it is, your List will get wrapped into a ListDataModel before its sent out to the view and unwrapped on its way back. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971480#3971480 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Migration JBPM2 - JBPM3
Hi, I have an application installed running JBPM2. The application is in production and has active processes (process instances). I'd like to migrate to JBPM3 (actuali to JBPM 3.1). I found the tool for process definition migration, but I was not able to find any hint on migrating the active process instances (database migration). So, is there an upgrade path from jbpm2 to jbpm3? If so, any pointer to the documentation? thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971481#3971481 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to hide a portlet/pages that user doesn't have view
anonymous wrote : This is not I want to happen obviously. It depends on the use case... On some use cases you may want to be able to see that it is secured so the user think about logging in to see the window in action. Fortunately you can change the behavior: Edit: portal-core.sar/conf/config.xml put the key: ?core.render.window_access_denied to hide. You will see other keys that you may want to change We decided to make it developer friendly out of the box, so you know why a window doesn't appear (Is it broken ? is it secured ?...) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971482#3971482 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971482 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: AbstractEntityManagerImpl.persist in Embeddable EJB 3.0
Thanks to Xavier Hanin which has given me the answer through his website : https://izvin.bountysource.com/news/show/98 anonymous wrote : | hibernate entity manager only scans the classes found in the same ?jar? as the persistence.xml. Since my entity classes are in the common project and my persistence.xml in my desktop project (I will have a different one for my shared service project later), it doesn?t find my entities. So I should either add a jar-file entry to my persistence.xml, but this isn?t really possible for an app deployed on the client by the user. So I?ll have to list my entities here. Mmm, I don?t like that. Fortunately, hibernate offers an extension to the specification and let specify a whole package instead of a single class. Fine, let?s use that feature, I?ll do spec compliant stuff when I?ll want to deploy on another EJB3 container :-) | and thanks to the JBoss team for the good documentation : http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html_single/index.html anonymous wrote : | |persistence-unit name=manager1 |jta-data-sourcejava:/DefaultDS/jta-data-source |jar-file../MyApp.jar/jar-file | ... | anonymous wrote : | jar-file and class | The class element specifies a fully qualified classname that you will belong to the persistence unit. The jar-file element specifies another jar you want automatically scanned for @Entity classes. When using jar-file, you must specify a path relative to the jar file the persistence.xml file is in. By default also, the jar the persistence.xml file is placed in is scanned for @Entity classes as well. | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971479#3971479 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel
You should use it like this #{list}, because when you use @DataModel Seam outjected wrapper into the current context with name of the property (list in your case) Another way you should wrap it by yourself, only then you can use it the way #{YourBean.YourModel} View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971484#3971484 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence Manager in the JNDI
the second problem is probably related to EJBTHREE-628 (Redeployment doesn't work with E-EJB3), which is already fixed for RC9. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971485#3971485 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971485 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Listening on 2 LAN cards
Scott, is it valid only for web-access? Is it possible to use connectors for EJB application clients access from different networks? Help is very appriciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971486#3971486 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JoinColumn annotation order
Hi all :) I have been using ManyToMany annotation to connect two tables. I thought the order of 'JoinColumn', does not matter, however when I wrote: @ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.LAZY) @JoinTable(name=profile_group_link , inverseJoinColumns = [EMAIL PROTECTED](name = group_id)}, joinColumns = { @JoinColumn(name = profile_id),@JoinColumn(name = population_id)}) It did not work ,so I changed the order: joinColumns = [EMAIL PROTECTED](name = population_id), @JoinColumn(name = profile_id)}) and it worked perfect!!! Does any one knows why that happens? Do the order of the annotation change things? thanks Very confused individual View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971487#3971487 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: performance issues when using variables in business cont
w, that did it. Thanks alot! Maybe put a little note into the docs that in some cases where you combine business context with lots of component calls in a JSF page is it highly recommended that SeamManagedTransactions are used since else the container will open up a whole lot of small pointless transactions? Anyways, thanks again! :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971488#3971488 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Looking up MessageDrivenBean/MessageListener
Hi Gabriel, may be that I misunderstand you, but you seem to mix MBean with Message Driven Bean. An MBean is a Managed Bean in the jmx server. The Message Driven Bean is an EJB used for message based communication. You should lookup your MBean with something like this: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMQ (look for the examples). There is an explanation of how to get an MDB and trigger it. I hope it helps! Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971489#3971489 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Rolling over JBoss console log
Hi Ramdas, there are some errors in your configuration. First you finish the opening appender tag with /. That brings a SaxParseException. Then you have the param Target that is not possible for the FileAppender. Apart from that your configuration works for me. Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971490#3971490 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How do you set the transfer-encoding
Is it possible to set what transfer-encoding that JBoss uses for its web service responses. Currently, all our responses appear to use chunked encoding, but we'd prefer to use something else that doesn't add extra characters into the response sent down the wire. If it is possible, could you suggest how, or point me in the direction of somewhere that explains it. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971491#3971491 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Double processing on getter() outjection
In the CVS version of Seam there is a new kind of @Factory method which can be used like this. Check the docs in CVS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971492#3971492 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception Handling (w/ interceptor)
em.getTransaction() is NOT the right way to get access to the JTA transaction (it should be throwing an exception). instead you need to call EJBContext.setRollbackOnly(). You can get the EJBContext from JNDI or by injecting it using @Resource. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971494#3971494 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why is it called Seam?
Seams join things together. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971495#3971495 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - An SLSB doesn't have a home interface anymore ?
Hi all, I'm using Seam1.0.1GA with the JBoss AS 4.0.4GA provided with JEMSInstaller and for testing I'm using the testng-jdk15.jar provided with the TestNG Eclipse plugin. I have found this article describing EJB 3.0 in general : http://www.javaworld.com/javaworld/jw-08-2004/jw-0809-ejb-p2.html Below the part this post is about : anonymous wrote : | An SLSB doesn't have a home interface anymore?in fact, no EJB type requires it. The bean class may or may not implement a business interface. If it does not implement any business interfaces, a business interface will be generated using all the public methods. When I read that I think : This is wonderful ! I have generated DAO class using the Hibernate tools in Eclipse. For example : | @Stateless | public class AccountantHome { | | private static final Log log = LogFactory.getLog(AccountantHome.class); | | @PersistenceContext | private EntityManager entityManager; | | public void persist(Accountant transientInstance) { | ... | } | | public void remove(Accountant persistentInstance) { | ... | } | | public Accountant merge(Accountant detachedInstance) { | ... | } | | public Accountant findById(long id) { | ... | } | } | So this generated class is perfect according to what it said in the article. But when I deploy it I get : anonymous wrote : | bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface | I don't understand why this occure. It fails in both JBoss AS and the Microcontainer + Embeddable EJB3 of TestNG. I had to create an interface and add the annotation @Local to the interface in order to get a correct deploy. Could you tell me what I have missed please ? Regards, Christophe Laumond, M-ITC Ltd, Mauritius View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971493#3971493 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Unable to resolve pointcut reference
as far as i can tell there is nothing wrong with your code, but the errormsg you get is typical that the pointcut you defined with your @Bind doesnt exist. eg: that you mistyped the classname/package/etc. i tried your example where i just changed packagename to com, and pointcuted another methodcall and it worked with no other changes. so if your code is exactly as the example you provided i cant see whats wrong. if you're able to provide a complete small example that fails in the same way ill take a look at it, but atm i cant help you further im afraid... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971496#3971496 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Glaring Security Hole?
bfagan wrote : Please correct me if I'm mistaken, but my impression from the Seam Reference document is that if you enable Seam Remoting then any Entity bean that you've given a Seam @Name has it's data model exposed. | | Let's say you have a large corporation and a developer uses a wonderful IDE wizard to turn their database model into a package of easy to use Seam-enabled entities. Next the developer enables Seam Remoting to use an @WebRemote enabled session bean. | | Any competitor to said large corporation can search javascript segments for Seam.Component.newInstance() methods, call out to the Seam Remoting URL garner information about the entities and reverse engineer a data model. | | It is clear that session beans require @WebRemote annotation. Why are entity beans automatically exposed without such an annotation? They are only exposed if they are the return value of a method marked @Remote. And only their state is exposed, not their methods. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971497#3971497 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971497 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)
now I work on one instance of jbpm process in order to work one instance correctly. (but I notice that when I execute two portlets of jbpm, the processID of each is the same). Now, I catch the taskinstance and do a list for each swimlane person. after, I would like to choice one among these and execute this. So I must to indicate which one it is. I have the taskinstanceID but how can I call this taskinstance thanks to this Id? this is my code: System.out.println(les taches non finies sont:); | Collection taskinstances = (Collection) pi.getTaskMgmtInstance().getUnfinishedTasks(token); | Iterator itr1 = taskinstances.iterator(); | while(itr1.hasNext()) { | taskinstance=(TaskInstance)itr1.next(); | | if(ernie==taskinstance.getActorId()){ | System.out.println(Pour ERNIE :+taskinstance.getName()); | System.out.println(taskinstance.getId()); | System.out.println(tache finie:..+taskinstance.hasEnded()); | } | | else if(bert==taskinstance.getActorId()){ | System.out.println(Pour BERT :+taskinstance.getName()); | } | | else{ | System.out.println(Les autres taches sont :+taskinstance.getName()+ et sont allouées à+taskinstance.getActorId()); | taskinstance.getSwimlaneInstance().setActorId(bert); | System.out.println(Changement effectué.. the task is :+taskinstance.getName()+ to the user +taskinstance.getActorId()); | | } | } | | I want to work on one of the task instances after this while loop. thank you for your help antitrust1982 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971498#3971498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: components.xml
This is a todo. Important, since components.xml is much more sophisticated in Seam 1.1. The scope is determined by the @Scope annotation, or the defaulting rules, unless you explicitly specify scope=... in components.xml (Seam 1.1 only). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971499#3971499 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel
denis-karpov wrote : You should use it like this #{list}, because when you use @DataModel Seam outjected wrapper into the current context with name of the property (list in your case) Right. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971501#3971501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)
The processID is process instance id or process definition id ? process definition id has to and will be same. process instance id will be different unless you are searching for the process instance by id. two ways to do this: 1) Copy task instance to a reference outside 2) search for task instance from task mgt session. cheers! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971502#3971502 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Farm deployement problem
And actually this is a dev environnement used by many developpers so maybe it is a port problem? Anybody has an idea of wich port is used for the farming? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971503#3971503 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Binding multiple instances of jboss on seperate IP and s
use -b option with run.sh, for example: ./run.sh -b192.168.1.95 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971505#3971505 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: C++ and JMS
Concerning the WS part, you should post something in these dedicated forums to first get better performance using that method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971504#3971504 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re:
I haven't read the article @ javaworld you're referring to and I don't really understabd your question. But anyway, in EJB 3.0 the home interface is removed but still you need either a Local or Remote business interface or a web service interface to your bean class. here's a good place to start: http://trailblazer.demo.jboss.com/EJB3Trail/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971507#3971507 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - JBoss Cache (PojoCache) with Hibernate Collections (Persiste
Hi, I am using PojoCache to store Pojo Objects created by Hibernate. I want to use the replication mode with this cache, so I pre-compile with aopc (ant task) my classes. But when I call PojoCache.putObject with an Object (which contains collections) loaded by Hibernate, I have an exception : Caused by: org.jboss.cache.CacheException: failure creating proxy at org.jboss.cache.aop.CollectionClassHandler.collectionObjectPut(CollectionClassHandler.java:124) at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:213) at org.jboss.cache.aop.TreeCacheAopDelegate._regularPutObject(TreeCacheAopDelegate.java:468) at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:206) at org.jboss.cache.aop.PojoCache._putObject(PojoCache.java:731) at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:462) at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:423) at com.gltrade.manager.cache.PojoCacheManagerImpl.put(PojoCacheManagerImpl.java:75) ... 12 more Caused by: java.lang.RuntimeException: javassist.CannotCompileException: by java.lang.VerifyError: class AOPClassProxy$0 overrides final method .Û8Ý*h'+ at org.jboss.cache.aop.collection.CollectionInterceptorUtil.getMethodMap(CollectionInterceptorUtil.java:74) at org.jboss.cache.aop.collection.CachedMapInterceptor.(CachedMapInterceptor.java:33) at org.jboss.cache.aop.collection.CollectionInterceptorUtil.createMapProxy(CollectionInterceptorUtil.java:50) at org.jboss.cache.aop.CollectionClassHandler.collectionObjectPut(CollectionClassHandler.java:122) ... 19 more Caused by: javassist.CannotCompileException: by java.lang.VerifyError: class AOPClassProxy$0 overrides final method .Û8Ý*h'+ at javassist.ClassPool.toClass(ClassPool.java:906) at javassist.ClassPool.toClass(ClassPool.java:846) at org.jboss.aop.AOPClassPool.toClass(AOPClassPool.java:181) at javassist.ClassPool.toClass(ClassPool.java:804) at javassist.CtClass.toClass(CtClass.java:1037) at org.jboss.aop.proxy.ClassProxyFactory.generateProxy(ClassProxyFactory.java:290) at org.jboss.aop.proxy.ClassProxyFactory.getProxyClass(ClassProxyFactory.java:67) at org.jboss.aop.proxy.ClassProxyFactory.newInstance(ClassProxyFactory.java:79) at org.jboss.aop.proxy.ClassProxyFactory.newInstance(ClassProxyFactory.java:52) at org.jboss.aop.proxy.ClassProxyFactory.newInstance(ClassProxyFactory.java:47) at org.jboss.cache.aop.collection.CollectionInterceptorUtil.getMethodMap(CollectionInterceptorUtil.java:72) ... 22 more Caused by: java.lang.VerifyError: class AOPClassProxy$0 overrides final method .Û8Ý*h'+ at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at javassist.ClassPool.toClass(ClassPool.java:898) ... 32 more I have done many tests, I have reproduced the problem without Hibernate. In fact, the problem is the Hibernate implementation of Collections e.g: org.hibernate.collection.PersistentSet. When I create an Object which contains other objets within PersistentSet, I cannot put objets into PojoCache and I have the same exception. So, Could PojoCache work with Hibernate Objects and its Collection implementations ??? Thanks for Help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971509#3971509 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - JBOSS 4.0.2
Hello everybody, i am using Jboss4.0.1sp-1 with JSF and JSTL i have no problem when i deploy my application and is running ok.. i am trying to change to Jboss4.0.2 when i deploy i have no problems but when i run my application i got an error like | | ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error ge | tting property 'links' from bean of type de.mentalproof.mpw.web.beans.LinksBean: | java.lang.NullPointerException | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) | | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) | | at javax.faces.component.UIData.getValue(UIData.java:527) | at javax.faces.component.UIData.getDataModel(UIData.java:856) | at javax.faces.component.UIData.setRowIndex(UIData.java:379) | at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRen | derer.java:65) | at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav | a:683) | at javax.faces.component.UIData.encodeBegin(UIData.java:681) | at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591 | ) | at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543) | at com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.ja | va:491) | at org.apache.jsp.mpw.index_jsp._jspx_meth_h_dataTable_0(org.apache.jsp. | mpw.index_jsp:492) | at org.apache.jsp.mpw.index_jsp._jspService(org.apache.jsp.mpw.index_jsp | :268) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper | .java:322) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 | 14) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp | atcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica | tionDispatcher.java:463) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD | ispatcher.java:398) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis | patcher.java:301) | at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp | l.java:322) | at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl. | java:130) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha | | | i think that jboss can't use the JSF components cuz the LinksBean is used in a DATATABLE in my jsp.. when i run a jsp without JSF components i have no problem its run ok.. so can someone tell me plz what is happening here?? what should i do?? i think i missed some configuration or some jars that i have to use or add.. but witch?? anyone idea??? plz help me View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971511#3971511 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971511 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBoss CMP - findByPrimaryKey entry in depolyment descriptor
Hello all, I'm a newbie to JBoss and would really appreciate if someone helps me out. I ran across one of the documents which says that the present releases of JBoss enforces an entry of findByPrimaryKey method in the deployment descriptor, which as per my knowledge was not true till version 3.0. When I try to deploy an EJB module without specifying the findByPrimaryKey, it throws an exception saying that findByPrimaryKey declaration is expected in ejb-jar.xml But since I'm using a wrapper class for a composite primary key, I cannot specify the corresponding EJB QL for it...What is the solution for this??? Awaiting your reply regards, Krishnan Iyer View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971512#3971512 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971512 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ..:: Questions about Seam design!!!
anonymous wrote : Seam still uses a 3-layered architecture. Ok, it breaks with traditional J2EE patterns like DAOs and stuff. But hey, this is called progress. You do not need this fat old architecture paradigmas. But you can still use them if you want to. If it is necessary you can still have a session bean as a wrapper around the EntityManager. I sometimes use this pattern, if the retrieving of entities is more complex and does happen - at least sometimes - outside of seam. This is useful if you have MDBs and you don't want them to depend on seam so you can deploy them on another AppServer more easily. Regards fhh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971513#3971513 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Dynamic Named Query?
| queryselect * from address where postcode=:postcode ORDER BY state | :ordering | /query | | query.setParameter(ordering, ASC) | I have not actually checked ut my first guess would be that you will get | select * from address where postcode=5000 ORDER BY state 'ASC' | which will not work for obvious reasons. Propably the easiest way to solve this is to have two queries and then choose dynamically which one to use. Regards fhh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971515#3971515 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971515 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - UTF-8 problem within JSF
Hi there, I have a UTF-8 problem within my seam application, Basically viewing my test.jsf shows me two byte UTF-8 character in plain text. encoded as #195;¶ for a german ö, instead it would be nice to have the correct htmlcode for ö which is ;ouml i guess. So here is what I have done I have confirmed that the String withing the Bean is correct UTF-8. I have content=text/html; charset=utf-8 within my header. I have jboss set to UTF-8 charset by default, and confirmed that defaultcharset is UTF-8 I have added the following to my web.xml. !-- Encoding to UTF-8 -- filter-nameSeam Character Encoding/filter-name filter-class org.jboss.seam.servlet.SeamCharacterEncodingFilter /filter-class init-param param-nameencoding/param-name param-valueUTF-8/param-value /init-param init-param param-nameoverrideClient/param-name param-valuetrue/param-value /init-param filter-mapping filter-nameSeam Character Encoding/filter-name url-pattern*.jsf/url-pattern /filter-mapping Is there anything more I have to do to get UTF-8 in jsf working? thanks, -dennis View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971517#3971517 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UTF-8 problem within JSF
by the way I have the CVS version of seam as of yesterday. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971519#3971519 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971519 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Getting Kernel as null ......
| StandaloneBootstrap iocHook = new StandaloneBootstrap(ar); | iocHook.main(ar); | //icoHook.run(); | Kernel kernel = iocHook.getKernel(); | System.out.println(Kernel is +kernel); | Why do I get the kernel as null ? I have jboss-beans.xml in the classpath it loads the bean which is defined in that , actaully I was wonderitng if I can get the bean back from the KernelRegistry . But before exploring more API's I got kenel as null What am I missing ? Regards Vicky View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971522#3971522 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Pool size for my Stateless Beans?
How do I switch to strict maximum? I searched for this in the JBoss manual, but didn't find anything :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971524#3971524 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971524 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Is the header a portlet?
I am also trying to put a simple window in the header. Thanks for this thread - it has already saved me a lot of time. I have a portlet which behaves as needed. I removed the decorations and created an instance above the navigation as described here. I've gone through the JBoss Portal Reference Guide (2.4) and see a lot of information on themse and layouts, but it is still unclear to me what some of the parameters (e.g. UL#tabsHeader li ) actually do. Questions: 1. How can I make the portlet smaller? It seems to go across the entire screen, when I only want it to be 210X110 px? 2. How can I move it to the right instead of center? Do I need to use a three column layout or is the header separate from that? 3. How do I hide/remove the edit/minimize/maximize options in this portlet? I am planning on modifying the theme, as opposed to creating a new one. Sorry, if these are basic questions. Thanks. CR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971525#3971525 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971525 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - newbie question format a date
Hi all, I have just started with seam, and now I have a Problem converting dates to the correct form. I have tried: | td | h:inputText value=#{specification.creation} | f:convertDateTime pattern=dd.MM.yy hh:mm / | /h:inputText | input name= type=text value=#{specification.creation} readonly=true jsfc=h:inputText/ | /td | but they both render the date as Thu Sep 14 12:56:43 CEST 2006 Can anyone please help? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971526#3971526 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Difference btn jboss-4.0.4.GA-Patch1-installer.jar and j
Hi, Thakns for your reply, How do i tell jems-installer to install jboss-Patch1? If i run the command as is then this is what i see! Appreciate your assistance Manglu !--- Error message Looking for auto install resource... /res/jbossauto-install.xml URL: jar:file:/home/jboss/software/jems-installer-1.2.0.BETA2.jar!/re s/jbossauto-install.xml PackageListener, install.log=/home/jboss/software/install.log - Error - java.lang.ArrayIndexOutOfBoundsException: 1 java.lang.ArrayIndexOutOfBoundsException: 1 at com.izforge.izpack.installer.AutomatedInstaller.(AutomatedInstaller.java:143) at com.izforge.izpack.installer.Installer.main(Installer.java:57) [EMAIL PROTECTED] software]$ java -Xmx256M -Xms128M -jar jems-installer-1.2.0.BETA2.jar -i nstallGroup default installpath=/home/jboss/jboss-4.0.4 GA Looking for auto install resource... /res/jbossauto-install.xml URL: jar:file:/home/jboss/software/jems-installer-1.2.0.BETA2.jar!/re s/jbossauto-install.xml PackageListener, install.log=/home/jboss/software/install.log - Error - java.lang.ArrayIndexOutOfBoundsException: 1 java.lang.ArrayIndexOutOfBoundsException: 1 at com.izforge.izpack.installer.AutomatedInstaller.(AutomatedInstaller.java:143) at com.izforge.izpack.installer.Installer.main(Installer.java:57) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971527#3971527 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971527 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pageflow - ClassCastException: org.jbpm.graph.node.Start
I did read the manual several times but managed to miss the two sentences below. Wouldnt it be a good idea to put in an error message explaining what went wrong instead of throwing a ClassCastException. I thought it was a class loading issue! (of which I have found several with jboss). I imagine that many more people will fall into the same trap I did. Thanks Andy Bailey www.hazlorealidad.com From the docs ... If we are beginning the pageflow during the RENDER_RESPONSE phase?during a @Factory or @Create method, for example?we consider ourselves to be already at the page being rendered, and use a start-page node as the first node in the pageflow, as in the example above. But if the pageflow is begun as the result of an action listener invocation, the outcome of the action listener determines which is the first page to be rendered. In this case, we use a start-state as the first node in the pageflow, and declare a transition for each possible outcome: View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971529#3971529 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss Cache (PojoCache) with Hibernate Collections (Pers
You should configure hibernate to use JBoss Cache as a 2nd level cache and handle the cachning of objects internally. You should not try and cache the objects yourself in this manner since this could potentially create a sitiation where you end up with stale data. See the chapter on caching in the hibernate docs for more details. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971530#3971530 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971530 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: C++ and JMS
I did. I posted a seperate topic on the JbossWS message board(Link is below) . I figured the JMS question post should go here. 1) Is JMS quicker than WS calls 2) Prefered way to interact in a Linux/C++/G++ environment http://www.jboss.com/index.html?module=bbop=viewtopict=90577 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971531#3971531 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @GeneratedValue for non-PK fields
thank god someone said it. I tried hours to get @GeneratedValue work on a non-pk field. So how do you generate a values for non-pk fields? For example acticle or ordernumbers, in my case. regards, -dennis View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971532#3971532 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss and C++
The 250,000 per second is the number of messages i could create. In a perfect world my WS could process 250,000. I have also exposed two WS operations to mark Start, and End Time. Unfortunatly i am doing sequential processing right now so the send and receive time will be the same Do you have any idea on how fast you are able to interact with a WS using SOAP? I guess my underlying fear is that I am not choosing the optimal C++ libraries to interact with the Java Webservice and that is why i am only able to process 50 per second Thanks for the post. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971533#3971533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Don't deploy a process definition when restarting
I came over the same problem, without create-drop in the hibernate configuration the process deployment fails saying that there is another process definition with the same version (if I remember the error message correctly). How can you disable the auto deployment of process definitions (I had a look at the code and I cant see any easy way to do it other than extend Jbpm and override installProcessDefinitions() ). What about adding a floating point version attribute to the process definition, check to see if it higher than the latest one in the db and only then deploy it. That way the autodeployment would work even in production. It is reasonable for a process definition to have a version number to identify it and not just a private one automatically assigned by jbpm. Andy Bailey www.hazlorealidad.com View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971535#3971535 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Refresh POJOs in a JSP
I'm using Struts and JBoss/EJB3. The Struts Action invokes an EJB3 Session Bean and gets a collection of objects, e.g. objects of class Customer. Later the retrieved objects are displayed in a JSP (and the EJB3 entity manager is gone). If I want to display also the orders of each customer I have a problem with lazy loading. OK, one solution is to use a fetch join inside the EJB code so that each customer's orders are loaded in advance. However, for flexibility (not performance) reasons I'm looking for a solution regarding my JSPs. How can I reload inside a JSP the referenced objects that were not loaded in the cache, yet? Any hint is appreciated! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971537#3971537 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971537 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss and C++
What are you trying to achieve i.e. you will never ever be able to send 250'000 messages per second on any WS stack. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971536#3971536 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971536 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss and C++
http://www.webservices.org/weblog/mark_little/soap_for_the_masses View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971538#3971538 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971538 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss and C++
Any of the 100,000's via C++(Client) to Java(WS) you think that is possible? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971539#3971539 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971539 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Correct way to deploy ear in a cluster
My ear file contains both war application and ejb3. When I upload ear file to both servers in the cluster I get a NameAlreadyBoundException(only on stateless ejbs, not entity) on one of the servers(the one I start second). I have a default installation of jboss-4.0.4.GA in a linux redhat envoriment. The stateless class: @Stateless | @Local ({IndexEngineBIZLocal.class}) | @LocalBinding (jndiBinding=BeanFactory.INDEX_ENGINE_BIZ_LOCAL) | public class IndexEngineBIZBean implements IndexEngineBIZLocal { | And exception: 2006-09-14 12:09:10,817 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=PrivateEconomicDictionary-1.0.ear,jar=PrivateEconomicDictionaryBeans.jar,name=IndexEngineBIZBean,service=EJB3 with dependencies: | 2006-09-14 12:09:10,837 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: no.tv2.nettavisen.privateeconomicadvice.biz.IndexEngineBIZBean ejbName: IndexEngineBIZBean | 2006-09-14 12:09:10,869 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:ear=PrivateEconomicDictionary-1.0.ear,jar=PrivateEconomicDictionaryBeans.jar,name=IndexEngineBIZBean,service=EJB3 | javax.naming.NamingException: Could not bind statless proxy with ejb name IndexEngineBIZBean into JNDI under jndiName: /pea/IndexEngineBIZ/local [Root exception is javax.naming.NameAlreadyBoundException] | at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:70) | at org.jboss.ejb3.stateless.StatelessLocalProxyFactory.start(StatelessLocalProxyFactory.java:63) | at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:107) | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:85) | at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:80) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | Maybe farmdeployment can solve my problem. But where do I find documentation about that :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971541#3971541 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UTF-8 problem within JSF
db__ wrote : Basically viewing my test.jsf shows me two byte UTF-8 character in plain text. encoded as #195; Where do you mean exactly: in static text or in an input field? Check this thread for a workaround: http://www.jboss.com/index.html?module=bbop=viewtopict=89832 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971542#3971542 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Oracle exception deploying process
i didn't see this problem before. did you specify the dialect correctly ? do you know there is a different dialect for oracle 9 ? it is quite clearly explained in this other forum discussion :-) http://www.vkfz.com/hibernate-sequence-t64969.htm or maybe it's related to this unresolved issue in the hibernate forums: http://forums.hibernate.org/viewtopic.php?p=2183728sid=ba9ac2625930b7de3c07241179ca5dab View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971544#3971544 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Oracle exception deploying process
if you can post more information in the hibernate topic, that might help them to analyse the problem further. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971545#3971545 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Look up Problem using JBoss 4.0.4.GA with EJB3.0
Hi ! do you have an EJB3 app ? Sounds like this (I am using JBoss 4.0.4.GA with EJB3.0). EJB3 does not contain home interfaces, so I wonder how you managed to create AttributeServiceLocalHome ;-). Hope this helps View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971546#3971546 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - forum without portal ?
Hello I would like to know if it is possible to use the phph-bb like forum without jboss portal. I only need a forum application and a portlet engine seems too bloated for what I want to achieve... I guess the answer is 'no', I am just checking :/ Thanks Alex View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971548#3971548 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971548 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB 3 Application Deployment Error - JBoss 4.0.4
Good Morning everyone! I am experiencing an issue here while deploying an EJB3 + Seam + JSF application. During deployment i receive a NullPointerException on the org.jboss.ejb3.Ejb3Deployment.getPersistenceUnitDeployment method. I am using Jboss AS 4.0.4 GA Patch 1. A snippet from the stack trace follows. Does anyone know how can i solve this? Thanks a lot! Thiago Souza | 10:16:54,673 INFO [Environment] Hibernate 3.2 cr2 | 10:16:54,688 INFO [Environment] hibernate.properties not found | 10:16:54,688 INFO [Environment] Bytecode provider name : javassist | 10:16:54,720 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling | 10:16:55,047 INFO [Ejb3Configuration] found EJB3 Entity bean: br.com.marquise.balanca.model.beans.Usuario | 10:16:55,047 INFO [Ejb3Configuration] found EJB3 Entity bean: br.com.marquise.balanca.model.beans.Permissao | 10:16:55,063 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. | 10:16:55,235 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml | 10:16:55,235 INFO [Ejb3Configuration] [PersistenceUnit: entityManager] no META-INF/orm.xml found | 10:16:55,391 INFO [AnnotationBinder] Binding entity from annotated class: br.com.marquise.balanca.model.beans.Usuario | 10:16:56,078 INFO [EntityBinder] Bind entity br.com.marquise.balanca.model.beans.Usuario on table USUARIOS | 10:16:56,093 WARN [AnnotationBinder] Hibernate does not support SequenceGenerator.initialValue() | 10:16:56,328 INFO [AnnotationBinder] Binding entity from annotated class: br.com.marquise.balanca.model.beans.Permissao | 10:16:56,328 INFO [EntityBinder] Bind entity br.com.marquise.balanca.model.beans.Permissao on table PERMISSOES | 10:16:56,515 INFO [CollectionBinder] Mapping collection: br.com.marquise.balanca.model.beans.Usuario.permissoes - PERMISSOES | 10:16:56,655 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 10:16:56,671 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 10:16:57,436 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production | With the Partitioning, OLAP and Data Mining options | 10:16:57,436 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.1.0.5.0 | 10:16:57,530 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle9Dialect | 10:16:57,592 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory | 10:16:57,592 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup | 10:16:57,608 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup | 10:16:57,608 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled | 10:16:57,608 INFO [SettingsFactory] Automatic session close at end of transaction: disabled | 10:16:57,608 INFO [SettingsFactory] JDBC batch size: 15 | 10:16:57,608 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled | 10:16:57,608 INFO [SettingsFactory] Scrollable result sets: enabled | 10:16:57,608 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled | 10:16:57,608 INFO [SettingsFactory] Connection release mode: auto | 10:16:57,608 INFO [SettingsFactory] Default batch fetch size: 1 | 10:16:57,608 INFO [SettingsFactory] Generate SQL with comments: disabled | 10:16:57,608 INFO [SettingsFactory] Order SQL updates by primary key: disabled | 10:16:57,608 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory | 10:16:57,623 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory | 10:16:57,623 INFO [SettingsFactory] Query language substitutions: {} | 10:16:57,623 INFO [SettingsFactory] Second-level cache: enabled | 10:16:57,623 INFO [SettingsFactory] Query cache: disabled | 10:16:57,623 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider | 10:16:57,623 INFO [SettingsFactory] Optimize cache for minimal puts: disabled | 10:16:57,623 INFO [SettingsFactory] Structured second-level cache entries: disabled | 10:16:57,639 INFO [SettingsFactory] Echoing all SQL to stdout | 10:16:57,639 INFO [SettingsFactory] Statistics: disabled | 10:16:57,639 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled | 10:16:57,639 INFO [SettingsFactory] Default entity-mode: pojo | 10:16:57,748 INFO [SessionFactoryImpl] building session factory | 10:16:58,654 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured | 10:16:58,654 INFO [NamingHelper] JNDI InitialContext
[jboss-user] [JBoss Seam] - Re: Exception Handling (w/ interceptor)
Oops - stepped in it again! Thanks for your patience. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971549#3971549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Cannot see HelloWorldJSPPortlet portlet on the default t
Peter, Thanks for the response. Actually i am using Portal 2.2 version, but i think that should not matter. I have done the following to atleast overcome the problem. I have modified the helloworld-object.xml file in the parent-ref from default.default to default. Included HelloWorld on a different page. It seems to work. But i not quiet this right thing or not. I am still playing around and learning. I guess i will be a frequent visitor to this forum in coming days. But just in-case all the config files have to be hand-coded ? or there is way you can automate them. thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971551#3971551 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @Basic(optional=true) vs @Column(nullable=true)
Hi, yes and no! With @Basic(optional=true) the persistence provider checks if a field is nullable or not. For example if false is selected you will get an error by the persitence provider if you forget to set a field. The @Column(nullable=true) is an information that the persistence provider uses when he creates physical database objects. It's up to you to select if the persistence provider and/or the database should check this. Hope that helps you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971552#3971552 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Problem when I tried to build jboss-forums-2.2.1-SP3-src
I downloaded it from portal download page http://labs.jboss.com/portal/jbossportal/download/index.html. Is this what you mean by jboss portal branch? Thanks! Siyang View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971553#3971553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Listen to different IP address in URL?
My AS (JBoss 4.0.3SP1) sits in a private network (192.168.0.x) behind a firewall; port 8080 forward to the AS. I can get to its web service from the outside using any name in the URL, like http://foo:8080/ , but not using the IP address of the firewall. (Of course foo must resolve to the IP address of the firewall, e.g. via an entry in /etc/hosts.) I guess the web server simply discards the request when the host part of the URL is an IP address, but not its own. Is there a way to turn this off, i.e. to accept any http request coming in, no matter what the host part in the URL is? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971555#3971555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: org.jboss.varia.scheduler.Schedulable
I am having this exact same issue. I assume I am missing a JAR file. Does anyone have any additional information? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971554#3971554 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Starting IDE version 2 beta
When I unzipped the distribution file, it only contained folders for features and plugins. It did NOT contain an Eclipse application. Is this an error? If not, how do I start the IDE? Thanks Charlie Kelly View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971556#3971556 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - looking up from JBoss to a remote application over IIOP
I have some trouble on porting my applications from Sun One to Jboss . My EJB application plays as a client , another application running on a JVM outside of EJB container plays as a server. Classes implementing the server application compile with their remote interfaces, building stubs for remote calling over IIOP . These classes bind on JNDI. JNDI service runs outside the application server, using ?orbd? as supported by JDK. Using Sun One , I create initial context with Sun cosnaming properties on both server side (to bind classes) and client side (in EJB to look up remote classes). And it runs. Here are code samples Server: anonymous wrote : String urlOrbd = iiop://servername:3800 | Properties env = new Properties(); | env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.cosnaming.CNCtxFactory); | env.put(Context.PROVIDER_URL, urlOrbd); | Context initialNamingContext = new InitialContext(env); | String bindServerClass = (myService); | Class myClass = Class.forName(MyServerClass); | Object obj = myClass.newInstance(); | initialNamingContext.rebind(bindServerClass, obj); Client (EJB running in application server container): anonymous wrote : Context ic; | Object objref; | | Properties env = new Properties(); | String serverUrl = iiop://servername:3800 | Properties env = new Properties(); | env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.cosnaming.CNCtxFactory); | env.put(Context.PROVIDER_URL, serverUrl); | | MyServerClassRemInt remote; | String service = myService ; | ic = new InitialContext(env); | objref = ic.lookup(servizio); | | remote =( MyServerClassRemInt) PortableRemoteObject.narrow(objref, MyServerClassRemInt.class ); | remote.myMethod(); | | Now I have to deploy my EJB application on JBoss 4.0.4 GA. Is there someone who can tell me how I have to bind my server classes and lookup for them from my EJB client ? I tried using ?com.sun.jndi.cosnaming.CNCtxFactory? initial context property for both binding and lookup and I get a ?NameNotFoundException? on looking up the initial context. I tried using ?com.sun.jndi.cosnaming.CNCtxFactory? initial context property for binding and ?org.jnp.interfaces.NamingContextFactory? initial context property for lookup and I get a ?InvalidClassException?, the class I look up for is invalid for deserialization. I tried using ?org.jnp.interfaces.NamingContextFactory? initial context property for both binding and lookup and I get a ?InvalidClassException?, the class I look up for is invalid for deserialization. I tried using ?org.jnp.interfaces.NamingContextFactory? initial context property for binding and ?com.sun.jndi.cosnaming.CNCtxFactory? initial context property for lookup and I get a ?NameNotFoundException? on looking up the initial context. I tried any option about syntax about defining name or looking up for them. It never runs. I?ll be glad for any suggestion or reference. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971557#3971557 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: forum without portal ?
Alex- Our next release of the new forum application which is designed using JSF, you will be able to run it as a standalone web application outside of the portal environment. Here are the details on that: http://jira.jboss.com/jira/browse/JBFORUMS Thanks Sohil View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971558#3971558 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UTF-8 problem within JSF
h:dataTable value=#{currentOrder.orderLines} var=orderLine h:column f:facet name=header h:outputText value=#{msgs.cartArticleColumn} / /f:facet h:outputText value=#{orderLine.item.name} / A Bean property View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971559#3971559 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971559 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: forum without portal ?
Hello The answer is : not yet. It means that portal forums available now cannot be deployed as a standalone app. However, soon there will be a release of JBoss Forums 1.0.0Alpha which can be run as a standalone because their view is based on JSF. But few features available while deploying on portal will not be available on standalone for some time. Full compatibility with JBoss Portal is top priority and standalone is an additional thing. So, we will take care about those missing features later. Best regards Ryszard Kozmik JBoss Forums JBoss Labs Team View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971560#3971560 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971560 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Cannot start JBoss4 Server from IDE2
Simply click on the item and it's properties should show up in the properties view. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971561#3971561 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971561 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ..:: Questions about Seam design!!!
Hiya , Yes, traditional tiers are a bit mixed. You can have a navigation tier in a finder that is data tier, like in booking example. I am thinking much and i think that the architectural new solution is Bijection based I am writing my finders and i inject in them presentation objects. So my finders are clean and they still are data tier And i have Presentation objects and pure business objects, like always. So you can reuse your data tier components, place them in a separate project that generates only a .jar ( i am doing so ). You could create a complete .ear that will be a data tier object server, but this solution should be well evaluated. (Sorry for my English) good work, Nicola View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971563#3971563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: forum without portal ?
Thanks a lot for your fast responses Regards Alex View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971562#3971562 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JbossQL and m.createQuery(.. OFFSET 5 LIMIT 23)
nobody any idea? i think it's not a special need.. all i want to do is a select with joins and limit... If i'm asking stupid thing please let me know! regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971564#3971564 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: ejb proxies only contain nodes at deploy time
We've found the source to this problem! It only appears because we let remoting traffic use http, port 80. jboss-service.xml: attribute name=InvokerLocator | servlet://${jboss.bind.address}:80/servlet-invoker/ServerInvokerServlet/attribute | attribute name=Configuration | When changing back to socket transport everything works fine. The problem is that we can't open up other ports easily in the firewalls between clients and servers. Is this a feature or a bug? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971567#3971567 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971567 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception Handling (w/ interceptor)
I did get this working, but I had to back out the Seam jars from CVS, as I couldn't figure out how to avoid hitting the Seam ExceptionInterceptor. I'm sure there's a simple way to define my interceptor to occur just before that one, but at the moment I'm content with Seam 1.0.1. One question - how did the Seam ExceptionInterceptor class bypass my catch clause? In the save() method that I included above, the catch clause was never reached if I used the 9/10/2006 CVS jars. Instead, the Seam exception interceptor kicked in, even if I changed my catch to Throwable. That is, I was single stepping through the code, and once I threw the null pointer with user.toString(), it went straight to your interceptor! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971565#3971565 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971565 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: EJB3 Tutorial for JBoss Eclipse IDE?
I would also like someone to post a guide on how to develop an EJB3 project using the JBoss-Eclipse-IDE 1.6. I have managed to create a project (set up the JBoss server, etc..) but I do not know how to set up the beans (deploy the simple Stateless and Entity beans) in order to test them using a small java app. Any help would be appreciated. I have a very simple application: - one entity bean - one stateless bean (which can create / retrieve the entity bean) - one simple class to use the stateless bean and test its methods View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971566#3971566 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - JBoss 4.0.4.GA and logging
Hi, what is the proper way to setup application logging? I have EJB3/Web application with init listener that initializes log4j with my configuration (stored in application). The logging from my application works fine, but JBoss logging stops working (just after I initialize log4j in my listener). How can I configure my application logging without modifying the JBoss/server/default/config/log4j.xml? (I use the same procedure as is described in JBoss at Work: A Practical Guide) Thanks Jan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971569#3971569 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)
Have on my portal two same jbpm portlets. when I run the portlet I have a fonction which give me back the processId : System.out.println(PROCESS INSTANCE ID:+ pi.getId());. Executing the both portlet in the same time I have the same ID : anonymous wrote : | PROCESS INSTANCE ID:0 So I think that the portlet create a specifique context which isolates the contexts. So perhaps there is a fonction which put in the data base the Id of the diverse Process and permit to have a unique ID among the portlets. and consequently have the tasks of the JBPM engine and not just of one portlet. In my portlet I put a jbpm librairies. Must I do a specific thing in order to have the same context between the portlet. I use now liferay portal. Must I copy in a specific place the jbpm files? Until now I work jsut on one portlet in order to understand well the functionment. I don't know all but I can do somethings. thank you for you help Antitrust1982 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971568#3971568 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to hide a portlet/pages that user doesn't have view
Thanks thomas. Hiding portlet in a page works fine now after changing window_access_right to hide. However I still have problem to hide page item in Catalog portlet(Menu portlet). More help please! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971572#3971572 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971572 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Deploy an application in a diferent port
hi, We have a running jboss and we'd like to deploy an application in a diferent port. I mean, this application should only be acceded through this port and the already deployed applications should not be available in this port. Is that possible? regards!!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971571#3971571 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Cannot see HelloWorldJSPPortlet portlet on the default t
The current downloadable for the hello world portlet is based on 2.4 and the configuration files have changed since 2.2. My recommendation is to use 2.4 since you are just now starting out. If you really want to use 2.2, look in the docs to see how to configure the portlet for 2.2. Also, the 2.4 docs have an example of converting a portlet from 2.2 to 2.4, you could infer the reverse direction. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971573#3971573 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - java.lang.NoClassDefFoundError: Server/JBoss
hi, i've installed the jboss eclipse ide using the update manager and set up up the server as shown in the tutorial, but when I try to start the server I get a java.lang.NoClassDefFoundError: Server/JBoss message in the console. I'm working with eclipse 3.2, jboss 4.0.4 and jre 1.5.08. the application server directory is set correctly. otherwise eclipse would complain anyway. starting the server manually from the windows command line works pretty well. any ideas what's wrong ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971570#3971570 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - List of enum types is possible?
Hi all! I'd like to know if it's possible to have an entity with a field that is a list of a enumeration type. I've been using entities with enumerated fields but all of theme has a multiplicity of one. When I try to deploy I get this error: | Reason: org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapp | ing.Column(usos)] | My field is | @Enumerated(EnumType.STRING) | private ListUsoAeropuerto usos; | This is the UsoAeropuerto class | ... | public enum UsoAeropuerto { | DEPORTIVO, | CIVIL, | MILITAR | } | | Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971575#3971575 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Portlets + JSF + Facelets problem: Exception in P
I finally got a different portal manager (a commercial one called NPS) working. Here the portlet throws the same exception. It has nothing to do with the JBoss Portal manager. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971574#3971574 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971574 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WS 181 and my own security module - call problems
Hi, I have a similar situation than the one described above. | @Stateless | @Remote(Test.class) | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | @SecurityDomain(java:/jaas/MyDomain) | public class TestService implements Test { | | @WebMethod | public String test() { | return test; | } | } | I'm trying to protect my 181 SLSB WS by HTTP BASIC authentication but using my custom login module. If I use the @SecurityDomain(MyDomain) annotation with MyDomain as defined in login-config.xml, each client call to any of the @WebMethod methods causes the following exception: | 16:01:07,478 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files | java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313) | at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186) | However, the MyDomain configuration does not include a reference to the UsersRolesLoginModule. Also, the login() method in MyLoginModule (as defined in MyDomain in login-config.xml) is never called. So I feel like it's not actually using MyDomain as security domain, but something else instead (JBossWS)? Any ideas? Thanks, Georges View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971577#3971577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: AJAX4JSF: Problems with validation.
I'm not sure, since I am also just starting with Ajax4Jsf... But wouldn't it work for you to just include the first selectOneMenu in a region with renderRegionOnly set to false so that on submit only this region is submitted but components outside the region can also be updated in the response? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971578#3971578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - i18n validation message during test
Hello, I'm trying to add i18n messages to booking example, something like: @NotNull(message=#{messages['booking.credit.card.not.null']}) @Length(min=16, max=16, message=#{messages['booking.credit.card.number.wrong.length']}) @Pattern(regex=^\\d*$, message=#{messages['booking.credit.card.number.invalid']}) public String getCreditCard() { return creditCard; } It's work fine when I work with a navigator. But during the test, BookingTest.renderResponse fails. The string returned by ( (FacesMessage) messages.next() ).getSummary() is #{messages['booking.credit.card.not.null']} and not the pattern associated with the key booking.credit.card.not.null. Is it the expected behavior? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971582#3971582 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971582 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?
dear all, I end up using seam remoting method. The following is an example of what i did. Cheers. java -cp . Reverse http://localhost:8080/seam-helloworld/seam/remoting/execute call component=\helloAction\ method=\sayHello\ id=\0\hjhj Reverse class: == import java.io.*; import java.net.*; public class Reverse { public static void main(String[] args) throws Exception { if (args.length != 2) { System.err.println(Usage: java Reverse + http://location of your servlet/script + string_to_reverse); System.exit(1); } String stringToReverse = args[1]; URL url = new URL(args[0]); URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.setRequestProperty(Content-Type,text/xml); connection.setDoInput(true); OutputStreamWriter out = new OutputStreamWriter( connection.getOutputStream()); out.write(stringToReverse); out.close(); BufferedReader in = new BufferedReader( new InputStreamReader( connection.getInputStream())); String decodedString; while ((decodedString = in.readLine()) != null) { System.out.println(decodedString); } in.close(); } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971583#3971583 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?
some text was cut off in the reply. If you need do combine them without any carriage return. You can also see this similar trace when you run the remoting seam example. java -cp . Reverse http://localhost:8080/seam-helloworld/seam/remoting/execute call component=\helloAction\ method=\sayHello\ id=\0\hjhj View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971586#3971586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?
i guess the text is still cutoff, if anybody need them, please capture the trace from running remoting example. Cheers. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971587#3971587 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - CommandExecutorThread not started in Jbpm3.1, Jboss4.0.3SP1,
I'm very new to Jbpm. After impressed by Jbpm starter kit, I decide to try manually install Jbpm into Jboss4.0.3SP1 with MySQL5. Everything seems to be okay. No error in the console. But I notice a different from Jbpm in the starter kit. There're no CommandExecutorThread, DbPersistenceServiceFactory, SchedulerThread running every 5 seconds. I follow the following steps to deploy Jbpm. 1) run jbpm-db/build/mysql/scripts/mysql.create.sql 2) deploy jbpm-ds.xml to connect to mysql, and put mysql jdbc driver into $jboss_home/server/default/lib 3) deploy jbpm.sar and point the config to jbpm datasource. 4) deploy process by using ant task 5) deploy a simple war to test. I can successfully get the current JbpmContext and findLatestProcessDefinitions. Is the CommandExecutorThread required? and How to configure it to run? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971589#3971589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Binding multiple instances of jboss on seperate IP and s
Yes that's to let jboss listen to that IP for requestst. But my question relates to the applications running in a jboss JVM and they all connect to their services locally with localhost. So I have 3 apps running on 3 differend IP's on 1 server and they all call localhost to get to their service, but the localhost is standard bound to 127.0.0.1. That's ok for the linux / windows distro, but inside the JVM it should be bound to their application specific IP addresses. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971591#3971591 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pageflow - ClassCastException: org.jbpm.graph.node.Start
I already changed the exception message yesterday :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971592#3971592 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ..:: Questions about Seam design!!!
I don't know why everyone is saying you can't use DAOs you can absolutely use DAOs if you want! There is no problem at all, just write an @Stateless bean with @Name(customerDao) and inject it into your action handler. It's just that you don't really need DAOs these days - they smell of overengineering View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971593#3971593 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Is the header a portlet?
I knew I should not have wiped out the portal that I used to help with this problem. But that just means I have to get you to do your work for you (rather than me doing it for you). For items 1 and 2, do this. Display the page that has your portlet on the navigation area in your browser and then have the browser display the html source. Find your portlet within there and look at the surrounding div's and the class or id on those divs. Hopefully the class or id will be different from the navigation portlet, in which case you can modify the style sheet to reformat the div containing your portlet. (I think that even if the div class for your portlet and the navigation portlet are the same that there is still a way to specify a style specific to your portlet. My CSS book is at home or else I might just look up how to do this.) For item #3, I am surprised that the options are showing up. For the portlet I tried none of the edit/max/min icons were visible. Did you set all three renderes to empty? If you used the *-object.xml file, did you check the spelling of the renderers? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971594#3971594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user