[jboss-user] [EJB 3.0] - Re: Joined Inheritance Strategy Problem

2007-08-10 Thread grdzeli_kaci
waynebaylor wrote : The InheritanceType.JOINED is a table per subclass 
strategy. So you don't need a discriminator, which is probably why it was null.

i did what you say, but problem not resolved.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072843#4072843

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Where abouts should I change if I change the ds.xml inside b

2007-08-10 Thread guiltyxsin
Hi,

 I am a newbie in seam, and I was trying to change the ds.xml inside booking 
example so that I can use it to connect to the database I wanted.

However, I am not sure if there's other part of the booking example I need to 
modify in order for the search function to work. So if anyone has been using 
the booking example as a starting point like me, can you give me a little hint?


Regards,
Andy

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072842#4072842

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread nickarls
Umm, never mind previous post.

Does it find *any* EJBs or is just a new one that isn't found?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072861#4072861

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072861
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: processing order of windows within page

2007-08-10 Thread brain101
thanks about your quick reply.
so, if i can´t set the processing order, how can i take influence on the 
ordering/sorting in the database (e.g. via the name of the window (aaaWindow 
has a lower id than zzzWindow), the length of the name, etc.)?

unfortunately for our application it is very important, that the 
windows/portlets are processed in a specific order

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072856#4072856

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072856

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - spcace in directory name of the jboss

2007-08-10 Thread milind.uc
suppose if  I put the space in the jboss directory name like  jboss-4.0.0  to 
jboss-4.0.0 s  then it will not run and gives the error like




  | 
===
  | .
  |   JBoss Bootstrap Environment
  | .
  |   JBOSS_HOME: C:\jboss-4.0.0 s\bin\\..
  | .
  |   JAVA: C:\j2sdk1.4.2_07\bin\java
  | .
  |   JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
  | .
  |   CLASSPATH: C:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-4.0.0 s\bin\\run.jar
  | .
  | 
===
  | .
  | Exception in thread main java.lang.NoClassDefFoundError: 
s\bin\\//\lib\endorsed
  | Press any key to continue . . .


If anyone have  the idea for it then please suggest me.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072854#4072854

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: processing order of windows within page

2007-08-10 Thread [EMAIL PROTECTED]
I implicitly thought you were talking about ordering the windows to order them 
in the layout.

If you were really talking about processing (or computing), no you cannot give 
an order, you should not depend on the ordering. Each window could in theory 
could be rendered in parallel.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072853#4072853

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072853
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: processing order of windows within page

2007-08-10 Thread [EMAIL PROTECTED]
Forgot about 2.2 but don't you have a height tag in -object.xml ?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072852#4072852

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072852
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Where abouts should I change if I change the ds.xml insi

2007-08-10 Thread nickarls
Without looking too much at the example in question, I would guess that 
changing the DS should be enough since I recall that it does normal searches to 
the DB.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072851#4072851

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072851
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Using EntityManager in Hibernate Validator

2007-08-10 Thread csl
I try to use the EntityManager in a Hibernate Validator, for I'd like to ensure 
the uniqueness of a username. This should get reported to the user using 
ajax4jsf. I implemented it using a JSF Validator and it worked, but the 
Hibernate Validator approach would be preferable, I guess.

How can I inject the EntityManager into my Validator? I also tried 
Component#getInstance but it returns a proxy to an already closed Entity 
Manager...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072850#4072850

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072850
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: java.lang.NullPointerException @ InternalContentProvider

2007-08-10 Thread [EMAIL PROTECTED]
I fixed it yesterday in Branch_2_6 but your post reminded me to do it in trunk 
;) I just did, thanks.

It's good to see someone looking into the code, try to fix things and report 
how to fix :)

By the way, branches/JBoss_Portal_2_6 (Bug fixes, little enhancements) should 
be more stable than trunk  (bigger changes)

THanks again !



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072849#4072849

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Use Edit/Help modes with JSF based portlet

2007-08-10 Thread [EMAIL PROTECTED]
FOr myFaces you would have to extend the existing portlet bridge. The Sun RI 
lets you define pages for the 3 modes of the spec.

(Note: you cannot change the window state when using a JSF app)

There is room for a Portlet framework that would support this ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072845#4072845

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to modify booking example login?(newbie question)

2007-08-10 Thread nickarls
Put some debug code before the if-statement that displays the 
identity.getUsername() and identity.getPassword() to see that they are 
populated OK...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072844#4072844

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [SEAM 2.0 BETA 1] Embedded ejb container fails at test s

2007-08-10 Thread urswag
I also got this error.
What I did was to download embedded-jboss-beta2.
I copied then the bootstrap directory into the jboss Seam boostrap directroy.
Then I should work.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072840#4072840

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072840
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable

2007-08-10 Thread monkeyden
Incidentally, why are you using an aggregate function in your test SQL 
statement?  Doesn't MySQL have a dummy table like Oracle dual, where you can 
write a simple query like:

SELECT 1 FROM dual

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072839#4072839

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072839
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable

2007-08-10 Thread monkeyden
anonymous wrote : I upgraded the hibernate versions in Seam 1.2.1 to the latest 
hibernate which definitely reduced the frequency however they are still there. 
Any suggestions welcome. 

Oops, sorry.  It's 2:00AM here.  Sleepy.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072837#4072837

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Quartz Configuration not read from Properties in quartz-

2007-08-10 Thread jc7442
You can change the property file by setting the system property 
org.quartz.properties.

If add this prop in run.bat it should works (not try) but that's ugly.

I don't know hawo to change that in xml.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072873#4072873

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - flush-mode=

2007-08-10 Thread tkalactomo
I would like to know is it possible to somehow
configure every long-running conversation to begin as flush-mode=MANUAL?
Every conversation that starts in my app are like that,and
this would spare me precious time and code also.
Thanks in advance 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072881#4072881

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072881
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using EntityManager in Hibernate Validator

2007-08-10 Thread csl
Yes, this works.

Context ctx = new InitialContext();
  | EntityManagerFactory entityManagerFactory = (EntityManagerFactory) 
ctxlookup(java:/myprojectEntityManagerFactory);
  | entityManager = entityManagerFactory.createEntityManager();

But isn't there a better way to do this? It would be great if I could obtain 
Seam components (e.g. Log).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072879#4072879

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: processing order of windows within page

2007-08-10 Thread brain101
i know that our solution is not 100% clean - but now we need some workaround 
concerning the processing order until we can fix the problem

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072877#4072877

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread nickarls
Has the build script filtered your components.xml incorrectly?


  | core:init jndi-name=spike-ear-0.1.0/#{ejbName}/local /
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072857#4072857

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072857
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Memory usage in Workflow wait states

2007-08-10 Thread ZazzaZ
Ok,
my situation is the following.
I've to execute a very large number of process instances but they're not 
started all in the same time.
This number can be even 1 million per day!
Some of this instances will live for a few minutes, since the answer they wait 
for arrives soon, while the others will wait days...
So can I free the useless memory usage of this kind of processes (since they're 
doing no work at all) or not? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072870#4072870

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072870
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - UserTransaction JNDI name

