[jboss-user] [EJB 3.0] - Deploying EAR and WAR separately

2008-09-01 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: Entity bean cascade design issue

2008-05-22 Thread alexg79
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 n

[jboss-user] [J2EE Design Patterns] - Re: EJB3 and JBoss client java.io.InvalidClassException

2008-02-14 Thread alexg79
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=bb&op=viewtopic&p=4129506#4129506 Reply to the post : http://www.jboss.com

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Criteria queries and collection valued properties

2007-12-17 Thread alexg79
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 MappingE

[jboss-user] [EJB 3.0] - Re: How to retrieve foreign key instead of the object (want

2007-12-05 Thread alexg79
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 i

[jboss-user] [EJB 3.0] - Re: EAR not initializing properly - java.lang.ClassNotFoundE

2007-12-01 Thread alexg79
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 : h

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-30 Thread alexg79
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=bb&op=viewtopic&p=4109493#4109493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41094

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using @Id and @Enumerated in the same column does not work

2007-11-30 Thread alexg79
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=bb&op=viewtopic&p=4109336

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-27 Thread alexg79
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Query won't parse, why?

2007-11-27 Thread alexg79
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: When JbossAs will update Hibernate?

2007-11-27 Thread alexg79
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=bb&op=viewtopic&p=4108073#4108073 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108073

[jboss-user] [EJB 3.0] - Re: Table per class with different ID generators

2007-11-26 Thread alexg79
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=bb&op=viewtopic&p=4107654#4107654 Reply to

[jboss-user] [EJB 3.0] - Re: sequence generator and bigDecimal

2007-11-25 Thread alexg79
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=bb&op=viewtopic&p=4107570#4107570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [EJB 3.0] - Table per class with different ID generators

2007-11-24 Thread alexg79
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 pos

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Compiling JBossAS from SVN

2007-09-24 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: Remote Not bound -- Help me !

2007-09-21 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: Please help me !!

2007-08-31 Thread alexg79
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 th

[jboss-user] [EJB 3.0] - Re: Please help me !!

2007-08-30 Thread alexg79
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=bb&op=viewtopic&p=4079759#4079759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=407975

[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit

2007-08-30 Thread alexg79
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

[jboss-user] [JBoss Seam] - Re: URL parameter

2007-08-23 Thread alexg79
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: |

[jboss-user] [JBoss Seam] - Re: URL parameter

2007-08-23 Thread alexg79
anonymous wrote : So how add id => #{msg.id} | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077326#4077326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077326 _

[jboss-user] [JBoss Seam] - Re: When to use SessionBeans and when Pojos?

2007-08-22 Thread alexg79
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 per

[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
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?m

[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
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 ve

[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
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=bb&op=viewtopic&p=4076072#4076072 Reply to the post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
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=bb&op=v

[jboss-user] [JBoss Seam] - Re: Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
Hm, you are probably referring to this: http://jira.jboss.org/jira/browse/AJSF-54. Forum link: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=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

[jboss-user] [JBoss Seam] - Ajax4JSF mediaOutput tag and Seam

2007-08-20 Thread alexg79
I'm trying to display thumbnails of images I have on the database using a4j:mediaoutput, like this: The "download" component looks like this: | @Name("download") | @Stateless | public class DownloadBean implements Download { | | @PersistenceContext | private EntityManager em

[jboss-user] [JBoss Seam] - Re: Warning: beware of Common StringUtils.remove(String, char

2007-08-17 Thread alexg79
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=bb&op=viewtopic&p=4075308#4075308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075308

[jboss-user] [JBoss Seam] - Re: How do folks typically handle initial vs. redeployment a

2007-08-17 Thread alexg79
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.ht

[jboss-user] [JBoss Seam] - Re: Seam & binary content downloads

2007-08-15 Thread alexg79
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

[jboss-user] [JBoss Seam] - Re: Seam & binary content downloads

2007-08-15 Thread alexg79
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

[jboss-user] [JBoss Seam] - Seam & binary content downloads

2007-08-14 Thread alexg79
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-

[jboss-user] [JBoss Seam] - Re: Logger object nulled after passivation

2007-08-14 Thread alexg79
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=bb&op=viewtopic&p=4074204#4074204 Reply

[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1

2007-08-13 Thread alexg79
Created. http://jira.jboss.org/jira/browse/JBSEAM-1798 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073734#4073734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073734 ___

[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1

2007-08-13 Thread alexg79
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.jbos

[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1

2007-08-12 Thread alexg79
JIRA issue created: http://jira.jboss.org/jira/browse/JBSEAM-1787 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073387#4073387 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073387 _

[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1

2007-08-11 Thread alexg79
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 | | Y

[jboss-user] [JBoss Seam] - Re: PersistenceContext injection in Seam 2.0beta1

2007-08-11 Thread alexg79
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=bb&op=viewtopic&p=4073296#4073296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073296

[jboss-user] [JBoss Seam] - PersistenceContext injection in Seam 2.0beta1

2007-08-11 Thread alexg79
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.SessionBeanInter

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Accessing collections from queries

2007-08-04 Thread alexg79
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=bb&op=viewtopic&p=4070852#4070852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mo

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing collections from queries

2007-08-03 Thread alexg79
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 Map amounts; | | @Id @GeneratedValue | public long getId() { | return id; | } | | pub

[jboss-user] [JBoss Seam] - Re: facelets and seam2

2007-07-22 Thread alexg79
I never configured the content-type. Where should it be configured? In my template I use | | ... | | 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

[jboss-user] [Security & JAAS/JBoss] - JAAS configuration for remote EJB client

2007-07-19 Thread alexg79
I have an EJB client app and an EAR on the server, and the following snippet added to the server's login-config.xml: | | | | java:/MyappDS | SELECT password FROM employee WHERE id=? | SELECT accessLevel, 'Roles' FROM emp

[jboss-user] [JBoss Seam] - Re: facelets and seam2

2007-07-18 Thread alexg79
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=bb&op=viewtopic&p=4065401#4065401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065401

[jboss-user] [JBoss Seam] - Re: getting rid of the .seam extension

2007-07-14 Thread alexg79
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=bb&op=viewtopic&p=4064264#4064264 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Re: getting rid of the .seam extension

2007-07-14 Thread alexg79
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=bb&op=viewtopic&p=4064263#4064263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064263

[jboss-user] [JBoss Seam] - getting rid of the .seam extension

2007-07-14 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: what can be done for not real remove

2007-07-10 Thread alexg79
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=bb&op=viewtopic&p=4062683#4062683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062683

[jboss-user] [EJB 3.0] - Application deployment in parts

2007-07-10 Thread alexg79
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 poin

[jboss-user] [EJB 3.0] - Re: @PersistenceContext not working in a JSF bean in JBoss 5

2007-07-10 Thread alexg79
Could you show the code for that bean please? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062671#4062671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062671 ___ jboss-use

[jboss-user] [EJB/JBoss] - Re: Exception in calling an Entity Bean from Servlet

2007-07-10 Thread alexg79
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=bb&op=viewtopic&p=4062670#4062670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [JBoss Seam] - Re: and nested repeat elements

2007-07-07 Thread alexg79
Alright... *sigh* false alarm. Seems like there was a mixup between the "items" and "value" parameters between the and 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=bb&op=viewtopic&p=4061650#406

[jboss-user] [JBoss Seam] - Re: and nested repeat elements

2007-07-07 Thread alexg79
On a closer inspection, the 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/

[jboss-user] [JBoss Seam] - Re: and nested repeat elements

2007-07-07 Thread alexg79
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 ? View the original post : h

[jboss-user] [JBoss Seam] - Re: and nested repeat elements

2007-07-07 Thread alexg79
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: | | | Category | Files |

[jboss-user] [JBoss Seam] - Re: seam2.0beta : tests fail with jdk1.6

2007-07-07 Thread alexg79
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 A

[jboss-user] [JBoss Seam] - and nested repeat elements

2007-07-07 Thread alexg79
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 element, only to find out that only the outer layer (the root categories) were rendered. Using JSTL's fix

[jboss-user] [EJB 3.0] - Re: EJB client app trying to connect to localhost instead of

2007-07-03 Thread alexg79
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=bb&op=viewtopic&p=4059962#4059962 Reply to the po

[jboss-user] [EJB 3.0] - EJB client app trying to connect to localhost instead of ser

2007-07-03 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: can any one help me - having a bad day with ejb3 server

2007-05-29 Thread alexg79
@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

[jboss-user] [EJB 3.0] - Re: My own EntityManager, how to do it?

2007-05-18 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: My own EntityManager, how to do it?

2007-05-18 Thread alexg79
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.co

[jboss-user] [EJB 3.0] - Re: Server restart required after failed EJB3 deployment?

2007-05-15 Thread alexg79
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 surp

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing Map elements via HQL

2007-05-09 Thread alexg79
If I have | @CollectionOfElements | Map 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=bb&op=viewtopic&p=4044297#4044297 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [EJB 3.0] - Server restart required after failed EJB3 deployment?

2007-05-07 Thread alexg79
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. ---

[jboss-user] [EJB 3.0] - Re: help needed.. plz respond.

2007-05-07 Thread alexg79
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=bb&op=viewtopic&p=4043642#4043642 Reply to the p

[jboss-user] [Installation, Configuration & Deployment] - Re: Running JBoss with Java 6 (JDK 6)

2007-04-26 Thread alexg79
"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: |

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-16 Thread alexg79
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=bb&op=viewtopic&p=4037455#4037455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-15 Thread alexg79
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. causes an error message if Facelets is involved, but works fine on the corresponding JSP page. If I change

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-11 Thread alexg79
No, it still doesn't work. I made a real simple xhtml page: | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:a4j="http//ajax4jsf.dev.java.net/ajax" | lang="en" xml:lang="en"> | | Test | | | |

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-10 Thread alexg79
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=bb&op=viewtopic&p=4036178#4036178 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-09 Thread alexg79
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

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-09 Thread alexg79
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.

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-09 Thread alexg79
Thank you very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035791#4035791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035791 ___ jboss-user mailing list jboss-user

[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-09 Thread alexg79
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?mo

[jboss-user] [JBoss Seam] - Seam enhanced EL expression fails in an Ajax4JSF tag

2007-04-09 Thread alexg79
The tag | 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) |

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-03-14 Thread alexg79
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=bb&op=viewtopic&p=4027842#4027842 Reply to the post :

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-03-13 Thread alexg79
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

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Use Eclipse Web-Tools with JBoss 4.x

2007-03-09 Thread alexg79
anonymous wrote : I could just override it and provide the user to force a full or incremental republish and keep track of the changes in my own API. How do I do an incremental republish? What exactly does it mean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Attaching source to Libraries in 2.0.0 Beta2

2007-03-07 Thread alexg79
You can't. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98358 to find out why. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025758#4025758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025758 ___

[jboss-user] [EJB 3.0] - Re: JNDI and Client Application

2007-03-06 Thread alexg79
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 "b

[jboss-user] [JBoss Eclipse IDE (users)] - Re: This IDE won't update?

2007-03-02 Thread alexg79
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

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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=bb&op=viewtopic&p=4021353#4021353 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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=bb&op=viewtopic&p=4021292#4021292 Reply

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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=bb&op=view

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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=bb&op=viewtopic&p=4021156#4021156 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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$ListTabl

[jboss-user] [Remoting] - Re: JBoss Remoting & JDK 6.0 situation deadlock

2007-02-23 Thread alexg79
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$ListTabl

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: HQL and enum constants

2007-02-22 Thread alexg79
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; |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: HQL and enum constants

2007-02-22 Thread alexg79
Tried that, and "com.foo.Material$MaterialUnit.SQUARE_METRES", no dice. Gives the same error still. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020654#4020654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020654 __

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - HQL and enum constants

2007-02-22 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: relationship does not prevent from deleting referenced e

2007-02-22 Thread alexg79
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=bb&op=viewtopic&p=4020499#4020499 Reply to the post : http://www.jboss.com/index.html?module=bb

[jboss-user] [EJB 3.0] - Re: relationship does not prevent from deleting referenced e

2007-02-21 Thread alexg79
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

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss IDE 2.x and WTP 1.5.2 coexistence

2007-01-29 Thread alexg79
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=bb&op=viewtopic&

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate and @CollectionId

2007-01-25 Thread alexg79
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 t

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to handle several collections, which store the same

2007-01-25 Thread alexg79
Specify a different join table for each collection. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006373#4006373 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006373 ___ jbo

[jboss-user] [JBoss Eclipse IDE (users)] - Re: EJB 3.0 project with Eclipse IDE 2.0.0 beta 2

2007-01-25 Thread alexg79
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=bb&op=viewtopic&p=4006312#4006312 Reply to the post : htt

[jboss-user] [EJB 3.0] - Re: Stateful Bean and the database commit

2007-01-17 Thread alexg79
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

[jboss-user] [EJB 3.0] - Re: Simple remove wont work. Detached instance

2007-01-12 Thread alexg79
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=bb&op=viewtopic&p=4000887#4000887 Reply to the post : http://www.j

  1   2   >