[jboss-user] [EJB 3.0] - Deploying EAR and WAR separately
I have some EJBs in an EAR file that I want to use in a separately deployed WAR file. I figured making them use the same unified class loader through jboss-app.xml/jboss-web.xml would solve this problem, but I'm still getting ClassNotFoundExceptions when I attempt to load the appropriate classes from the WAR. When deploying them in the same EAR, everything works fine. Could someone point out the appropriate way to do this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173601#4173601 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4173601 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Entity bean cascade design issue
anonymous wrote : I was searching info about ON DELETE SET NULL equivalent in EJB. All I found is that (probably) this is not implemented. Is this true? For some incomprehensible reason, Hibernate devs consider this functionality bad design, even though RDMSs have supported it for a long time now. I've never heard an explanation for this, but in practice they've left us hanging. This approach was the best substitute I could think of. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4152757#4152757 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4152757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [J2EE Design Patterns] - Re: EJB3 and JBoss client java.io.InvalidClassException
Why are you using SerialVersionUIDs in the first place? I've done just fine without. Oh, and remote interfaces don't need to implement Serializable anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129506#4129506 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129506 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Criteria queries and collection valued properties
Suppose I have a Set of Integers as a collection valued property in an entity class, and I want to include it in the results (projection) of a criteria query, how do I do it? The Hibernate documentation only explains how to do it for associations. If I try to map it to an alias, I get a MappingException saying collection was not an association: Trying to add it directly as a projection with Projections.property() only gives me the root entity's ID for some reason. Regardless of whether I set the fetch mode for the collection property to JOIN or not, Hibernate refuses to fetch it in the query. Why is this happening? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113314#4113314 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113314 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to retrieve foreign key instead of the object (want
anonymous wrote : | int modelId = u.getModel().getId(); // causes read of Model table! | | Issue - this will cause a read of the model row from the DB (won't it, as in lazy loading will perform a JIT read) | No it won't. You obviously haven't tried it, or you wouldn't be asking about it. The ID field of the association is special in the way that reading it will NOT trigger lazy loading. Any other operation on the lazy object, however, will. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4110463#4110463 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110463 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR not initializing properly - java.lang.ClassNotFoundE
Seems to me like you are not packaging the necessary classes in your .ear file. Either that, or you packaged stuff in the EJB jar that the WAR needs or vice versa. If this doesn't help, then please paste the file list of your EAR, EJB-jar and WAR and their manifests. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109558#4109558 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators
You can't have associations to the root class if it's just a MappedSuperClass -- it has to be an entity. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109493#4109493 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using @Id and @Enumerated in the same column does not work
Hibernate creates a primary key column of type bytea instead of integer if I use @Id and @Enumerated together in the same field. I guess I should file a JIRA issue? Oh yeah, I'm using Postgresql 8.2.5. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109336#4109336 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109336 ___ 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: When JbossAs will update Hibernate?
The structural changes in Hibernate between 3.2.x - 3.3.x are potentially dangerous to existing apps. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108073#4108073 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Query won't parse, why?
I have the following named query: | @NamedQuery(name = SalesOrderExtraChargeLine.QUERY_UNBILLED_DATERANGE, query = | SELECT el FROM SalesOrderExtraChargeLine el WHERE el.order.orderDate = :startDate AND el.order.orderDate = :endDate AND el.invoiceLines IS EMPTY AND NOT EXISTS (SELECT pl FROM SalesOrderProductLine pl WHERE pl.order = el.order AND pl.status :deliveredStatus)) | When I deploy the app, I get the following error: | 17:57:06,287 WARN [ServiceController] Problem starting service persistence.units:ear=Etikettu.ear,jar=Etikettu-EJB.jar,unitName=etikettu | java.lang.NullPointerException | at org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements(FromClause.java:120) | at org.hibernate.hql.ast.tree.FromClause.getFromElement(FromClause.java:107) | at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:81) | at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70) | at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:255) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3056) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2945) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:688) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.collectionFunctionOrSubselect(HqlSqlBaseWalker.java:4253) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3968) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1762) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1737) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1690) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:776) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:577) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) | at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) | at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) | at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) | at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77) | ... | SalesOrderProductLine and SalesOrderExtraChargeLine are both inherited from the same base entity (SalesOrderLine) using JOINED inheritance. What am I doing wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108154#4108154 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108154 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators
The problem is that I have an Employee object associated with every Document. When the Employee goes away, the link has to be severed. Being able to do that implicitly (with cascade=CascadeType.REMOVE) would be the ideal solution. Right now I have a hack involving a custom annotation, parameter injection and an UPDATE query that fires whenever an Employee is deleted. Being able to have an association to Document directly would be a much cleaner solution. Document doesn't have its own table so it doesn't need a PK of its own. It'd be great if I could have getId() defined in Document, and override it in subclasses and set @GeneratedValue along with any specific generators there. I don't see any theoretical problems with that approach. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108249#4108249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators
Because I need to have different sequences in subclasses. The root class is Document, and subclasses are SalesInvoice, OrderConfirmation etc that need to have their own numbering schemes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107654#4107654 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: sequence generator and bigDecimal
Do you really expect to have more than 2^63 cases ever? Or why else would you not use 64 bit integers (long) for keys? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107570#4107570 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Table per class with different ID generators
Is it possible to have one abstract class as a root class in the table-per-class inheritance strategy, but have different ID generators for each of the subclasses? I need to have one-to-many associations to the root class, which is not possible unless it's an entity class. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107540#4107540 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Compiling JBossAS from SVN
I checked out the JBossAS trunk from SVN and then tried to compile it by going to the build directory and running build.sh, but it seems like the thirdparty directory doesn't get populated with the appropriate libraries. What am I doing wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088247#4088247 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088247 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Remote Not bound -- Help me !
Why are you using the data source directly? Not that it's the cause of your problem, but IMHO EJB3 Persistence should be used instead unless you have a good reason not to. Where did you deploy your data source? Could you show its deployment descriptor? Also, when you look up beans remotely, you need to add the application name to the path, like MyApp/MyBean/remote. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4087268#4087268 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Please help me !!
1. Assuming that your client is a standalone application, the project should not have been created as an EJB Project, but a normal Java project. 2. I tried exporting an EJB Jar from my own project and it worked fine. If you could make a zip file of your project, I could take a look and see if there are problems with it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080155#4080155 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit
anonymous wrote : Other strange thing that I discovered is that the /lib/pu.jar explicitly needs to be definded in the application.xml file else the persistence-unit won't be initialized. Other dependencies in this directory get found. Is this also a bug? No. If you just put your jar in the /lib directory, it doesn't get processed for deployment purposes. All deployables must be listed in application.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4079758#4079758 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Please help me !!
1. Speak English 2. Explain the problem clearly -- just saying This doesn't work!!1!!1! isn't helping View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4079759#4079759 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: URL parameter
anonymous wrote : So how add id = #{msg.id} s:link view=/smsInfo.xhtml value=info | f:param name=id value=#{msg.id}/ | /s:link View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4077326#4077326 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: URL parameter
anonymous wrote : thanks I arrive to pass id in parameter. | | But i don't arrive to get it in java, always null value :( | You probably meant to use some other word here than arrive, but I can't figure it out. Anyway, you need this in the component you use on the destination page: | ... | @RequestParameter | private Integer id; | ... | Use whatever type is appropriate in place of Integer. Worked for me. Alternatively, try reading up on page parameters in the Seam documentation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4077586#4077586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When to use SessionBeans and when Pojos?
You only have to use @Remote when you plan to make the session bean available to clients outside the container JVM (for a client application). There are a number of advantages to using EJB3 session beans instead of POJOs. SFSB replication across the cluster is handled by the container, as is persistence context injection and transaction demarcation. As I recall, the Seam documentation says that SFSB replication across the cluster is more efficient than that of Seam POJO components. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4077104#4077104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ajax4JSF mediaOutput tag and Seam
I'm trying to display thumbnails of images I have on the database using a4j:mediaoutput, like this: a4j:mediaOutput element=img mimeType=image/jpeg createContent=#{download.sendThumbnail} value=#{screenshot.id} / The download component looks like this: | @Name(download) | @Stateless | public class DownloadBean implements Download { | | @PersistenceContext | private EntityManager em; | | @Override | public void sendImage(OutputStream os, Object screenshotId) throws IOException { | Screenshot ss = em.find(Screenshot.class, screenshotId); | if (ss != null) | os.write(ss.getImageData()); | } | | @Override | public void sendThumbnail(OutputStream os, Object screenshotId) throws IOException { | Screenshot ss = em.find(Screenshot.class, screenshotId); | if (ss != null) | os.write(ss.getThumbnailData()); | } | | } When loading the page, however, I get the following exception in the server console: | 00:49:02,174 ERROR [[default]] Servlet.service() for servlet default threw exception | javax.faces.el.EvaluationException: /entry.xhtml @170,79 createContent=#{download.sendThumbnail}: Target Unreachable, identifier 'download' resolved to null | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73) | at org.ajax4jsf.framework.resource.UserResource.send(UserResource.java:110) | at org.ajax4jsf.framework.resource.ResourceLifecycle.send(ResourceLifecycle.java:86) | at org.ajax4jsf.framework.resource.InternetResourceService.sendResource(InternetResourceService.java:256) | at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:240) | at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:141) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:261) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:619) | So how can it possibly be null? The download component is loaded ok, since it shows up in the Seam component list during deploy. What am I doing wrong? Could this be a configuration problem? Using JBoss 4.2.1GA, Seam CVS and Ajax4JSF v1.1.1. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076051#4076051 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam
Hm, you are probably referring to this: http://jira.jboss.org/jira/browse/AJSF-54. Forum link: http://www.jboss.com/index.html?module=bbop=viewtopict=107203 I gather the only workaround for now is to define download as a managed bean in faces-config.xml? This should work for me since I don't (at the moment) use any Seam components from this one. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076062#4076062 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam
Tried to use a managed bean but hit a snag...where to get a reference to the persistence context? If this was JEE5, all I had to do was to have the container inject it to my managed bean, but since it's not, I have nothing. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076069#4076069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam
1. I'm not using a seam-managed persistence context 2. Component.getInstance() would just throw an exception saying that there is no application context active View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076072#4076072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam
Ok, kinda solved this with the ugliest imaginable solution: Binding the entity manager factory to JNDI and then looking it up in said managed bean. Please, offer me a plausible alternative :( This solution works, but introduces a vendor dependency (the JNDI structure being different for each vendor). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076079#4076079 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076079 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam
All in all, using servlets instead of a4j:mediaOutput is starting to look like a better solution -- I get to control what kind of URLs I use (those generated by a4j:mediaOutput are among the ugliest ever) and what the headers look like. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4076082#4076082 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: beware of Common StringUtils.remove(String, char
What the heck are you trying to tell? What's this about? Are you on drugs? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075308#4075308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How do folks typically handle initial vs. redeployment a
We're a small company and as such don't have any special DBA personnel. Therefore I vouch for auto = update during development and initial deployment, and then switch to validation (no schema updates). I don't see anything wrong with that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4075302#4075302 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam binary content downloads
Okay, it seems to use a servlet that looks up an application scoped component to get hold of an EntityManager instance. This would seem like a better solution than a JNDI lookup that I was doing in my servlet. The s:download or whatever would still be greatly appreaciated. The Wiki example seems fairly outdated (look at web.xml). Should I create a JIRA issue on that, or is Christian planning to fix it by 2.0.0GA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074534#4074534 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam binary content downloads
anonymous wrote : And I'm not touching shit like web.xml until I have to, ie. if something stops working because of it. I don't particularly care what's in it. I appreciate your work, and if I sounded impatient, that was not my intention. I just don't know what's going on inside JBoss, and I was merely concerned for my fellow Seam users. When I was learning Seam, I found it very confusing that different examples had wildly differing configurations, some directly in conflict with what the documentation said. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074566#4074566 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logger object nulled after passivation
I'm no Seam dev, but this looks like a bug to me. Log injection should happen during post-activate. Is Seam re-injecting any other components then? Perhaps you should create an issue in JIRA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074204#4074204 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam binary content downloads
There may be an obvious solution to this that I've completely missed, but here goes: What's the best way to allow the user to download arbitrary generated binary content (forum file attachments)? I was thinking of a servlet based solution, but getting hold of an entity manager instance in a pre-JEE5 container is kinda cumbersome. Perhaps there is a simpler solution, maybe involving Seam (and its resource servlet)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074207#4074207 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1
Alright, I picked up the latest CVS version and Session injection indeed seems to work now. However, while testing I also noted that getDelegate() from a proxied EntityManager (@PersistenceContext(type = EXTENDED)) throws a NPE. Is this supposed to work? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073709#4073709 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1
Created. http://jira.jboss.org/jira/browse/JBSEAM-1798 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073734#4073734 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1
JIRA issue created: http://jira.jboss.org/jira/browse/JBSEAM-1787 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073387#4073387 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073387 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PersistenceContext injection in Seam 2.0beta1
Trying to inject a Hibernate Session with @PersistenceContext fails: anonymous wrote : | java.lang.ClassCastException: $Proxy1497 cannot be cast to javax.persistence.EntityManager The reason for this was pretty obvious once I took a look at the code of org.jboss.seam.intercept.SessionBeanInterceptor: | ... | //wrap any @PersistenceContext attributes in our proxy | for ( BijectedAttribute ba: getComponent().getPersistenceContextAttributes() ) | { | EntityManager entityManager = (EntityManager) ba.get(bean); | if ( ! (entityManager instanceof EntityManagerProxy ) ) | { |ba.set( bean, new EntityManagerProxy(entityManager) ); | } | } | ... | Apparently it doesn't even look at the field type, and always assumes that I want to inject an EntityManager. Even if I do inject an EntityManager, then #getDelegate() won't give me a Session, as it would without Seam. How the heck do I directly inject a Hibernate Session?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073292#4073292 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1
It works perfectly well without the Seam interceptors messing with it. Try it and you'll see. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073296#4073296 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1
anonymous wrote : @PersistenceContext is part of JPA, why would it be able to inject a Hibernate Session. Further proof here: http://docs.jboss.com/ejb3/app-server/reference/build/reference/en/html/hibernate.html anonymous wrote : | 4.2. Injection Hibernate Session and SessionFactory | | You can inject a org.hibernate.Session and org.hibernate.SessionFactory directly into your EJBs just as you can do with EntityManagers and EntityManagerFactorys. The behavior of a Session is just the same as the behavior of an injected EntityManager. The application server controls the lifecycle of the Session so that you do not have to open, flush, or close the session. Extended persistence contexts also work with injected Hibernate Sessions. | | import org.hibernate.Session; | import org.hibernate.SessionFactory; | | @Stateful public class MyStatefulBean ... { |@PersistenceContext(unitName=crm) Session session1; |@PersistenceContext(unitName=crm2, type=EXTENDED) Session extendedpc; |@PersistenceUnit(unitName=crm) SessionFactory factory; | | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073300#4073300 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073300 ___ 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: Accessing collections from queries
And if I only want a sum of deliveries before a certain date? Referring to the map key has been the crux of the problem! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070852#4070852 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing collections from queries
Please help, I've asked a similar question several times and it's never been answered! Suppose I have an entity like: @Entity | class Delivery { | private long id; | private MapDate, Integer amounts; | | @Id @GeneratedValue | public long getId() { | return id; | } | | public void setId(long id) { | this.id = id; | } | | @CollectionOfElements | public MapDate, Integer getAmounts() { | return amounts; | } | | public void setAmounts(MapDate, Integer amounts) { | this.amounts = amounts; | } | | } How can I access the amounts property in queries? I'd like to create an aggregate query that gives me a sum of delivered amounts per delivery. How do I do that? How can I even retrieve the value of amounts from a Criteria Query using a Projection? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070745#4070745 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: facelets and seam2
I never configured the content-type. Where should it be configured? In my template I use | f:view contentType=text/html | ... | /f:view | Because otherwise the content-type is set to application/xhtml+xml, which causes some javascript to not function, and sets the background color to white, regardless of what I defined in CSS. Whoever decided to set the default content type that way deserves a good whipping. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066469#4066469 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - JAAS configuration for remote EJB client
I have an EJB client app and an EAR on the server, and the following snippet added to the server's login-config.xml: | application-policy name = myapp |authentication | login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule | flag = required | module-option name = dsJndiNamejava:/MyappDS/module-option | module-option name = principalsQuerySELECT password FROM employee WHERE id=?/module-option | module-option name = rolesQuerySELECT accessLevel, 'Roles' FROM employee WHERE id=?/module-option | /login-module |/authentication | /application-policy | This works, but I don't like having to modify the server's configuration just to deploy an application. How can I accomplish the same thing with EAR level configuration? All the FAQs and examples only seem to cater for web apps. I don't know what to do. I'm using JBoss 4.2.1GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065707#4065707 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065707 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: facelets and seam2
What's the Content-Type header returned by the server for your Seam pages? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065401#4065401 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - getting rid of the .seam extension
Is it possible to configure web.xml so that I could use the .xhtml extension directly instead of .seam? The Seam Blog example uses /seam/* which I like even less. At the moment, if I use the .xhtml extension directly, I just get the raw contents of the file. Another related problem is getting my rss.xml working without having to resort to the /seam/* servlet mapping. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064258#4064258 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064258 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting rid of the .seam extension
My problem has nothing to do with MIME types. Please read the problem description more carefully. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064263#4064263 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting rid of the .seam extension
Replied too quickly it seems. Changing the URL pattern to .xhtml gets rid of the .seam extension, but doesn't solve the rss problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064264#4064264 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064264 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Exception in calling an Entity Bean from Servlet
Why are you using Toplink Essentials instead of Hibernate? There are no advantages to that, only drawbacks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062670#4062670 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PersistenceContext not working in a JSF bean in JBoss 5
Could you show the code for that bean please? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062671#4062671 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Application deployment in parts
I have a situation where it'd be advantageous to be able to deploy an application in parts. I'd like to have the main application deployed at all times, and I want to be able to separately deploy/undeploy modules that depend on the EJBs in the main application. How do I accomplish this? Any pointers would be helpful. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062676#4062676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: what can be done for not real remove
Please post the code for the person entity. The key is how you defined the phones collection. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062683#4062683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:cache and nested repeat elements
I need to display a nested list as follows: Root category 1 | Subcategory 1 | Subcategory 2 | Root category 2 | Subcategory 3 I first tried doing this using the Facelets ui:repeat element, only to find out that only the outer layer (the root categories) were rendered. Using JSTL's c:forEach fixed this, but caching no longer works as intended, since I'm getting database hits on every pageload. I have a similar page elsewhere that uses ui:repeat instead, and caching works fine there. This is quite annoying since constructing said list is fairly database intensive and the data rarely changes. Any advice? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061604#4061604 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam2.0beta : tests fail with jdk1.6
This is a JBoss bug. Class loading was done in the wrong manner, relying on an unintended side effect of the class loading mechanism, and when the behavior changed in Java 6, it broke a lot of software. What you see there is a failed attempt at loading the class for String[], not String. JBoss AS 5.0 is supposed to be free of these issues once it's finished. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061612#4061612 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061612 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:cache and nested repeat elements
I'm using JBoss 4.2.0GA and therefore JSF 1.2, with Seam 2.0.0beta1. Perhaps this is a Facelets issue? Here's the xhtml snippet: | s:cache key=mainPage region=/pageFragments | tr class=headercell | td class=categoryCategory/td | td class=filesFiles/td | td class=lastentryLast Entry/td | /tr | c:forEach items=#{categories} var=root | tr class=bodycellheader | td class=category | div class=arrow»/div | div class=catname | s:link view=/category.xhtml value=#{root.name} | f:param name=categoryId value=#{root.id}/ | /s:link | /div | /td | td class=files#{root.numEntries}/td | td class=lastentry | s:link view=/entry.xhtml value=#{root.lastEntry.title} | f:param name=entryId value=#{root.lastEntry.id}/ | /s:link | /td | /tr | c:forEach items=#{root.subcategories} var=cat | tr class=bodycellsubheader | td style=padding-left: 2.4em; class=category | s:link view=/cat.xhtml value=#{cat.name} | f:param name=categoryId value=#{cat.id}/ | /s:linkbr / | div class=catdesc#{cat.description}/div | /td | td class=files#{cat.numEntries}/td | td class=lastentry | s:link view=/entry.xhtml value=#{cat.lastEntry.title} | f:param name=categoryId value=#{cat.lastEntry.id}/ | /s:link | /td | /tr | /c:forEach | /c:forEach | tr class=bodycellheader | td class=category | div class=arrow»/div | div class=catnames:link view=/viewall.xhtmlView | All Files/s:linkbr / | View all of the files in the database/div | /td | td class=files#{home.totalEntryCount}/td | td class=lastentry | s:link view=/entry.xhtml value=#{home.lastEntryTitle} | f:param name=entryId value=#{home.lastEntryId}/ | /s:link | /td | /tr | /s:cache | and the backing bean: | @Scope(ScopeType.EVENT) | @Name(home) | @Stateful | public class HomeBean implements HomeLocal { | | @PersistenceContext(type = PersistenceContextType.EXTENDED) | private EntityManager em; | | private int totalEntryCount; | private Long lastEntryId; | private String lastEntryTitle; | | @SuppressWarnings(unchecked) | @Factory(categories) | public ListCategory initCategories() { | ListCategory categories = em.createNamedQuery(Category.QUERY_ROOTCATEGORIES).getResultList(); | for (Category cat : categories) { | totalEntryCount += cat.getEntries().size(); | Entry lastEntry = cat.getEntries().get(0); | if (lastEntry != null (lastEntryId == null || lastEntry.getId() lastEntryId)) {
[jboss-user] [JBoss Seam] - Re: s:cache and nested repeat elements
I found this: http://wiki.java.net/bin/view/Projects/FaceletsFAQ#Why_doesn_t_my_c_if_ui_repeat_ui and this: http://www.ninthavenue.com.au/blog/c:foreach-vs-ui:repeat-in-facelets but I'm still confused. How should I go about with this? Forcibly try to cram this into a h:dataTable? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061623#4061623 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:cache and nested repeat elements
On a closer inspection, the s:cache tag does seem to help considerably. Although I still get database hits on page load, only a few queries are executed each time and the loading time is about 1/7 of normal. Maybe some fine day I'll understand all this :P View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061629#4061629 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061629 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:cache and nested repeat elements
Alright... *sigh* false alarm. Seems like there was a mixup between the items and value parameters between the c:forEach and ui:repeat elements, that's all. Even when I knew they had different parameters for that... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061650#4061650 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB client app trying to connect to localhost instead of ser
I have a problem with my EJB Client app. Remote JNDI lookup works, but during RMI invocation it tries to connect to 127.0.1.1 instead of the remote host. I've been developing this app for a long time and everything has worked correctly until now. Yesterday I switched to Ubuntu (from Fedora), and accidentally deleted my Eclipse dir during the switch, so I installed Eclipse v3.3 instead (used v3.2.2 before). I had this problem in the beginning of the development, but I can't remember how it was solved. Please help! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059938#4059938 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059938 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB client app trying to connect to localhost instead of
Never mind, I remembered now. The problem was that my host name was resolved to 127.0.1.1 because such an entry was present in /etc/hosts. After commenting that out, it worked fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059962#4059962 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059962 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server
@Local only works if the calling end is running within the same VM as the server. Therefore you need to use @Remote instead if you want your beans to work with application clients. Why are you still trying to get dependency injection to work? Last I heard it doesn't work with JBoss at all -- and it's awful in Glassfish too. Just give it up and use JNDI lookups just like everyone else does. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4049322#4049322 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049322 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: My own EntityManager, how to do it?
If you need to handle multiple persistence contexts with the same entity manager, you could implement your own PersistenceProvider and overriding Hibernate's methods as necessary to make EntityManagerFactories churn out your own entity manager objects. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046831#4046831 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: My own EntityManager, how to do it?
I was about to ask the same question, but then I saw this post. My solution is to just use @EJB ExtEntityManager em; instead of @PersistenceContext EntityManager em;, but if you use multiple persistence units, it may not be such a practical approach. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046823#4046823 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Server restart required after failed EJB3 deployment?
Ah yes, I had forgotten about this thread :( This is probably related to the problem I've been having. What was the cause? I have encountered this problem frequently on two different development boxes running different versions of JBoss, on entirely different projects! That's why I was a bit surprised why no one seemed to know about this issue. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045770#4045770 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing Map elements via HQL
If I have | @CollectionOfElements | MapInteger, String map; | in an entity, then how can I access those map elements in a HQL query? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044297#4044297 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: help needed.. plz respond.
If you REALLY want help, then maybe you should be more specific. Downloaded what application? Got what error? And mind the spelling and grammar. Have you read any one the tutorials? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043642#4043642 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Server restart required after failed EJB3 deployment?
I have noticed that whenever the deployment of an EJB3 app fails due to any reason, the EJB3 service is unregistered. As a result, subsequent attempts at deploying any EJB3 application fail until the server is restarted. Anyone care to explain why? This happens on both 4.0.5GA and 4.2.0CR2. --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.j2ee:service=EJB3,module=Etikettu-Common.jar | State: FAILED | Reason: java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2ee:ear=MyApp.ear,jar=MyApp-EJB.jar,name=SearchBean,ser | vice=EJB3 is not registered. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043644#4043644 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043644 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Running JBoss with Java 6 (JDK 6)
FelderR wrote : JBoss 4.0.5 works fine with Java 6! | | Just tried to run JBoss 5.0.0 beta 2 with Java 6 and failed: | | java.lang.IllegalStateException: Class not found: [Ljava.lang.String; | | The server does not come up as it runs into the following bug within JDK 1.6.0: | | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149 | | | Any workarounds planned by JBoss? | This has been extensively discussed on the EJB 3 forum. It is not a bug in JDK 6, but a bug in several parts of the JBoss AS. The problem stems from the improper use of classloaders -- classes should be loaded with Class.forName(name), not obj.class.getClassLoader().loadClass(name). The latter method worked up until JDK 6 due to an unintended side effect of the class loading mechanism. This has already been fixed in JBoss Remoting, but apparently not in other programs. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040959#4040959 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Well, I'll be damned. There was no way I could've figured this out given those error messages. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037455#4037455 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Ok, I've been busy trying to figure out WTF is wrong with this. According to my research, Ajax4JSF + Facelets = bust. I created a very simple page with one managed bean, no Seam involved. a4j:commandLink causes an error message if Facelets is involved, but works fine on the corresponding JSP page. If I change a4j:commandLink to h:commandLink, then even the facelets page renders fine. You can download the test project here: http://paradoxx.dyndns.org/TestWeb.tar.gz I tried several different versions of both Facelets and Ajax4JSF, to no avail. I have no idea what to do :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037392#4037392 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
No, it still doesn't work. I made a real simple xhtml page: | ?xml version=1.0 encoding=utf-8? | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | html xmlns=http://www.w3.org/1999/xhtml; | xmlns:a4j=http//ajax4jsf.dev.java.net/ajax | lang=en xml:lang=en | head | titleTest/title | /head | body | a4j:form | a4j:commandLink value=Test action=#{categorybean.jumpPage} / | /a4j:form | /body | /html I still get the error message: /hello.xhtml: Property 'jumpPage' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_7 It'd help if I could find so much as a single working app that used a4j:commandLink. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036531#4036531 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Looks like I had some old libs in WEB-INF/lib/ that may have caused these problems. At least I'm getting all different error messages now =) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036178#4036178 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036178 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam enhanced EL expression fails in an Ajax4JSF tag
The tag | a4j:commandLink value=Previous action=#{categorybean.setPage(0)} / fails to render, saying: javax.el.ELException: Error Parsing: #{categorybean.setPage(0)} | at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:125) | at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146) | at org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:190) | at org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68) | at org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:105) | ... | However, the same renders just fine if I use h:commandLink instead. The declaration of the method is as follows: | void setPage(int page); | What am I doing wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035716#4035716 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4035716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Ok, but meanwhile, I wanted to put up links so the user can jump to another page on the table without having to refresh the whole page. How can I possibly accomplish this? How can I tell the seam component which page I want to jump to? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035782#4035782 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4035782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035791#4035791 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4035791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Sorry but it still doesn't work. | javax.el.ELException: /category.xhtml: Property 'jumpPage' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_89 | at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53) | at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149) | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137) | It seems like it's trying to evaluate the contents of action as a value expression and not a method expression. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035802#4035802 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4035802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
I don't know what code you want to see, but here's the bean code: | @Stateful | @Scope(ScopeType.SESSION) | @Name(categorybean) | public class CategoryBean implements CategoryLocal { | | private static final int PAGE_SIZE = 30; | | @In | private EntityManager db; | | @RequestParameter | private String id; | | private Category cat; | private Query entryQuery; | private int page = 0; | | public Category getCategory() { | if (cat == null) | cat = db.find(Category.class, Short.parseShort(id)); | return cat; | } | | @SuppressWarnings(unchecked) | public ListEntry getEntries() { | if (entryQuery == null) { | Session session = (Session) db.getDelegate(); | entryQuery = session.createFilter(getCategory().getEntries(), ); | } | | entryQuery.setFirstResult(page * PAGE_SIZE).setMaxResults(30); | return entryQuery.list(); | } | | public boolean isPreviousPageAvailable() { | return page 0; | } | | public boolean isNextPageAvailable() { | return page * PAGE_SIZE getCategory().getNumEntries() - 1; | } | | public void jumpPage() { | // Dummy method for jumping pages | } | | public void previousPage() { | page--; | } | | public void nextPage() { | page++; | } | | public int getPage() { | return page; | } | | public void setPage(int page) { | this.page = page; | } | | public int[] getPageNumbers() { | int[] pageNumbers = new int[getCategory().getNumEntries()]; | for (int i = 0; i getCategory().getNumEntries(); i++) | pageNumbers = i + 1; | return pageNumbers; | } | | @Remove @Destroy | public void destroy() {} | | } | and the local interface: | @Local | public interface CategoryLocal { | | Category getCategory(); | | ListEntry getEntries(); | | int[] getPageNumbers(); | | void jumpPage(); | | int getPage(); | | void setPage(int page); | | boolean isPreviousPageAvailable(); | | boolean isNextPageAvailable(); | | void previousPage(); | | void nextPage(); | | void destroy(); | | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4035836#4035836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4035836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Are you sure you're not using jbosall-client.jar? That one contains a broken copy of jbossremoting. Don't use it. Also make sure that your client, too, uses the fixed version. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4027842#4027842 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4027842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
anonymous wrote : Hello you all! Just ran into the problem that you are describing in this thread. What I can't find is how to solve it. JBoss-Remoting 1.4 and 2.0 is available for download but the fix doesn't seem to be included. Tom Eldor posted a link to the fixed JBoss Remoting in this thread. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4027629#4027629 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4027629 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Attaching source to Libraries in 2.0.0 Beta2
You can't. See http://www.jboss.com/index.html?module=bbop=viewtopict=98358 to find out why. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025758#4025758 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JNDI and Client Application
First of all, when you ask for help, enclose your code with the code tag (use the buttons provided). Next, package your session beans in a .jar file. The .ejb3 extension is deprecated. Third, the correct JNDI path is //(remote|local). Just because you packaged your beans in a directory named beans doesn't mean it has anything to do with JNDI bindings. Session beans are usually part of some application, and (afaik) the application name dictates the default binding for them. You can find out if your beans were deployed correctly by checking the JNDI browser in the JMX console of JBoss. There are plenty of examples regarding this -- try out some of them before asking for help here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025435#4025435 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: This IDE won't update?
Thank you, but could we get an unofficial estimate when beta3 will likely be released? A lot of that banging head to the wall comes from the fact that the xml descriptor was incorrectly configured and resulted in Eclipse thinking that the IDE needed its own copy of WTP. That was fixed a long ago in the CVS but I'd rather not venture there, given the volatile nature of development code. Some tried that and failed. Therefore a new release would be greatly appreciated. It's been far too long since beta2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024684#4024684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
I just tried to launch my app via Java Web Start, and while running it I got a familiar looking exception. Here's the stack trace: | java.lang.reflect.UndeclaredThrowableException | at $Proxy1.getList(Unknown Source) | at fi.karico.etikettu.client.view.editor.ProductEditor$ListTableRefreshTask.refreshModelData(ProductEditor.java:6350) | at fi.karico.etikettu.client.view.task.TableRefreshTask.runBackground(TableRefreshTask.java:39) | at fi.karico.etikettu.client.view.task.SwingTask.run(SwingTask.java:30) | at fi.karico.etikettu.client.view.task.TaskManager.run(TaskManager.java:150) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Object; | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:255) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50) | at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139) | at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at java.util.ArrayList.readObject(ArrayList.java:593) | 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:597) | at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122) | at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128) | at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66) | at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279) | at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) | at org.jboss.remoting.Client.invoke(Client.java:525) | at org.jboss.remoting.Client.invoke(Client.java:488) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) | at $Proxy1.getList(Unknown Source) | at fi.karico.etikettu.client.view.editor.ProductEditor$ListTableRefreshTask.refreshModelData(ProductEditor.java:6350) | at
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
I just tried to launch my app via Java Web Start, and while running it I got a familiar looking exception. Here's the stack trace: | java.lang.reflect.UndeclaredThrowableException | at $Proxy1.getList(Unknown Source) | at fi.karico.etikettu.client.view.editor.ProductEditor$ListTableRefreshTask.refreshModelData(ProductEditor.java:6350) | at fi.karico.etikettu.client.view.task.TableRefreshTask.runBackground(TableRefreshTask.java:39) | at fi.karico.etikettu.client.view.task.SwingTask.run(SwingTask.java:30) | at fi.karico.etikettu.client.view.task.TaskManager.run(TaskManager.java:150) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Object; | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:255) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50) | at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139) | at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at java.util.ArrayList.readObject(ArrayList.java:593) | 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:597) | at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122) | at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) | at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128) | at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66) | at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279) | at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) | at org.jboss.remoting.Client.invoke(Client.java:525) | at org.jboss.remoting.Client.invoke(Client.java:488) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) | at $Proxy1.getList(Unknown Source) | at fi.karico.etikettu.client.view.editor.ProductEditor$ListTableRefreshTask.refreshModelData(ProductEditor.java:6350) | at
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Sorry for the accidental double post. Anyway, I found the sources from the link in Tom's post. Let's see what causes this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021156#4021156 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021156 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Sorry again, folks -- false alarm! Turns out I was including jbossall-client.jar on the list of resources in my application's JNLP file, and apparently that jar contains the old remoting code, which caused the exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021171#4021171 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Probably when they fix the rest of the components (JGroups etc.) that have this same bug, since I don't think they'll make any official releases before they can run the complete test suite. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021292#4021292 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Not to my knowledge, but jbossall-client does not contain anything unique. It's just a bunch of existing jars thrown together for convenience. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4021353#4021353 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021353 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: relationship does not prevent from deleting referenced e
You can instruct MySQL to create InnoDB tables by default. Just put | default-table-type=innodb | under [mysqld], and you're set. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4020499#4020499 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - HQL and enum constants
According to the Hibernate manual, it is possible to use public static final constants directly in HQL queries. Why then can I not use enums there as well? I tried | SELECT DISTINCT m FROM Material m, IN(m.suppliers) s WHERE m.unit Material.MaterialUnit.SQUARE_METRES AND s.id = :id | and variations like MaterialUnit.SQUARE_METRES and the fully qualified name, but they all produce the same error message on deployment: anonymous wrote : | 13:55:36,982 ERROR [SessionFactoryImpl] Error in named query: Material.nonCuttables | org.hibernate.hql.ast.QuerySyntaxException: Invalid path: 'null.MaterialUnit.SQUARE_METRES' [SELECT DISTINCT m FROM fi.karico.etikettu.domain.Material m, IN(m.suppliers) s WHERE m.unit Material.MaterialUnit.SQUARE_METRES AND s.id = :id] | The same works fine if I just input the enum as a parameter: | SELECT DISTINCT m FROM Material m, IN(m.suppliers) s WHERE m.unit :m2unit AND s.id = :id | What am I doing wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4020510#4020510 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020510 ___ 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: HQL and enum constants
For the record, here's the code for the MaterialUnit enum inside the Material class: | public enum MaterialUnit { | SQUARE_METRES(m\u00b2), | ROLLS(rll), | PIECES(kpl), | KILOGRAMS(kg); | | private final String name; | | private MaterialUnit(final String name) { | this.name = name; | } | | @Override | public String toString() { | return name; | } | | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4020661#4020661 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: relationship does not prevent from deleting referenced e
Have you checked whether the correct foreign keys are in place in the database? If not, have you tried to drop the tables and allow Hibernate (which I assume you're using) to generate the tables again? On a side note, a few non related tips for you: 1. You don't need an explicit constructor if the sole constructor is public and has no arguments. Calling super() is useless if the class only extends java.lang.Object. 2. When defining relationships, you don't need to specify targetEntity when using generics. 3. You don't EVER have to specify strategy = GenerationType.AUTO, since it's the default anyway. 4. Always use English for variable and method names. Makes your software more consistent and maintainable. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4020083#4020083 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss IDE 2.x and WTP 1.5.2 coexistence
anonymous wrote : Is there a solution to this problem yet? It is supposedly fixed, but no new releases have been made since. It should be fixed with 2.0beta3, but JBoss are taking their sweet time getting that done. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4007915#4007915 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: EJB 3.0 project with Eclipse IDE 2.0.0 beta 2
Curiously, the EJB 3.0 project has nothing to do with Java EE. You can't add an EJB 3.0 project to an EAR project like you normally would in any normal server application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4006312#4006312 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006312 ___ 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: How to handle several collections, which store the same
Specify a different join table for each collection. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4006373#4006373 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006373 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate and @CollectionId
Could someone help me understand why @CollectionId is required for multiple simultaneous bag fetching? All it does is create an invisible primary key for the collection. I understand this in the case of unidirectional relationships, but if I have a bidirectional relationship, what purpose does this serve, since the referenced entity already has a primary key? Why can't hibernate use the target entity's existing primary key? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4006374#4006374 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Stateful Bean and the database commit
To my knowledge, m.flush() guarantees that the database commit happens before the method returns (or else it will throw an exception). I can't understand why you inject an EntityManagerFactory instead of an EntityManager. What is the purpose of afterCompletion()? And why is the bean stateful and not stateless? I don't see any state variables that would warrant a stateful bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002777#4002777 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss 2.0 beta crashes 20 times a day + OutOfMemory prob
anonymous wrote : Can anyone suggest tweaks to this ide to make it work better? Put XX:MaxPermSize=128m in your eclipse.ini and you should be fine. That at least ended the crashing for me :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4000886#4000886 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Simple remove wont work. Detached instance
Are you by any chance using service through a remote interface? Why do you need to cast the result to User btw? Does that method return other objects than Users? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4000887#4000887 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000887 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: JBoss Remoting JDK 6.0 situation deadlock
Ok, I have compiled JBoss Remoting v1.4.4 with the fix. According to my initial testing, it now works with JDK 6! Could someone provide hosting for the binary? It's not big, just a little under 400k. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4000458#4000458 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user