2007-08-10 Thread bgonline
Hello,

I have a question about the UserTransaction object.

Indeed, when I deploy a webapp using the following JNDI name 
java:comp/UserTransaction for the UserTransaction, it works, although when I go 
in the JNDIView bean of the JMX console, and I invoke the list, I can't see 
this name in the java: namespace.

And when I deploy an EJB and that I try to access the UserTransaction the same 
way, it doesn't work.

Can someone explain me please?

Thanks in advance...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072867#4072867

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072867
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: validation selectManyListbox

2007-08-10 Thread wiberto
I was able to trace the calls until I found where the error was coming from. 
Basically it comes because the entityManager is null, and it tries to create 
one by name. Since I didn't have entityManager defined in my components.xml 
it never created one.

Since you mentioned that Seam 2.0 had redone this area, I decided to upgrade 
before adding stuff to my components.xml since it seemed weird that it would 
have an entitymanager available for the rest of the stuff except for this (but 
I think I know why now)

So I updated to Seam 2.0 and when I run it now I get this error:


  | java.lang.NullPointerException
  | at 
org.jboss.seam.framework.EntityIdentifier.init(EntityIdentifier.java:15)
  | at 
org.jboss.seam.ui.converter.EntityConverterStore.put(EntityConverterStore.java:60)
  | at 
org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:69)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
  | at 
com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.renderOption(SelectManyCheckboxListRenderer.java:249)
  | at 
com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:146)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | 

which leads me to believe it's the same issue. There is no entityManager. I 
didn't debug, but since it wasn't working before I wasn't expecting it to now.

So I added the following to the components.xml:


  | persistence:managed-persistence-context name=entityManager
  |   auto-create=true
  |
persistence-unit-jndi-name=java:/numinsPersistenceUnit /
  | 

Now I get:

  | org.hibernate.TransientObjectException: The instance was not associated 
with this session
  | at org.hibernate.impl.SessionImpl.getIdentifier(SessionImpl.java:1375)
  | at 
org.hibernate.search.impl.FullTextSessionImpl.getIdentifier(FullTextSessionImpl.java:331)
  | at 
org.jboss.seam.persistence.HibernateSessionProxy.getIdentifier(HibernateSessionProxy.java:205)
  | at 
org.jboss.seam.persistence.HibernatePersistenceProvider.getId(HibernatePersistenceProvider.java:114)
  | at 
org.jboss.seam.framework.EntityIdentifier.init(EntityIdentifier.java:15)
  | at 
org.jboss.seam.ui.converter.EntityConverterStore.put(EntityConverterStore.java:60)
  | 

With this I think that the original object was loaded with something else and 
that another entitymanager is trying to use it now. Is this because of the 
whole Seam managed thing?

I don't have my entities defined in components.xml. I just have the @Entity 
annotation in the class itself.

I went ahed and changed the @Name to something else so it wouldn't collide and 
added it to the components.xml to try it out. So I added:


  | framework:entity-home name=role 
  |
entity-class=com.numbersinsight.data.security.Role 
  |scope=session 
  |auto-create=true
  | framework:id#{roleId}/framework:id
  | /framework:entity-home
  | 

And the error message is:


  | Caused by: java.lang.IllegalArgumentException: Can not set 
com.numbersinsight.data.security.Role field 
com.numbersinsight.admin.action.RoleFinderAction.role to 
org.jboss.seam.framework.EntityHome_$$_javassist_68
  | at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
  | at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
  | at 
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
  | at java.lang.reflect.Field.set(Field.java:657)
  | at org.jboss.seam.util.Reflections.set(Reflections.java:64)
  | 

Why isn't it using the same entitymanager all around?
I think I'm moving in the right direction and have an idea of how it's 
behaving, but it's confusing.

I also tried using the hibernate-entity-home and got a class cast about going 
from a seam session to a hibernate session. I'll keep playing around to see 
what I can find.
Any ideas?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072847#4072847

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: spcace in directory name of the jboss

2007-08-10 Thread jaikiran
Don't have a space in the name. Have seen similar issues earlier when there was 
a space in the install directory.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072864#4072864

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072864
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable

2007-08-10 Thread monkeyden
Check the manifest file in the hibernate3.jar file.  If it's 3.2.0 GA, upgrade 
it to 3.2.5GA.  I just had this problem the other day.


reference:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2206

download:
http://www.hibernate.org/6.html

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072836#4072836

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072836
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Un/Marshaller not found

2007-08-10 Thread [EMAIL PROTECTED]
Sorry for the long delay in answering.

When attempting to load a marshaller, org.jboss.remoting.marshal.MarshalFactory 
will first try to use the value of the datatype parameter, invocation in this 
case.  Since invocation is not a built-in data type, there would be no 
marshaller associated with invocation unless you explicitly made the 
connection by calling MarshalFactory.addMarshaller().  Did you do that?  If 
not, that's ok, since it will then look in the InvokerLocator for the fully 
qualified name of a marshaller.  So, in your case, it should create an instance 
of com.test.socket.V75SocketServer.TextMarshaller.  I don't know why it isn't.  
Could you run your application with TRACE logging turned on to see if there are 
any messages concerning the marshaller?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072863#4072863

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: processing order of windows within page

2007-08-10 Thread [EMAIL PROTECTED]
What if we change the engine to have parallel rendering ? Then the ordering 
would be totally random.

It's a possibility open by the JSR-168 spec.

Look at PLT.5.2.4 Request Handling
anonymous wrote : The render requests may be executed sequentially or in 
parallel without any guaranteed order.

Your app must not depend on the ordering of the windows. The only guarantee you 
have is that the action phase of the triggered portlet will be called before 
any rendering.

Since all the render phases shouldn't have side-effect, it shouldn't be a 
problem.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072862#4072862

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - processing order of windows within page

2007-08-10 Thread brain101
in my page (defined in an *-object.xml file), i have 4 windows:

metaWindow
headWindow
menuWindow
contentWindow

these objects are stored in jbp_object_node as follows:
pk;path;name;parent_key;
122542;myportal.mypage;sprechtagsanmeldung;122535
122543;myportal.mypage.metaWindow;metaWindow;122542
122544;myportal.mypage.headWindow;head;122542
122545;myportal.mypage.menuWindow;menuWindow;122542
122546;myportal.mypage.contentWindow;contentWindow;122542

the primary key determines the processessing order of the windows/portlets i.e. 
headWindow (122544) will be processed before contentWindow (122546).

what i would like to do now is to set the processessing order, so that 
contentWindow is the first window/portlet that is processed. is there a 
possibility to tell jboss portal what the order will be?

portal version is 2.2

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072841#4072841

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB3 Interceptor never called - how to debug?

2007-08-10 Thread jc7442
For EJB entities:

Use @EntityListener annotation with  @PrePersist, @PostPersist, @PreRemove
@PostRemove, @PreUpdate, @PostUpdate, @PostLoad


@Interceptors works fine for session bean and MDB. I'm not sure it is supposed 
to works for entity



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072865#4072865

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - org.apache.jasper.JasperException: Unable to compile class f

2007-08-10 Thread alamandrax
Hi,

I've just finished installing the JBoss AS 4.0.5.GA using the JEMS installer 
and I configured it to install the ejb 3.0 profile.

After completing the installation, I deployed my application to the Application 
Server. Upon trying to run the application however, I encounter the following 
exception.

org.apache.jasper.JasperException: Unable to compile class for JSP
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments 
String
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | The type List is not generic; it cannot be parameterized with arguments 
String
  | 
  | An error occurred at line: 2 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Syntax error, parameterized types are only available if source level is 5.0
  | 
  | An error occurred at line: 320 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | An error occurred at line: 326 in the jsp file: /menu.jsp
  | Generated servlet error:
  | Incompatible conditional operand types Long and String
  | 
  | 
  | 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

I do not know why it asks me for a source level of 5.0. I have the Java 
1.5.0_12 SDK installed and my JAVA_HOME environment variable points to the 
installation directory. I have searched my registry to check if the JVM version 
points to an incorrect version, but haven't found anything yet. I am not sure 
about configuration options of the Tomcat server though.

Do I need to change any settings to point tomcat to the right resource for the 
JDK?

I am on a Windows Vista Home Premium machine.

Please help.

Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072868#4072868

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072868
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security JAAS/JBoss] - Re: The neverending logout topic

2007-08-10 Thread chakotey07
Hi,

Please post your config file and the location of the prop-files, too!

Cheers,
chakotey07

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072848#4072848

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectItems strange behavior

2007-08-10 Thread [EMAIL PROTECTED]
Make sure you have a h:messages component on the page and see what errors it 
gives.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072942#4072942

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectItems strange behavior

2007-08-10 Thread rodrigotico
Thanks for your answer Pete, I put h:messages component.
If a city is selected, the error is value is not valid when I submit the 
form, but I don't know why.

Is that possible: inject the client's address with the selected city?

Thanks.

Here is the complete code of the page:


  | ?xml version='1.0' encoding='ISO-8859-1'?
  | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | 
  | rich:panel xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:a=https://ajax4jsf.dev.java.net/ajax;
  | xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  | 
  | h:messages/h:messages
  | h:form
  | h:panelGrid columns=2
  | h:outputText value=Name:/h:outputText
  | h:inputText value=#{client.name}/h:inputText
  | h:outputText value=Street:/h:outputText
  | h:inputText 
value=#{client.address.street}/h:inputText
  | 
  | h:outputText value=State:/h:outputText
  | 
  | h:selectOneMenu value=#{state} id=state
  | 
valueChangeListener=#{insertClient.updateCities}
  | s:selectItems value=#{insertClient.states} 
var=state
  | label=#{state.name} 
noSelectionLabel=Please Select... /
  | a:support event=onchange 
reRender=city/a:support
  | s:convertEntity /
  | /h:selectOneMenu
  | 
  | h:outputText value=City:/h:outputText
  | h:selectOneMenu value=#{client.address.city} 
id=city
  | s:selectItems value=#{insertClient.cities} 
var=city
  | label=#{city.name} 
noSelectionLabel=Please Select... /
  | s:convertEntity /
  | /h:selectOneMenu
  | 
  | h:commandButton action=#{insertClient.saveClient} 
value=ok h:/h:commandButton
  | s:button action=#{insertClient.saveClient} value=ok 
s:/s:button
  | 
  | /h:panelGrid
  | /h:form
  | 
  | /rich:panel
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072971#4072971

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Jboss Seam+Facelet!

2007-08-10 Thread vprasanx
Hi Samdoyle,

Thanks for ur prompt reply.
But I'm yet to crack it down..

I'd successfully created  deployed a Jboss seam app with Jsf+EJB3.0.

But when it comes to implementing facelet framework into the abovesaid I'm not 
getting the app deployed.

I'd used nbfaceletssupport-0-5 for rendering Facelet dev support into NB5.5.1 
IDE
Here it adds the facelets library into war. I've done the same config to this 
app as before, but in vain.

Could U tell me exactly the libs to add to EJB  WAR modules  the config 
changes into web.xml  faces-config.xml?

Since u'd already succeeded in this, u cud really help me out with this.

Thanks,
Venkates

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072977#4072977

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072977
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - couldn't delete process definition

2007-08-10 Thread tinico
Hi,

I've a problem... I need some help... I use jBPM web-console to deploy my 
process and to delete it... I deploy lot of process and I often delete it 
because I make lot of tests !!

But, There is a problem... When I use the agument notify='yes'  on task, I 
can't delete process... When I delete notify='yes'  I can...

Here the error message :

Delete failed: An exception of type org.jbpm.JbpmException was thrown. The 
message is: couldn't delete process definition '1602' 

Someone has any idea ?? please ??? :s

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073083#4073083

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073083
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-08-10 Thread icordoba
Hi there,
thanks a lot for your reply... this is the Portal side:

@OneToMany(mappedBy=portal,fetch=FetchType.LAZY, 
cascade={CascadeType.ALL})
  | public void setUsers(SetUser users)
  | {
  | this.users = users;
  | }
  | 
  | @OneToMany(mappedBy=portal,fetch=FetchType.LAZY, 
cascade={CascadeType.ALL})
  | public SetUser getUsers()
  | {
  | return users;
  | }
  | 

and this is the user side:


  | @ManyToOne
  | public Portal getPortal()
  | {
  | return portal;
  | }
  | 
  | @ManyToOne
  | public void setPortal(Portal portal)
  | {
  | this.portal = portal;
  | }
  | 

Does it look right?

Ignacio

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073081#4073081

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073081
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Quartz Configuration not read from Properties in quartz-

2007-08-10 Thread ALRubinger
Actually, that's less ugly than my current temporary solution of having altered 
the quartz.properties file in the Quartz JAR, re-JARring it.  I'll most 
likely edit run.conf (instead of run.bat, thanks for the suggestion) to add the 
property to the java runtime.

Will have to look into a more updated version of the MBean (in TRUNK) and see 
what's involved in getting those properties loaded from the *-service.xml file 
will file a JIRA and try for a fix if its not already in place.

S,
ALR

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073114#4073114

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Using Oracle sequence with JBOSS

2007-08-10 Thread genman
This is an EJB3 question...

But anyway... Add this to your getId():

  | @GeneratedValue(strategy = GenerationType.AUTO, generator = MY_ID_SEQ)
  | 

Then declare the generator to your class declaration:

  | @SequenceGenerator(name = MY_ID_SEQ, sequenceName = MY_ID_SEQ)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073119#4073119

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073119
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem in Seam Integration testing

2007-08-10 Thread [EMAIL PROTECTED]
So is el-ri.jar in your test classpath?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073118#4073118

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to build action parameter expression for s:button wi

2007-08-10 Thread [EMAIL PROTECTED]
As Matt says try using #{trackList.dataModel} - getting EL extension working 
right in a datatable can be tricky.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073107#4073107

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread [EMAIL PROTECTED]
It should be core:init jndi-pattern=spike-ear-0.1.0/#{ejbName}/local /

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073106#4073106

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters

2007-08-10 Thread milli
Anyone?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073100#4073100

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073100
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread samdoyle
Was just curious in the case you were using a JEE5 app server. If that was the 
case the jndi pattern would be different from what you are using.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073141#4073141

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073141
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Rendering issues with TC6 in JBossAS 4.2.1

2007-08-10 Thread [EMAIL PROTECTED]
You can change the default mime types in deploy/jboss-web.deployer/conf/web.xml.

Regards,

Stan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073136#4073136

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073136
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: task-node attribute create-tasks

2007-08-10 Thread warfster
Resolved the problem by not creating the taskinstance before processinstance 
enters the task-node.

Thanks for the suggestions and comments.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073134#4073134

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread samdoyle
What server are deploying into?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073132#4073132

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Use Edit/Help modes with JSF based portlet

2007-08-10 Thread [EMAIL PROTECTED]
These links should help.  I wrote a tutorial on how to do this with MyFaces a 
long time ago.  I don't know of any really clean way to do it, but you should 
be able to get something working.
http://wiki.apache.org/myfaces/UsingPortletModes
http://wiki.apache.org/myfaces/Using_Portlets

Good luck,

Stan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073131#4073131

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073131
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: couldn't delete process definition

2007-08-10 Thread tinico
Here stackTrace :

16:39:32,248 ERROR [STDERR] org.hibernate.HibernateException: null index column 
for collection: org.jbpm.graph.def.ProcessDefinition.actions
  | at 
org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(Ljava/sql/ResultSet;[Ljava/lang/String;Lorg/hibernate/engine/SessionImplemen
  | tor;)Ljava/lang/Object;(AbstractCollectionPersister.java:687)
  | at 
org.hibernate.collection.PersistentMap.readFrom(Ljava/sql/ResultSet;Lorg/hibernate/persister/collection/CollectionPersister;Lorg/hibernate/loader/Col
  | lectionAliases;Ljava/lang/Object;)Ljava/lang/Object;(PersistentMap.java:222)
  | at 
org.hibernate.loader.Loader.readCollectionElement(Ljava/lang/Object;Ljava/io/Serializable;Lorg/hibernate/persister/collection/CollectionPersister;Lor
  | 
g/hibernate/loader/CollectionAliases;Ljava/sql/ResultSet;Lorg/hibernate/engine/SessionImplementor;)V(Loader.java:994)
  | at 
org.hibernate.loader.Loader.readCollectionElements([Ljava/lang/Object;Ljava/sql/ResultSet;Lorg/hibernate/engine/SessionImplementor;)V(Loader.java:635
  | )
  | at 
org.hibernate.loader.Loader.getRowFromResultSet(Ljava/sql/ResultSet;Lorg/hibernate/engine/SessionImplementor;Lorg/hibernate/engine/QueryParameters;[L
  | 
org/hibernate/LockMode;Lorg/hibernate/engine/EntityKey;Ljava/util/List;[Lorg/hibernate/engine/EntityKey;Z)Ljava/lang/Object;(Loader.java:580)
  | at 
org.hibernate.loader.Loader.doQuery(Lorg/hibernate/engine/SessionImplementor;Lorg/hibernate/engine/QueryParameters;Z)Ljava/util/List;(Loader.java:689
  | )
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lorg/hibernate/engine/SessionImplementor;Lorg/hibernate/engine/QueryParameters;Z)L
  | java/util/List;(Loader.java:224)
  | at 
org.hibernate.loader.Loader.loadCollection(Lorg/hibernate/engine/SessionImplementor;Ljava/io/Serializable;Lorg/hibernate/type/Type;)V(Loader.java:191
  | 9)
  | at 
org.hibernate.loader.collection.CollectionLoader.initialize(Ljava/io/Serializable;Lorg/hibernate/engine/SessionImplementor;)V(CollectionLoader.java:3
  | 6)
  | at 
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(Ljava/io/Serializable;Lorg/hibernate/engine/SessionImplementor;)V(AbstractC
  | ollectionPersister.java:541)
  | at 
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(Lorg/hibernate/event/InitializeCollectionEvent;)V(DefaultInit
  | ializeCollectionEventListener.java:60)
  | at 
org.hibernate.impl.SessionImpl.initializeCollection(Lorg/hibernate/collection/PersistentCollection;Z)V(SessionImpl.java:1705)
  | at 
org.hibernate.collection.AbstractPersistentCollection.initialize(Z)V(AbstractPersistentCollection.java:344)
  | at 
org.hibernate.collection.AbstractPersistentCollection.read()V(AbstractPersistentCollection.java:86)
  | at 
org.hibernate.collection.PersistentMap.values()Ljava/util/Collection;(PersistentMap.java:198)
  | at 
org.hibernate.type.MapType.getElementsIterator(Ljava/lang/Object;)Ljava/util/Iterator;(MapType.java:39)
  | at 
org.hibernate.type.CollectionType.getElementsIterator(Ljava/lang/Object;Lorg/hibernate/engine/SessionImplementor;)Ljava/util/Iterator;(CollectionType
  | .java:188)
  | at 
org.hibernate.engine.CascadingAction.getAllElementsIterator(Lorg/hibernate/event/EventSource;Lorg/hibernate/type/CollectionType;Ljava/lang/Object;)Lj
  | ava/util/Iterator;(CascadingAction.java:266)
  | at 
org.hibernate.engine.CascadingAction.access$100(Lorg/hibernate/event/EventSource;Lorg/hibernate/type/CollectionType;Ljava/lang/Object;)Ljava/util/Ite
  | rator;(CascadingAction.java:21)
  | at 
org.hibernate.engine.CascadingAction$2.getCascadableChildrenIterator(Lorg/hibernate/event/EventSource;Lorg/hibernate/type/CollectionType;Ljava/lang/O
  | bject;)Ljava/util/Iterator;(CascadingAction.java:52)
  | at 
org.hibernate.engine.Cascade.cascadeCollectionElements(Ljava/lang/Object;Lorg/hibernate/type/CollectionType;Lorg/hibernate/engine/CascadeStyle;Lorg/h
  | ibernate/type/Type;Ljava/lang/Object;Z)V(Cascade.java:288)
  | at 
org.hibernate.engine.Cascade.cascadeCollection(Ljava/lang/Object;Lorg/hibernate/engine/CascadeStyle;Ljava/lang/Object;Lorg/hibernate/type/CollectionT
  | ype;)V(Cascade.java:185)
  | at 
org.hibernate.engine.Cascade.cascadeAssociation(Ljava/lang/Object;Lorg/hibernate/type/Type;Lorg/hibernate/engine/CascadeStyle;Ljava/lang/Object;Z)V(C
  | ascade.java:160)
  | at 
org.hibernate.engine.Cascade.cascadeProperty(Ljava/lang/Object;Lorg/hibernate/type/Type;Lorg/hibernate/engine/CascadeStyle;Ljava/lang/Object;Z)V(Casc
  | ade.java:108)
  | at 
org.hibernate.engine.Cascade.cascade(Lorg/hibernate/persister/entity/EntityPersister;Ljava/lang/Object;Ljava/lang/Object;)V(Cascade.java:248)
  | at 

[jboss-user] [JBoss Seam] - Re: flush-mode=

2007-08-10 Thread tkalactomo
rmemoria wrote : Hi,
  | 
  | I have a workaround for that until it's not implemented in SEAM.
  | 
  | I created a bean like that:
  | 
  | package com.rmemoria.utils;
  |   | 
  |   | import org.jboss.seam.annotations.FlushModeType;
  |   | import org.jboss.seam.annotations.In;
  |   | import org.jboss.seam.annotations.Name;
  |   | import org.jboss.seam.core.Conversation;
  |   | 
  |   | @Name(beginConversationEvent)
  |   | public class BeginConversationEvent {
  |   | 
  |   | @In
  |   | private Conversation conversation;
  |   | 
  |   | public void setFlushModeManual() {
  |   | conversation.changeFlushMode(FlushModeType.MANUAL);
  |   | }
  |   | }
  | 
  | And in components.xml include the following line:
  | 
  | event type=org.jboss.seam.beginConversation
  |   | action 
expression=#{beginConversationEvent.setFlushModeManual} /
  |   | /event
  | 
  | So every long running conversation you start will be flush-mode=manual.
  | 
  | regards,
  | Ricardo

Thanks, very good workaround.i will implement it myself too.
Best regards

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073153#4073153

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - [Rules] Seam security and validating entities

2007-08-10 Thread andrew.rw.robinson
I've got the seam rules engine installed and am trying to write a drl file to 
grant access to my entities. I have a class that is restricted. Relevant beans:

@Name(calendar)
CustomerCalendar {
  members : List
}
CalendarMember {
  user : User
}
User {
  username : String
}

The CustomerCalendar entity bean is restricted. I want it to be accessed only 
by users that are logged in and that are members of the calendar.

So my rules text must be something like:
if (check is read calendar)
and the calendar has a member with the user that is the current logged in user.

My login code has asserted the User object into the security context.

What I've got so far (that is not valid):

  | rule Read calendar
  |   no-loop
  |   activation-group permissions
  | when
  |   check: PermissionCheck(name == calendar, action == read, granted == 
false)
  |   user: User()
  |   CustomerCalendar(members : members contains CalendarMember(user == user))
  | then
  |   check.grant();
  | end;

How can I write such a rule? The user guide for drools has extremely simple 
examples of contains (containing strings, not other objects).

Thanks,
Andrew

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073152#4073152

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: why need to restart jboss after network changed

2007-08-10 Thread salewski
Perhaps you're getting bit by Java's default DNS caching?

http://www.rgagnon.com/javadetails/java-0445.html
http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html

From $JRE/lib/security/java.security:

#
# The Java-level namelookup cache policy for successful lookups:
#
# any negative value: caching forever
# any positive value: the number of seconds to cache an address for
# zero: do not cache
#
# default value is forever (FOREVER). For security reasons, this
# caching is made forever when a security manager is set.
#
# NOTE: setting this to anything other than the default value can have
#   serious security implications. Do not set it unless 
#   you are sure you are not exposed to DNS spoofing attack.
#
#networkaddress.cache.ttl=-1 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073138#4073138

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Multiple Objects under a single key in POJOCache?

2007-08-10 Thread BruceSpringfield
from the findAll(id) method in POJOCache, I assumed that multiple objects can 
be stored under a single id.  Is this not the case?

If yes, how do I do it?

I tried to attach() different objects with the same id, but then when I find() 
using that id, I get back the object that I last attached with that Id.

If I use findAll(), I only get back a Map with size 1.  And the object I get 
back with findAll() causes the program to freeze.  


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073135#4073135

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - read only POJOCache objects?

2007-08-10 Thread BruceSpringfield
Is there a way to retrieve objects from POJOCache that are read only?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073148#4073148

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073148
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - why need to restart jboss after network changed

2007-08-10 Thread [EMAIL PROTECTED]
Hi,

I'm using JBoss4.x, the problem/question is, whenever a network connection 
change (ex. changed to wireless, cable unplug and plug again...), then there is 
exception:

ERROR [UDP] exception sending msg (to dest=228.1.2.4:45577): 
java.net.NoRouteToHostException: No route to host: Datagram send failed,,,

and the client app (even in same machine) has to restart to get connecting with 
jboss, or jboss has to restart..

I'm wondering, how to fix thus issue?

Thanks
John

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073130#4073130

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam s:link fetchs list multiple times. big error !

2007-08-10 Thread bulloncito
This is the simplest EntityQuery ever, but for any other case, from a more 
complex one, to unwrap methods or other dynamically calculated lists, not 
caching the results will be a performance issue. Maybe even a concurrent 
request could change some parameter that would end up giving different result 
set.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073117#4073117

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Information on jPDL package

2007-08-10 Thread kukeltje
if by 'speedly; you mean without redeploying a e.g. war file then yes

classes in the PD zip go first

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073127#4073127

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073127
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Database Documentation

2007-08-10 Thread kukeltje
there is a nice sticky post at the top of this forum about the data model. It 
is for 3.1 but mostly the same for 3.2

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073126#4073126

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073126
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable

2007-08-10 Thread msduk
local-tx-datasource
  | jndi-namenrg2Datasource/jndi-name
  | connection-urljdbc:mysql://localhost:3306/db/connection-url
  | driver-classcom.mysql.jdbc.Driver/driver-class
  | user-namedb/user-name
  | passwordpass/password
  | exception-sorter-class-name
  | org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | /exception-sorter-class-name
  | metadata
  | type-mappingmySQL/type-mapping
  | /metadata
  | 
valid-connection-checker-class-namecom.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker/valid-connection-checker-class-name
  | check-valid-connection-sqlSELECT count(warehouseId) FROM 
warehouse/check-valid-connection-sql
  | new-connection-sqlSELECT count(warehouseId) FROM 
warehouse/new-connection-sql
  | /local-tx-datasource

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073108#4073108

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073108
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: couldn't delete process definition

2007-08-10 Thread kukeltje
show stacktraces..., versions etc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073125#4073125

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073125
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Business Calendar modified property

2007-08-10 Thread kukeltje
if you read it somewhere please post where... afaik, it should not be in the 
root of the classpath but at the front of the classpath and have a specific 
'package' name (just like the original one)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073124#4073124

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam deploying a class from my war file from path WEb-IN

2007-08-10 Thread birwin
Well, after more investigation, I discovered it was not my facelets JAR file 
that fixed this bug, but rather placing a seam.properties file in my 
WEB-INF/classes directory. The file is empty, but it triggers the seam scanner 
and deployer to look at the files inside the war's classes directory.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073105#4073105

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to build action parameter expression for s:button wi

2007-08-10 Thread ASavitsky
You should be able to make it working without using the data model, or at least 
I was able to. Try placing the trackList (it's an EntityQuery, right?) inside a 
long-running conversation, as it might be that, by the time the playMediaId() 
is called, the trackList is already expired, so track.id would evaluate to null.

Then again, it's all pure guesswork, it would help to see more configuration 
than that...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073102#4073102

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073102
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Tool for developing JSF controls in JBoss portal

2007-08-10 Thread viggo.navarsete
Have you looked at Netbeans? Here's a blog entry about visual JSF portlet 
development with Netbeans:
http://blogs.sun.com/satya/entry/build_jsf_portlet_with_netbeans

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073101#4073101

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Connection handle has been closed and is unusable

2007-08-10 Thread monkeyden
The real question is, how do you ever see the issue when using 
check-valid-connection-sql?  The connection is obviously bad but that fact 
wasn't picked up by the check.  Post the whole local-tx-datasource node,  
minus the p/w, of course.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073099#4073099

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073099
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Information on jPDL package

2007-08-10 Thread tinico
Hi,

Thanks for all !! There is no lot of think, and I'm french, so, I can't 
understand  all think !!!

If I've understand well:

- If I deploy process-definition with classes in the same file, the classes 
will be written in the database and will be use more speedly !!

- If I deploy process-definition without classes but with the classes in the 
web-app WEB-INF/Classes folder, it became less speed, but, it possible to 
change only class file without redeploying process (impossible in the first 
case)...

You confirm ??

If I deploy the classes in the process zip file and in the web-inf/classes 
folder ?? What are the classes which will be executed ??

Thank you... because I've lot of compréhension problem on this subject !!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073098#4073098

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073098

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Build Tools

2007-08-10 Thread mlewis158
I am really not a java developer but am tasked with finding a build tool for 
my company.  My company has been using jboss, eclipse, and myeclipse products.  
A new staff member mentioned Maven.  In beginning my research I found 
Buckminster, Ant, Buildr.  In reading about Maven, I noted proxy info (logonID 
and password) is stored in plain text.  Are there any products where passwords 
are not stored in plain text?  Does JBOSS or any associated products offer 
automated build and automated deploy?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073097#4073097

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073097
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - Using Oracle sequence with JBOSS

2007-08-10 Thread neisann
Hi,

I'm trying to use JBOSS IDE for Eclipse but I'm having trouble using an 
automatic generated id populated from a Oracle sequence previously created in 
the database. I guess there is some aditional configuration that I need to do 
in my application but I don't know what it is.

In the persistence XML I have:


  | ?xml version=1.0 encoding=UTF-8?
  | persistence
  |   persistence-unit name=shoestringPU
  |   jta-data-sourcejava:/OracleDS/jta-data-source
  | properties
  |   property name=hibernate.dialect 
  | value=org.hibernate.dialect.OracleDialect/
  | /properties
  |   /persistence-unit
  | /persistence
  | 

At the entity bean I have:


  | @Id
  | @GeneratedValue(strategy=GenerationType.AUTO)   
  | public int getId() {
  | return id;
  | }
  | 

I'm getting the error java.sql.SQLException: ORA-02289: sequence does not 
exist.

Thank you.

Nei

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073094#4073094

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - POJOCache detach()? Sort Of?

2007-08-10 Thread BruceSpringfield
I need to detach an object, but then have it also stay in the cache to be 
accessed by others if needed or by my own instance if needed again.

But I just need to detach() just my reference to the object, so I have my own 
free object.  Is there an easy way to do this with POJOCache?  Or does this 
feature already exist?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073092#4073092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EJB 3.0 Seam Component Not Found

2007-08-10 Thread birwin
First of all, thank you to everyone who responded to my question. It makes one 
a little more comfortable when there is good peer support from a community as 
there is for SEAM. Here is the information you asked for:

Seam version is 2.0.0-Beta1. No EJBs are found (This is actually the only EJB 
as I am just learning SEAM and this is my first attempt at an EJB). And 
finally, it appears that the build script has not filtered the components.xml 
file. It is deployed as it is displayed in this document.

I did not know the build script was supposed to replace the components.xml with 
the actual EJB declarations. I am using Maven and so I will have to investigate 
how to do this. Probably this is my issue.

I will look into this and let you know what I find.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073090#4073090

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-08-10 Thread waynebaylor
i think it's safe to assume that you have the mappedBy attribute set for the 
User side of the relationship, right?

the mappedBy attribute basically says which side of the relationship is 
responsible for maintaining the DB foreign key link. so, you could try this in 
your existing code:

  | User[] users = portal.getUsers();
  | for(User user : users)
  | {
  |   user.setPortal(null); //or user.removePortal(), whatever your method is
  | }
  | 
  | em.remove(portal);
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073070#4073070

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Type Substitution doesn't work with Schema2Java Client appro

2007-08-10 Thread M_schumpa
Dear Community,

I have written a simple Web Service which uses Type Substitution (uses the 
@XmlSeeAlso annotation)

Everything works fine if I use the classes, that are used by by the service, in 
the Client.

But when I try to use the from WSDL generated classes in the Client, only the 
Super Classes are passed to the Web Service. So no Type Substitution at all.

I have used the wsconsume -t 2.1 switch, so the @XmlSeeAlso annotations are 
present in the generated classes.

I tried the same with GlassFish and there this proplem doesn't exist.

I compared the generated classes and I found no differences with the 
annotations. Only some version comments were slightly different (JAX-WS RI 
2.1.2 - JAX-WS RI 2.1.1)

I'm using the JBoss 4.2.1GA release where I updated the JBossWS modul to 
version 2.0.0GA.

Anybody here who has a clue on how to fix this problem?

Thanks in advance.

Greetings
m_schumpa 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073063#4073063

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clients on a different Class C Network cannot connect

2007-08-10 Thread ekaltenbach
Here is some additional information.  We can ping the JBoss machine from the 
other machine, running on the different class C network.  We can even bring up 
the JBoss web-console from the machine of the different class C network.  So, 
we know the problem is not in the network hardware, a firewall, etc.  The only 
thing that does not work is a JMS connection between the two. 
Does anybody know how to work around this problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073062#4073062

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: org.apache.jasper.JasperException: Unable to compile cla

2007-08-10 Thread alamandrax
Hi.

I think I've fixed the issue. The problem was not with the configuration files 
or the jar files. Apparently it was Vista all along.

I had not seen 
http://www.hanselman.com/blog/VistasShowCompatibilityFilesAndTheScrumptiousWonderThatIsFileVirtualization.aspx
 so was clueless about Vista's virtualization scheme.

I was directly opening up the web.xml file from explorer (which was not 
launched as an administrator) and ended up modifying a copy of the web.xml file 
that was stored in a virtual folder and not the actual file itself.

The fix was to copy the web.xml file to the desktop, modify the file on the 
desktop, and copy it back to the c:\program files\..\conf\web.xml location. 
This gives you a UAC prompt and indicates that the file is actually being 
modified.

I did this, restarted the server and now the application works just fine (well, 
from a deployment point of view - the developers are still working on the code).

Thanks again for your help. Jot this one down to my ignorance of the OS.[/url]

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073057#4073057

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073057
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: UsingWebSphereMQSeriesWithJBossASPart4

2007-08-10 Thread [EMAIL PROTECTED]
JCA1.5 = jboss4.0.x

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073055#4073055

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073055
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem in Seam Integration testing

2007-08-10 Thread EagleEye
As far as I know, withhin testing stuff You should use the getInstance() method 
of the SeamTest

Cuz it has a lot MockImplementations.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073054#4073054

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073054
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: SybXADataSource configuration

2007-08-10 Thread [EMAIL PROTECTED]
This will be in docs/examples/jca in the next release, thanks.
http://jira.jboss.com/jira/browse/JBAS-4601

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073047#4073047

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073047
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Custom instantiator specified with 'config-type' on a De

2007-08-10 Thread pirx
So, does this mean, that this 'feature' will vanish or is 'unsupportred' ? That 
would be really a pitty, since using a customer instantiator for creating your 
delegation classes allows to perform some quite nice things.

E.g. I use it to chain the ActionHandler to a Spring container so that it gets 
injected all service it declares (autowire by type). Or you can use it 
explicitely.

You might want have a look at 
http://opensource.atlassian.com/projects/spring/browse/MOD-297
how powerful this feature is.

Well, at least I was lucky that time ;-) And I really thought, I've read this 
somewhere in the documentation ...

Thanks very much for your response, this was my first post (out of   ~5) to 
which I got some response at all.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073046#4073046

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073046
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectItems noSelectionLabel

2007-08-10 Thread [EMAIL PROTECTED]
if you choose the noSelectionLabel, the value of the h:selectXXX will be set to 
null.  If you want an actual value, I suggest you add it to the 
#{collaborateurHome.situationFamilleKeys} list.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073045#4073045

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073045
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Joined Inheritance Strategy Problem

2007-08-10 Thread grdzeli_kaci
it works, fine,
thank you very much.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073044#4073044

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073044
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to build action parameter expression for s:button wi

2007-08-10 Thread lpmon
Thanks for the help.  I will look at a possible solution with @DataModel and 
@DataModelSelection.  


FYI: Example 1.11 in Seam reference 1.2.1.GA is relevant to @DataModel

My apologies.  I am new to Seam and misunderstood what you meant by data model. 
 I thought you guys were referring to my database. To help other newbies it 
will be more clear if one uses  @DataModel in a post to indicate it is the Seam 
annotation.  

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073162#4073162

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073162
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - s:decorate enhancement

2007-08-10 Thread barthjj
Is it possible to pass the 'disabled' attribute into s:decorate like 
#{required} and #{invalid} are?  Has anyone figured out a nice workaround for 
this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073168#4073168

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073168
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:decorate enhancement

2007-08-10 Thread [EMAIL PROTECTED]
Please file a feature request in JIRA and we can implement that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073169#4073169

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: Using a 3rd-party JMS provider in JBoss (Sun Message Que

2007-08-10 Thread adamhmitchell
I'm getting closer to answering my own question.  Section 6.2 of the JBoss AS 
docs explain how to reference objects from your RAR files and bind them into 
JNDI.  I was able to expose my javax.jms.ConnectionFactory with a ds.xml file:


  | connection-factories
  | no-tx-connection-factory
  | jndi-nameMyConnectionFactory/jndi-name
  | rar-nameimqjmsra.rar/rar-name
  | connection-definition
  | javax.jms.ConnectionFactory
  | /connection-definition
  | /no-tx-connection-factory
  | /connection-factories
  | 

I'm still looking for instructions on how to expose existing topics and queues 
through JNDI.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073172#4073172

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073172
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam webservice conversation id issues

2007-08-10 Thread rvkishore
OK, the exception goes away when I add an aribitrary conversation Id to the 
SOAP headers. But it seems kind of counter intuitive to have a conversation id 
in the soap request even for the login service. Isn;t the conversation supposed 
to be generated and managed by seam? Or am I missing the point completely?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073174#4073174

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Interrupting a stateful session bean in use

2007-08-10 Thread mike.nardone
Excuse me, I misunderstood.  We are currently setting a flag in the client.  
However, it's a single method call in teh SFSB that eats a ton of processing, 
and so while we can have the bean check the flag between methods, that doesn't 
help us as much as we might like.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073175#4073175

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Exception handling problem

2007-08-10 Thread [EMAIL PROTECTED]
This is almost certainly related to icefaces, so I suggest you ask on their 
forums as well :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073178#4073178

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073178
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters

2007-08-10 Thread [EMAIL PROTECTED]
http://docs.jboss.com/seam/latest-2.0/reference/en/html/events.html#d0e3813

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073180#4073180

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: 2.0.0BETA1 jboss-seam-ui.jar doesn't match source

2007-08-10 Thread [EMAIL PROTECTED]
It looks functionally identical to me.  I guess your decompilation stripped all 
the annotations.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073181#4073181

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Begin/End Conversation

2007-08-10 Thread deved
Is it possible to begin or end a long-running conversation manually?
MenuManager.java

  |   if (tableModel != null) {
  |  tableModel.end();
  |   }
  |   tableModel = (TableModel) Component.getInstance(beanName);
  |   tableModel.begin();
  | 
TableModel.java
@Name(tableModel)
  | @Conversational
  | @Scope(ScopeType.CONVERSATION)
  | public class TableModelBean {
  |   @Begin
  |   public void begin() {
  |   }
  |  @End  
  |   @Destroy
  |   public void end() {
  |   }
  | }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073182#4073182

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters

2007-08-10 Thread milli
Thanks Pete. Meanwhile I tried to debug and found out it works only if you 
define it in page.xml and not when you use the annotation @RequestParameter.

Shouldn't passing parmeters to the page either by defining in pages.xml or by 
annotation @RequestParameter have the same behaviour?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073183#4073183

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073183
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters

2007-08-10 Thread [EMAIL PROTECTED]
No. They are not semantically identical.  @RequestParameter is simply for 
injecting a request parameter, page parameters have a deeper effect on your app 
(parameter propagation, setting values on your model, application of 
converters).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073184#4073184

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073184
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Begin/End Conversation

2007-08-10 Thread [EMAIL PROTECTED]
Conversation.instance().end() - there are few methods for various end types.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073186#4073186

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - JMS Bridge Question

2007-08-10 Thread viniciuscarvalho
Hello there! I'm configuring a jms-bridge here. Both sides have identical 
configuration:

*JBoss AS 4.2.0.GA
*JBoss Messaging 1.4.0CR1

On the producer side I have a queue named CMSOutboundQueue (the source)
and on the receiver side (CMSInboundQueue). Here's my configuration:

My remote Loader (jms-ds.xml)

  | mbean code=org.jboss.jms.jndi.JMSProviderLoader
  |  name=jboss.messaging:service=JMSProviderLoader,name=CSMJMSProvider
  | attribute name=ProviderNameCSMJMSProvider/attribute
  | attribute name=ProviderAdapterClass
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | /attribute
  | 
  | attribute name=FactoryRefjava:/XAConnectionFactory/attribute
  | 
  | attribute name=QueueFactoryRefjava:/XAConnectionFactory/attribute
  | 
  | attribute name=TopicFactoryRefjava:/XAConnectionFactory/attribute
  | 
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=192.168.0.22:1099
  | /attribute
  | 
  |   /mbean
  | 

my bridge-service

  | ?xml version=1.0 encoding=UTF-8?
  | 
  | !--
  |  Example deployment descriptor for a message bridge
  | 
  |  $Id: messaging-secure-socket-service.xml 2737 2007-05-29 17:56:49Z 
timfox $
  |  --
  | 
  | server
  | 
  | 
  |mbean code=org.jboss.jms.server.bridge.BridgeService
  |   name=jboss.messaging:service=Bridge,name=TestBridge
  |   xmbean-dd=xmdesc/Bridge-xmbean.xml
  |   
  |   !-- The JMS provider loader that is used to lookup the source 
destination --   
  |   depends 
optional-attribute-name=SourceProviderLoaderjboss.messaging:service=JMSProviderLoader,name=JMSProvider/depends
 
  |   
  |   !-- The JMS provider loader that is used to lookup the target 
destination --
  |   depends 
optional-attribute-name=TargetProviderLoaderjboss.messaging:service=JMSProviderLoader,name=CSMJMSProvider/depends

  |   
  |   !-- The JNDI lookup for the source destination --
  |   attribute 
name=SourceDestinationLookup/queue/CSMOutboundQueue/attribute 
  |   
  |   !-- The JNDI lookup for the target destination --
  |   attribute 
name=TargetDestinationLookup/queue/CSMInboundQueue/attribute
  |   
  |   !-- The username to use for the source connection 
  |   attribute name=SourceUsernamebob/attribute
  |   --
  |   
  |   !-- The password to use for the source connection
  |   attribute name=SourcePasswordcheesecake/attribute
  |   --
  |   
  |   !-- The username to use for the target connection
  |   attribute name=TargetUsernamemary/attribute
  |   --
  |   
  |   !-- The password to use for the target connection
  |   attribute name=TargetPasswordhotdog/attribute
  |   --
  |   
  |   !-- Optional: The Quality Of Service mode to use, one of:
  |QOS_AT_MOST_ONCE = 0;
  |QOS_DUPLICATES_OK = 1;
  |QOS_ONCE_AND_ONLY_ONCE = 2; --
  |   attribute name=QualityOfServiceMode0/attribute
  |   
  |   !-- JMS selector to use for consuming messages from the source
  |   attribute name=Selectorspecify jms selector here/attribute
  |   --
  |   
  |   !-- The maximum number of messages to consume from the source before 
sending to the target --
  |   attribute name=MaxBatchSize5/attribute 
  |   
  |   !-- The maximum time to wait (in ms) before sending a batch to the 
target even if MaxBatchSize is not exceeded.
  |-1 means wait forever --   
  |   attribute name=MaxBatchTime-1/attribute
  |   
  |   !-- If consuming from a durable subscription this is the 
subscription name
  |   attribute name=SubNamemysub/attribute
  |   --
  |   
  |   !-- If consuming from a durable subscription this is the client ID 
to use
  |   attribute name=ClientIDmyClientID/attribute
  |   --
  |   
  |   !-- The number of ms to wait between connection retrues in the event 
connections to source or target fail --
  |   attribute name=FailureRetryInterval5000/attribute  
  |   
  |   !-- The maximum number of connection retries to make in case of 
failure, before giving up
  |-1 means try forever--
  |   attribute name=MaxRetries-1/attribute
  | 
  |   !-- If true then the message id of the message before bridging will 
be added as a header to the message so it is available
  |to the receiver. Can then be sent as correlation id to correlate 
in a distributed request-response --
  |   attribute name=AddMessageIDInHeaderfalse/attribute
  |   
  | /mbean
  |  
  |  /server
  | 

I guess I can skip the destinations config files since they are working ok ;)

So I have a sessionbean sending the message to my source queue, but I get this 
error:


  | 

[jboss-user] [JBoss Seam] - Re: Jboss Seam+Facelet!

2007-08-10 Thread samdoyle
And one more very important thing.

The jndi-pattern that you might see in the examples or seam-gen applications 
need to be changed to.


  | java:comp/env/your ear name/#{ejbName}/local
  | 

The JEE5 examples have this set properly.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073149#4073149

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073149
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Login Redirection not propagating GET parameters

2007-08-10 Thread milli
I saw Gavin's response in an earlier posting with the similar problem 
http://www.jboss.com/index.html?module=bbop=viewtopict=101357start=20 that 
you need to define them as page parameters.

I have it as @RequestParameter in the backing bean. Isn't it already defined as 
a page parameter? Or do I need to do something else?

Please help!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073110#4073110

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Working example por OneToMany cascade remove?

2007-08-10 Thread icordoba
OK.. thanks for the reply.
This way, Users will the orphan and I need the special Hibernate annotation for 
orphans to be removed, right?

Is there a way of making JBoss really remove User entities itself without that 
Hibernate-specific annotation?

I can't understand what is then the pourpose of the CascadeType.REMOVE (or ALL 
in this case) as I must unlink users from portals setting Portal value to 
null before removing the portal. Does cascading do any work then?

Thanks a lot,
Ignacio

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073093#4073093

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073093
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Business Calendar modified property

2007-08-10 Thread Heiner Niehues
I read that in the documentation of jbpm-jpdl-3.2.1

JBoss jBPM jPDL 3.2
jBPM jPDL User Guide


15.2. Calendar configuration

The file org/jbpm/calendar/jbpm.business.calendar.properties specifies what 
business hours are. The configuration file can be customized and a modified 
copy can be placed in the root of the classpath.


And i stored the file with the same name like in the JAR archive
jbpm.business.calendar.properties in the 
/webapp//classes/jbpm.business.calendar.properties
and i also tried 
/webapp//libs/jbpm.business.calendar.properties

in the last folder are also the libs files of the jbpm:
jbpm-jpdl.jar
jbpm-identity.jar










View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073156#4073156

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Cannot retrieve user: Unable to locate current JTA trans

2007-08-10 Thread kpalania
Ok in this case you have no choice but to go the Tomcat Valve/Custom 
Authenticator route. 

Sohil - thanks very much for suggesting this! I've successfully implemented a 
custom Tomcat Authenticator/Value, and that solves the problem, and I've been 
able to achieve exactly what I wanted.

Needless to mention, some hacks were required but it ultimately works!!

Cool,  thanks again!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073177#4073177

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to build action parameter expression for s:button wi

2007-08-10 Thread [EMAIL PROTECTED]
When we say data model we are referring to the JSF DataModel.  @DataModel is 
only one way of getting it, another is the #{entityQuery.dataModel}.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073164#4073164

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073164
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: validation selectManyListbox

2007-08-10 Thread wiberto
That did it. I was playing around with the entity itself and not with the 
entity manager. once I changed it to use @In instead of @PersistenceContext and 
I kept the manager defined in the components.xml it started working fine. 

At least with all this playing around I learned a bit of the internals of Seam 
and you got to fix something in the code!!


Thanks for the help.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073161#4073161

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073161
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >