[jboss-user] [JBoss Seam] - Re: Pros/Cons of war vs. ear deployments (Jboss 4.2)

2007-04-17 Thread stu2
Thanks for the info Christian.  You saved me from jumping in to find this out 
myself.  Agreed - the xhtml reloading is the most important, as everything else 
can be unit tested.

I am intrigued by the JBoss 5 capabilities though.  I'll wait until it gets 
fully baked.

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

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


[jboss-user] [Clustering/JBoss] - Re: Tomcat Cluster Error

2007-04-17 Thread baskaran_c
Thanks a lot Brian Stansberry, Its working fine. 

Baskaran
Tokyo, Japan

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

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


[jboss-user] [EJB/JBoss] - Web service with EJB3.0

2007-04-17 Thread spinergywmy
Hi,

   I'm new to web service, and I'm using EJB3.0 to develop the project using 
eclipse jboss IDE tool. The propose project network architecture will have 3 
server, one for apache web server, one jboss application server, and the last 
one will be treated as index/search server. The request will come from AS jboss 
to index/search server and response back to AS jboss. Therefore, I choose to 
use jboss web service. Unfortunately, I'm really not to sure how to develop a 
web service and interact between 2 servers, and how the wsdl is generated 
through build.xml?

Is anyone can guide me on how to build the web service or any examples or 
good tutorials that I can go through. Thank you.

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

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


[jboss-user] [Performance Tuning] - stack size limit

2007-04-17 Thread bentins
I've been reading through the posts here. I saw that it was recommended in many 
places to do the following setting on solaris:

  | -XX:ThreadStackSize=128k
  | 

So I did it! But when I ran it I got an error stating that this new setting of 
131072 Kb exceeds the exiting limit of 8192 kB. When I changed the limit to 
131072 I got a different error stating:


  | Exception in thread main java.lang.OutOfMemoryError: unable to create new 
native thread
  | at java.lang.Thread.start(Native Method)
  | at org.jboss.Main.main(Main.java:450)
  | 

can someone please shed some light. If my original limit is smaller and my 
application works (although I do have performance problems) Do I still have to 
change this?

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

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


[jboss-user] [JBoss/Spring Integration] - Re: JMX deployment in JBOSS using Spring Descriptor

2007-04-17 Thread sundareshraju
alesj wrote : What Spring descriptor?
  | Which Ant script?
  | And what has this got to do with JBoss/Spring integration: 
http://java.sys-con.com/read/180386.htm ?
I need to deploy the spring module as SAR in JBOSS using Ant or Maven2 tools 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037839
___
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-04-17 Thread chakotey07
Hi again,

I solved Question 1 ... at least for me ...
anonymous wrote : Thus, I switched to Form Auth (incl. j_security_check) ... 
session.invalidate does not work neither. Wrong ... it works, but the browser 
caches the credentials and performs itself a re-login (right?)
I first used a JSF Web Project - I guess I missed a configuration because the 
Form Auth really didn't work. Testing the same code within a normal Web 
Project - it works...
Maybe a (my) JSF prob, but in fact I wear sackcloth and ashes regarding 
question 1 ;-)

Especially Question 2 would yet be extreme interesting!

Thx





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

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


[jboss-user] [JBoss/Spring Integration] - Re: JMX deployment in JBOSS using Spring Descriptor

2007-04-17 Thread alesj
And ... what's the problem with just doing it?

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

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


[jboss-user] [JBoss Seam] - Re: Framework: Counting query entities

2007-04-17 Thread CptnKirk
Looks like a problem to me.  As a work around try something like:
@Name(myQuery)
  | public class MyQuery extends EntityQuery
  | {
  | protected String getCountEjbql()
  | {
  | return select count(*) without fetch;
  | }
  | 
  | public String getEjbql()
  | {
  | return original query;
  | }
  | }
  | 
Not as great as the components.xml solution, but should keep you functioning 
until this is sorted out.

Oh what the heck, you should be able to smack things around a bit.  Maybe even 
even include some components.xml like this.
component name=someQuery auto-create=true class=x.y.MyQuery
  |property name=countEjbqlselect count(*) no fetch/property
  |property name=ejbqloriginal/property
  | /component
  |
  | component name=OtherQuery auto-create=true class=x.y.MyQuery
  |property name=countEjbql/property
  |property name=ejbql/property
  | /component

not sure if the countEjbql stuff has a public setter might need to add one.  I 
guess in the end you have something like:
public class PersonQuery extends EntityQuery
  | {
  | private String countEjbql;
  | 
  | protected String getCountEjbql()
  | {
  | return countEjbql;
  | }
  | 
  | public void setCountEjbql(String query)
  | {
  | countEjbql = query;
  | }
  | }
I haven't tried any of this, but it sounds about right to me.  Let me know.

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

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


[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol

2007-04-17 Thread PJDev
Hi All,

I can't login jbpm-conlose from http://localhost:8080/jbpm-console.
I copy jbpm-console.war from jbpm-jpdl-3.2 GA to server\default\deploy and 
change hibernate config from HSQL to MySQL

property 
name=hibernate.dialectorg.hibernate.dialect.MySQLInnoDBDialect/property
  | property 
name=hibernate.connection.datasourcejava:/jdbc/JbpmDS/property
  | 
  | property 
name=hibernate.cache.provider_classorg.hibernate.cache.HashtableCacheProvider/property

in MySQL i have one user(ernie) but loginpage is show 4 users 
 
UsernamePassword  Roles 
  | ernie   ernie  participant, manager, 
administrator 
  | bert bert   participant 
  | cookie monstercookie monster   participant 
  | grover  grover   participant 
 
on start up no error when i login console is show error

[UsersRolesLoginModule] Failed to load users/passwords/role files
  | java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found
  | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at javax.security.auth.login.LoginContext.invoke(Unknown Source)
  | at javax.security.auth.login.LoginContext.access$000(Unknown Source)
  | at javax.security.auth.login.LoginContext$4.run(Unknown Source)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
  | at javax.security.auth.login.LoginContext.login(Unknown Source)
  | at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
  | at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
  | at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
  | at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
  | at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

I don't know, step to deploy is correct ? 
Any one have step by step to deploy jbpm-console.war, please advise.


Best Regard,

AkikoFukuoka

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

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


[jboss-user] [JBoss Seam] - Re: Framework: Counting query entities

2007-04-17 Thread CptnKirk
Oops, PersonQuery class in the last code block should be MyQuery.

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Problem using Spring + JPA + Struts

2007-04-17 Thread alesj
It looks like you've got incompatible versions - Hibernate Core vs. Hibernate 
EM.

btw: how you managed to post this question which is about Hibernate and Spring 
+ Struts into JBoss/Spring integration?

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

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


[jboss-user] [JBoss jBPM] - Re: Can't deploy my BPEL process to jBPM BPEL 1.1 Beta3

2007-04-17 Thread agusgr
Well, try to move the import statement in PlanetServiceArtifacts.wsdl at the 
beginning, just after the definition, like this:?xml version=1.0 
encoding=UTF-8?
  | definitions 
xmlns:bpws=http://schemas.xmlsoap.org/ws/2004/03/business-process/;
  |  xmlns:plnk=http://schemas.xmlsoap.org/ws/2004/03/partner-link/; 
  | xmlns:tns=http://planets.euArtifacts; 
  | xmlns:wsdl=http://pluto.researchstudio.at/ibpm/DROIDService.jws; 
  | xmlns:wsdl1=http://pluto.researchstudio.at/ibpm/MigrateService.jws; 
  | name=PlanetsServiceArtifacts 
  | targetNamespace=http://planets.euArtifacts; 
  | xmlns=http://schemas.xmlsoap.org/wsdl/;
  | 
  | import location=droid.wsdl 
namespace=http://pluto.researchstudio.at/ibpm/DROIDService.jws/
  | import location=migration.wsdl 
namespace=http://pluto.researchstudio.at/ibpm/MigrateService.jws/
  | 
  | plnk:partnerLinkType name=DROID-PLKT
  | plnk:role name=DROIDService portType=wsdl:DROIDService/
  | /plnk:partnerLinkType
  | plnk:partnerLinkType name=Migration-PLKT
  | plnk:role name=MigrationService portType=wsdl1:MigrateService/
  | /plnk:partnerLinkType
  | /definitions

Read this post,
http://www.jboss.com/index.html?module=bbop=viewtopict=102501
I had the same problem as you.
I think that you can deploy your bpel process well with this changes.
Regards,

Agus

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

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


[jboss-user] [Microcontainer] - Re: Urgent! In container automated testing with JBoss

2007-04-17 Thread ushasagi
Hi,

I did not get why the following URL is referred.
http://wiki.jboss.org/wiki/Wiki.jsp?page=EmbeddedAndTomcat
I just wanted to know if I am missing in any concept. Please let me know if 
there is any specific reason for referring to Embedded JBoss with tomcat.

We require to use testing framework (testNG) to test the application running in 
JBoss. Our application cannot run without container as it is tighly bound with 
container services(JMS, MDB). 



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

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


[jboss-user] [JBoss/Spring Integration] - READ THIS FIRST: The actual JBoss/Spring integration meaning

2007-04-17 Thread alesj
Due to recent 'illegal' posts growning number - not getting even close to the 
actual JBoss/Spring integration meaning, all future posts that have nothing to 
do with any of this:
 - http://java.sys-con.com/read/180386.htm
 - http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSpringIntegration
 - http://sourceforge.net/project/showfiles.php?group_id=22866package_id=161914

will beremoved!


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

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


[jboss-user] [JBoss Portal] - Re: jsf framework

2007-04-17 Thread leohol
At the moment I'm doing a research on possible development technologies for a 
portlet enabled application. Since it is my first time I'm doing this kind of 
development and I'm comming from the servlet world I have quit good experiences 
with jsf frameworks. Do you have any suggestions for similar apporches (Best 
practice) for the creation of the forms?

Thanks
  Leo

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

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


[jboss-user] [EJB 3.0] - Re: EntityManager available outside container ?

2007-04-17 Thread gbasilico
Thank you for your reply.

That's what i was thinking, unfortunately... In fact, i managed to access to 
the entitymanager thanks to a session bean or a servlet, which both are on the 
server side, but not from my client... Too bad.

A last question : do you think another container (Glassfish or another one) 
could have implemented that ? (i can dream, no ? ;-) )

Regards,

Guillaume

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

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


[jboss-user] [Microcontainer] - Re: Urgent! In container automated testing with JBoss

2007-04-17 Thread ushasagi
Thanks so much for taking time to reply.

Would like to know the following, please help us in understanding and 
implementing the following
1. Is it possible to use testing framework like testNG for testing application 
running within application server container.
2. If yes for point 1, please provide us info or any reference on how to do 
this.
3. If No for point 1,  Is it possible to do anything on the JBoss side to 
implement automated testing which uses the container services. 

4. How do we achieve the automated testing in JBoss using testing framework 
like testnG, where the application is tightly bound to container services.

Thanks,


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

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


[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol

2007-04-17 Thread kukeltje
look at the wiki page on how to configure your jboss AS instance when not using 
the starterkit... it's all in there

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

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


[jboss-user] [JBoss Portal] - Re: cms on filesystem and clustering

2007-04-17 Thread [EMAIL PROTECTED]
It's the default storage for JackRabbit, it makes sense when you want to use a 
JCR without requiring to have a database.

In the case of JBoss Portal, 100% Filesystem is not really useful and the 
default behavior is 100% database.

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

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


[jboss-user] [JBoss Portal] - Re: jsf framework

2007-04-17 Thread [EMAIL PROTECTED]
You can still use JSF, with standard components, your own custom components, 
and from a list of components that work in a portlet environment.

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

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


[jboss-user] [JBoss jBPM] - Re: Process folder Missing

2007-04-17 Thread zolfj

thanks for your comment.can i use jbpm with swing application.i dont understand 
the folders it creates in the eclipse ide.are there any books which explains 
jbpm in details.

cheer
zolf

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Configuring oracle JDBC resource

2007-04-17 Thread kuruma45
http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html

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

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


[jboss-user] [Microcontainer] - Re: Urgent! In container automated testing with JBoss

2007-04-17 Thread alesj
Ok, you'll have to do your own 'homework' ...

I think there is a lot of generic documentation / books on this sort of 
questions.


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

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


[jboss-user] [JBoss Seam] - Re: Virtual Domains

2007-04-17 Thread KoniKoni
the app is reachable above:  domain/rentform

the goil is just above domain

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

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


[jboss-user] [JBoss Seam] - Re: @Logger not injecting anything in Controller.class

2007-04-17 Thread paradigmza
I just commented out the debug line in the source code, and everything is 
working perfecly, im not sure what to do from here, except use my custom built 
seam. (I don't really understand how the injection actually works)


  |  protected T ClassValidatorT getValidator(ClassT modelClass)
  |{
  |   return Model.forClass(modelClass).getValidator();
  |} 
  | 
  |protected void debug(Object object, Object... params)
  |{
  |   //log.debug(object, params);
  |}
  | 
  |protected void debug(Object object, Throwable t, Object... params)
  |{
  |   log.debug(object, t, params);
  |}
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Virtual Domains

2007-04-17 Thread KoniKoni
yes: 

i follow example for 4.0.2 AS:

http://www.jboss.org/wiki/Wiki.jsp?page=VirtualHosts


myhost.eu

 

and 

 jmx-console.war/WEB-INF/jboss-web.xml

jboss-web
   !-- Uncomment the security-domain to enable security. You will
  need to edit the htmladaptor login configuration to setup the
  login modules used to authentication users.
  security-domainjava:/jaas/jmx-console/security-domain
   --
   virtual-hostmyhost/virtual-host
/jboss-web



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

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


[jboss-user] [JBoss jBPM] - Re: JBPM_PROCESSDEFINITION table not found

2007-04-17 Thread anabalfun
Hello, 
I'm having the same problem. Have you solve it? How?

Thanks!!!

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

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


[jboss-user] [Management, JMX/JBoss] - Execution of twiddle from remote machine

2007-04-17 Thread thirumalmarugan
  hi i have invoke twiddle in the local host for getting the server info.it 
display the result.if i invoke the same command from remote machine it says 
error..
the error i have got is:

05:22:45,848 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: Could not obtain connection to any of 
these urls: 0.0.0.0:1099 and discovery failed with error: 
javax.naming.CommunicationException: Receive timed out caused by 
java.net.SocketTimeoutException: Receive timed out; - nested throwable: 
(javax.naming.CommunicationException: Could not obtain connection to any of 
these urls: 0.0.0.0:1099 and discovery failed with error: 
javax.naming.CommunicationException: Receive timed out caused by 
java.net.SocketTimeoutException: Receive timed out caused by 
javax.naming.CommunicationException: Failed to retrieve stub from server 
0.0.0.0:1099 caused by java.io.IOException: Exception thrown from readObject() 
on class java.rmi.server.RemoteObject: java.lang.ExceptionInInitializerError)
   at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:143)
   at 
org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:59)
   at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:149)
   at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)
Caused by: javax.naming.CommunicationException: Could not obtain connection to 
any of these urls: 0.0.0.0:1099 and discovery failed with error: 
javax.naming.CommunicationException: Receive timed out caused by 
java.net.SocketTimeoutException: Receive timed out caused by 
javax.naming.CommunicationException: Failed to retrieve stub from server 
0.0.0.0:1099 caused by java.io.IOException: Exception thrown from readObject() 
on class java.rmi.server.RemoteObject: java.lang.ExceptionInInitializerError
   at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
   at javax.naming.InitialContext.lookup(libgcj.so.7rh)
   at 
org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:250)
   at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:268)
   at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:62)
   at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:139)
   ...3 more

but when i invoke it  in the local host  it has been executed.so you please 
help me in this issue.

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

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


[jboss-user] [JBoss Seam] - ejq-ql subquery in seam

2007-04-17 Thread zdaler
this might be a little off topic since it's an ejb-ql question but I'm using it 
inside seam and I think maybe my error will be obvious to some of you.

I'm simply trying to execute a simple (test) subquery like this :
select t from MyObject t order by ( select 1 )

but I get the error :

anonymous wrote : Caused by: org.hibernate.hql.ast.QuerySyntaxException: 
unexpected AST node: query [select t from com.[...].MyObject t order by ( 
select 1 ) ]

any hint ? (I guess I'm doing some stupid mistake somewhere ...)

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

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


[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread Antoine_h
Yes, wiki would be good.
but if I understood well, the wiki subject must be created by a jboss user, no ?
= how to create a subject ? I did not find it (for other contribution, before).

by the way, as you have declared the pamf service in the portlet description 
(jboss-portlet.xml), you can then retrieve it with : 
PortalAuthorizationManagerFactory pamf = (PortalAuthorizationManagerFactory) 
getPortletContext().getAttribute(AMF);

more direct... no ?



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

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


[jboss-user] [JBossWS] - Re: JSR-109Client, Mapping problem and trying to connect to

2007-04-17 Thread [EMAIL PROTECTED]
There is no requirement for two code generators to generate identicle code as 
the JAX-RPC mapping file is used to describe how the schema was mapped to Java.

If you have a reproducable scenario where invalid code is being generated 
please raise a bug in Jira with the required files to reproduce it.



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

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


[jboss-user] [JBoss Portal] - Re: I can't instantiate the InstanceImpl class.

2007-04-17 Thread FredF
I get a strange error when I try to create an Instance via the 
instancecontainer.

19:29:49,197 ERROR [STDERR] java.lang.IllegalArgumentException: Bad portlet id 
format AboutPortlet
  | 19:29:49,200 ERROR [STDERR] at 
org.jboss.portal.federation.impl.FederatingPortletInvokerService.getFederatedPortletInvokerFor(FederatingPortletInvokerSer
  | vice.java:203)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.portal.federation.impl.FederatingPortletInvokerService.getPortlet(FederatingPortletInvokerService.java:137)
  | 19:29:49,201 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
  | 19:29:49,201 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 19:29:49,201 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 19:29:49,201 ERROR [STDERR] at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 19:29:49,202 ERROR [STDERR] at $Proxy68.getPortlet(Unknown Source)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.portal.portlet.test.TestPortletInvoker.getPortlet(TestPortletInvoker.java:114)
  | 19:29:49,202 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
  | 19:29:49,202 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 19:29:49,202 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 19:29:49,202 ERROR [STDERR] at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 19:29:49,203 ERROR [STDERR] at $Proxy50.getPortlet(Unknown Source)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.org$jboss$portal$core$impl$model$instance$Persistent
  | InstanceContainer$createInstance$aop(PersistentInstanceContainer.java:231)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$createInstance_N891474739524950312.invokeNext(Persis
  | tentInstanceContainer$createInstance_N891474739524950312.java)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$createInstance_N891474739524950312.invokeNext(Persis
  | tentInstanceContainer$createInstance_N891474739524950312.java)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.createInstance(PersistentInstanceContainer.java)
  | 19:29:49,203 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.org$jboss$portal$core$impl$model$instance$Persistent
  | InstanceContainer$createInstance$aop(PersistentInstanceContainer.java:217)
  | 19:29:49,204 ERROR [STDERR] at 
org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$createInstance_N8606718515158336098.invokeNext(Persi
  | 

[jboss-user] [JBoss Seam] - Re: Virtual Domains

2007-04-17 Thread KoniKoni
I love jboss, you can here solve problems with logic:)

In application.xml i   changed context to / and works!

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

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


[jboss-user] [JBoss Seam] - Re: @Logger not injecting anything in Controller.class

2007-04-17 Thread petemuir
Seam can't do it's magic if you use new to instantiate a Seam component.  You 
need to use injection (or Component.getInstance())

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

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


[jboss-user] [JBoss Seam] - Re: Exadel, JBoss and Seam

2007-04-17 Thread estiedi
anonymous wrote :  insanely productive development environment that is 
comparable to Microsoft's .Net. 

I don't know how well you know MS VS .NET, but from what I've seen from it, I 
can tell you that if RHDS resembles VS, I'm surely not going to use it.
Eclipse and NetBeans are insanely more productive than VS, IMHO. :-)

My expectations are high concerning RHDS, I've been waiting a long time to get 
an IDE with good JSF and Seam support. 

Personally, I think it would be nive to have a feature that allows to build the 
projects without IDE (yes,indeed, for building on a continuous integration 
server). Currently I haven't seen a solution for that, so I'm always doing 
double work: keeping the Ant build files and the Eclipse project files in sync.
(If someone knows of an existing solution I'd appreciate to be pointed at it 
;-))




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

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


[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread [EMAIL PROTECTED]
To create a new wiki page, just reference it from another page, then you will 
get a ? to click on.

Or:
Go to something like:
http://wiki.jboss.org/wiki/Wiki.jsp?page=MyWikiPage

replace MyWikiPage by anything. Then reference it from other pages.

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

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


[jboss-user] [JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1

2007-04-17 Thread avbentem
[EMAIL PROTECTED] wrote : avbentem wrote : 
  |   | - when getting compile errors in GWTRemoteService then [...]
  | Which compiler errors are you getting?  I don't get any.
I did get errors in Eclipse (actually JBoss IDE 2.2.0.BETA2), all caused by a 
fewThe import com.google cannot be resolved
  | /src/remoting/org/jboss/seam/remoting/gwt/GWTRemoteService.java line 31
But, as petemuir wrote that the libraries in /lib worked fine, I now tested 
with gwt-servlet.jar (as included in /lib with the Seam download). That solves 
the problem too, so indeed no need to download anything from Google.

Without adding gw-servlet.jar an Ant build runs fine too, so it just seems to 
be missing in the Eclipse classpath file.

Thanks,
Arjan.

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

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


[jboss-user] [JBoss AOP] - Re: Unable to use/run JBossAOP on JBossAS 4.0.5.GA

2007-04-17 Thread varkon
Thanks. I'll try it out and let you know.

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

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


[jboss-user] [Microcontainer] - Re: Urgent! In container automated testing with JBoss

2007-04-17 Thread ushasagi
Thanks,
I tried to find the documentation, but could not find the proper one.
If you have any reference related to this, please pass on to me.

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

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


[jboss-user] [JBoss Portal] - Can i remove portal in the context path??

2007-04-17 Thread littlefish
I have already remove the portal in context-root! but i still have another 
portal before the portal_name in context path! do any body knows how to 
remove it? 

sample path thath i would like to have:
http://localhost:8080/portal_name/portal_page

THX!!

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

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


[jboss-user] [JBoss Portal] - Re: isUserInRole(String role) doesn't work

2007-04-17 Thread Antoine_h
Hello,

an old topic, but I still have the same need.

the spec is nice. 
--
it allows that the portlet knows what features it provide, and what it's 
portlet-roles are needed for thoses.
then the portlet declaration allows to map the application roles (user roles) 
to theses features specific roles.

example :
Portlet has two features : 
delete some record, with role authorization PRoleA
create a business process, with role authorization PRoleB
all other features are allowed to PRoleC

then, mapping of role allow to set, for use of this portlet in any application 
(portal), to map the users roles to theses three portlet features roles.
As : URole_Admin to PRoleA, PRoleB, PRoleC
URole_BP_Manager to PRoleB, PRoleC
URole_Editor to PRoleA, PRoleC
and so on...

Advantages :
Decouple of roles, between portlet features roles and application user roles, 
Allow to provide a portlet to others without knowing the user roles in the 
application/portal.
nice.
--

but, it is quite heavy to manage. It forces to declare explicitly all roles 
that must be available inside the portlet.

Use Case 
--
20 to 30 roles
15 to 30 portlets
to manage either :
 - internal users features (admin, manager, editor, data validator, hotliner 
for user), 
 - and external user features (visitor, loggued user of customer type A, 
loggued manager of customer type A, ... for customer type B and C).

and in the situation where portlets are dedicated to this application : ie, 
there is identity between portlet features roles and application user roles.
Example : they are developped specifically for this application.
--
Then, the decoupling is a heavy overhead.
The descriptors become a huge XML file of repeating the associations of roles, 
always the same. (30 portlets x 30 role-ref items !).
Maintenance and evolution is heavy, and bug generating.

Proposition :
--
To allow to define identity of role, for a bunch of them.
Using a regular expression, or at least wildcards.
security-role-ref
  |   role-name*/role-name
  |   role-link*/role-link  
  | /security-role-ref
  | 
--

This would lightened the constraint to declare all explicitly, with preserving 
the nice decoupling capability (for commercial portlets, etc...).

Questions 1 :
How to send this request to the spec definition group ?

Questions 2 :
How to workaround this for the time being ?

What class is responsible for reading the descriptor and set the role visible 
in the portlets ?

To overload it, knowing it is not JSR-168 compliant...

Thanks,


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

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


[jboss-user] [Installation, Configuration Deployment] - Unable to run jboss-4.0.5.GA

2007-04-17 Thread reckless_jack
while trying to run command on command prompt i am getting following error 
message-

Could not locate C:\jay\java\jdk1.5.0_11\bin;.;\lib\tools.jar. Unexpected 
results may occur.
Make sure that JAVA_HOME points to a JDK and not a JRE.

I HAVE FOLLOWING SYSTEM VARIABLE SET:

PATH=C:\jay\java\jdk1.5.0_11\bin;.;
CLASSPATH=C:\jay\java\jdk1.5.0_11\bin;.;
JAVA_HOME=C:\jay\java\jdk1.5.0_11\bin;.;

IT driving me nut.help me out

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ORA-01031: insufficient privileges, grant requirements

2007-04-17 Thread kuruma45
Hi
I have some problems to deploy EJB3 on JBOSS 4..0.5, abd a Oracle8i databse. 
DATABASE


I have one instance of my database, and two schema  SCH1 and SCH2,
I'm log on SH1 and each Schema has any table. 
but I have to create a ejb entity SCH2_TABLE1, TABLE1 is a table of SH2, 
in the TABLE1 script :

GRANT SELECT ON TABLE1 TO SCH1;

..

When I try to deploy, I have an Oracle exception : ORA-01031: insufficient 
privileges

My question is, what are the privileges required to deploy an EJB3 entity on an 
Oracle database or Schema?

An other question, if I don't declare my entity in the persistence.xml, jboss 
find my entity and try to deploy it...is it normal??

What is the use of the persistence file? 
I know it use to declare the oracle-DS file and the name of the database, and 
alsothe mode of persistence (update, create-drop)... but how it can find my 
entity without any declaration?

Thanks for your answer.




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

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


[jboss-user] [EJB/JBoss] - Statefull session bean and exception

2007-04-17 Thread jc7442
I use an EJB3 stateful session bean. 


  | @Stateful
  | public class MyStatefullImpl implements MyStatefull{
  | 
  |   public void applyFilter(...)  throws MyException {
  | ...
  |   } 
  | 
  | 


MyException is managed properly in my source code and is declared in the API . 
Consequently, when this exception is thrown, my stateful bean is still 
consistent . Unfortunately it looks like if an excetion go through a method of 
a stateful bean, the stateful bean can not be used (on next invocation of one 
of its method I got an javax.ejb.EJBNoSuchObjectException: Could not find 
Stateful bean: a2a3m6o-w94gp-ezsdveoz-1-ezsdvf3b-3)

Is it possible to implement that an exception does not kill the session bean ? 
(something similar for example with the @ApplicationException for JTA 
transactions) 

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

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


[jboss-user] [JBoss Portal] - Re: Roles and LoginModule

2007-04-17 Thread Antoine_h
could be a way for the workaround of this need, in :
http://jboss.org/index.html?module=bbop=viewtopicp=4037894#4037894

what are the classes/services involved in this ?

either the portlet instanciation from the descriptor ?

or where to change things to adapt the behavior of isUserInRole method ?

Thank you.

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

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


[jboss-user] [JBoss Seam] - Re: Question: http://java.sun.com/jsp/jstl/core cannot be re

2007-04-17 Thread gorgomad
You should just download JSTL (Apache.org), copy standard.jar and jstl.jar 
under jboss.home\lib, and restart JBoss server. 

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Single Sign On with LDAP Examples

2007-04-17 Thread thomascremers
I have been on big quest as well to get this working. The documentation leaves 
a lot to be desired but here is what I did to get it working.

First a basic LDAP schema

  | # Base
  | dn: dc=foo,dc=bar
  | dc: foo
  | objectClass: top
  | objectClass: dcObject
  | objectClass: organization
  | o: Foo Bar
  | 
  | # Ldap admin user
  | dn: cn=admin, dc=foo,dc=bar
  | userPassword:: secret
  | description: LDAP administrator
  | objectClass: simpleSecurityObject
  | objectClass: organizationalRole
  | cn: admin
  | 
  | # People ou where we attach the users 
  | dn: ou=People, dc=foo,dc=bar
  | ou: People
  | objectClass: top
  | objectClass: organizationalUnit
  | 
  | # A basic inetOrgPerson
  | dn: cn=Test User,ou=People, dc=foo,dc=bar
  | sn: Test
  | userPassword:: secret
  | mail: [EMAIL PROTECTED]
  | displayName: Test User
  | objectClass: top
  | objectClass: person
  | objectClass: organizationalPerson
  | objectClass: inetOrgPerson
  | uid: test
  | cn: Test User
  | 
  | # The ou where we attach roles/groups 
  | dn: ou=roles, dc=foo,dc=bar
  | ou: roles
  | objectClass: top
  | objectClass: organizationalUnit
  | 
  | # A test group member of roles ou
  | dn: cn=TestGroup,ou=roles, dc=foo,dc=bar
  | ou: TestGroup
  | objectClass: top
  | objectClass: groupOfUniqueNames
  | uniqueMember: cn=Test User,ou=People
  | cn: TestGroup
  | 

Now the importent part is of course the jboss-sso.sar/conf/sso.cfg.xml file. 
For the ldap schema above this would look like this:


  | ?xml version='1.0' encoding='ISO-8859-1'?
  | 
  | jboss-sso
  | identity-management
  | login
  | provider id=si:jboss-sso:ldap:login 
class=org.jboss.security.idm.ldap.LDAPIdentityProvider
  | property name=connectionURL 
jdbc:ldap://ldap.domain.com:389/dc=foo,dc=bar?SEARCH_SCOPE:=subTreeScopesecure:=falseconcat_atts:=truesize_limit:=1000/property
  | property 
name=usernamecn=admin,dc=foo,dc=bar/property
  | property name=passwordsecret/property
  | !-- ou that contains all your 
inetOrgPersons --
  | property 
name=identityOuPeople/property
  | !-- ou that contains your groups --
  | property name=roleOuroles/property
  | /provider
  | /login
  | !--login
  | provider id=si:jboss-sso:demo:login 
class=org.jboss.security.idm.demo.DemoLoginProvider/ 
 
  | /login--
  | /identity-management
  | sso-processor
  | processor 
class=org.jboss.security.saml.JBossSingleSignOn
  | !-- Conf this to your sso jboss server --
  | property 
name=trustServerhttp://sso-jboss.domain.com:8080/federate/trust/property
  | /processor
  | /sso-processor
  | /jboss-sso
  |  

Really importend here is to verify then you have set identityOU and roleOU to 
the right values. If there is an error here you will get No such object jdbc 
errors witch of course is an ldap error telling you it can't find the ou. I use 
openldap and set the loglevel property to 265, witch makes debuging jboss-sso a 
whole lot easier. 

If you tail the ldap log and start the sso service you should see jboss-sso 
connecting and scanning in the roles. If so and you can confirm the sso startup 
in the jboss server.log you are done.

Hope this helpt



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

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


[jboss-user] [JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1

2007-04-17 Thread avbentem
petemuir wrote : avbentem wrote : How can we assure the Important Note: If 
you want to use EJB3 or Seam, you MUST use the JEMS Installer will be removed 
when Seam 1.3 is released? [..]
  | Yeah, add a JIRA issue if you like...
  | 
Ok, JBSEAM-1193.

I also noticed that the JBoss version is not yet updated in the documentation 
(like 2.1. Before you start, Make sure you have JDK 5 or JDK 6, JBoss AS 
4.0.5 and Ant 1.6...). Of course, I know this might be work in progress; do 
you want JIRA issues for these details as well...?

petemuir wrote : We up the version number at release.
Ok, no problem, though (for example) I'd slightly prefer the generated 
documentation to show 1.3 instead of 1.2.1.GA...


Arjan.

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Unable to run jboss-4.0.5.GA

2007-04-17 Thread jaikiran
anonymous wrote : JAVA_HOME=C:\jay\java\jdk1.5.0_11\bin;.;

Change your JAVA_HOME to C:\jay\java\jdk1.5.0_11


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: ORA-01031: insufficient privileges, grant requirements

2007-04-17 Thread kuruma45
I have ask to DB admin to put the sys privileges to SCH1 schema...

I have a problem to bind my entity and table, i'm newbie on Oracle database, 

in my entity :

@Entity
@Table(name=SCH2_TABLE1)
public class SCH2_TABLE1 implements java.io.Serializable 
{

...it works in some case, but there are not 2 schema, but a lot and for some 
table, Jboss don't bind the correct table...

i tried :

@Table(name=SCH2.SCH2_TABLE1)
also
@Table(name=[EMAIL PROTECTED])
but jboss don't find any table...

what is the correct syntax to link the correct table??

Thanks


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

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


[jboss-user] [EJB/JBoss] - Re: ClassLoading problems, JBoss ClassLoading Strategy might

2007-04-17 Thread jaikiran
These wiki links mention how to configure JBoss classloading

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases 

http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration 

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

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


[jboss-user] [JBoss AOP] - Re: Unable to use/run JBossAOP on JBossAS 4.0.5.GA

2007-04-17 Thread varkon
Ok, I've installed and ran the example.


  | 15:17:10,241 INFO  [STDOUT]  ExampleValue empty Constructor
  | 15:17:10,242 INFO  [STDOUT]  ExampleValue.getMessage()
  | 15:17:15,314 INFO  [STDOUT]  EarExampleServlet.service()
  | 15:17:15,336 INFO  [STDOUT] *** ExampleSessionBean.getValue()
  | 15:17:15,336 INFO  [STDOUT]  ExampleValue String Constructor
  | 15:17:15,337 INFO  [STDOUT]  ExampleValue String Constructor
  | 15:17:15,341 INFO  [STDOUT]  ExampleValue.getMessage()
  | 

Obviously, it did not work. 

The example's documentation clearly states that UseJBossWebLoader should be 
true for it to work. However, I've had various concurrency problems when 
using non-isolated class-loading (for example, HttpSessions from different 
clients get mixed-up). Is there a way to make this work using isolation? 

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

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


[jboss-user] [JBoss Portal] - Custom Window State

2007-04-17 Thread engela
Does the JBoss Portal (2.4) support custom window states? Which class do I need 
to overwrite if I want to add my custom window state?

For printing the content of a portlet I quite like to introduce a custom window 
state 'print' which is mapped by by layout descriptor to print.jsp, which will 
only display the portlet without heading or navigation.

layouts
  |layout
  |   namemylayout/name
  |   uri/layouts/mylayout/index.jsp/uri
  |   uri state=maximized/layouts/mylayout/maximized.jsp/uri
  |   uri state=print/layouts/mylayout/print.jsp/uri
  |   regions
  |  region name=left/
  |  region name=center/
  |  region name=navigation/
  |   /regions
  |/layout
  | /layouts

Is that possible?

Thanks,

Anette

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

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


[jboss-user] [JBoss Portal] - Re: Can i remove

2007-04-17 Thread Antoine_h
Hello,

This is an extract of my installation procedure, for this.

To change the root path of the url.
From (classic) : http://localhost:8080/portal/portal/default/
To : 
http://localhost:8080/myPortalContextRoot/myDefaultCommand/myDefaultPortalName/ 
(defined at 070319).

a) Prefix for : Portal Context Root (first portal in classic url)
In the file : \deploy\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml
Replace the context root item to : 
context-root/myPortalContextRoot/context-root
The cms coded url can then be : 
http://localhost:8080/myPortalContextRoot/cms_root_code/cms_repository_path/...

b) Prefix for : PortalObjects commands (PortalObject Commands and url factories)
(second portal in classic url)
The PortalObjects commands are used to call a page or window, with parameters 
in the url.
In the file : \deploy\jboss-portal.sar\META-INF\jboss-service.xml
b1) Command factory
Switch off the service : name=portal:commandFactory=Delegate,prefix=portal
Replace the déclaration with a new one, with modification :
 - modify the name to : 
name=portal:commandFactory=Delegate,prefix=myDefaultCommand
 - modify the prefix item to : myDefaultCommand
b2) Url factory
Switch off the service : name=portal:urlFactory=PortalObject
Replace the déclaration with a new one, with modification :
 - modify the prefix item to : myDefaultCommand

c) The portal prefix
(the default prefix, in third position in the classic url)
This prefix is set in the portal description, default-object.xml file.
The one provide by JBoss portal, and in yours.
The item is : portal-namemyDefaultPortalName/portal-name
Also in the default-object.xml file, see the definition of the default page :
The name of the default page and the value item of the property of default 
object of the portal :
the item : portal.defaultObjectName

And see this forum and jira posts to set it as the default portal of multiple 
portals : http://jboss.org/index.html?module=bbop=viewtopict=104612
and 
http://jira.jboss.com/jira/browse/JBPORTAL-1324?watch=true

for a pb with not using default as the default portal name.

make a wiki of this ?
how to create a subject in the wiki ?


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

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - could not deserialize

2007-04-17 Thread toni
Hi,

I have an entity bean, which references an exception. Persiting the entity bean 
to the postgresql 7.4 works without problems.

However, I can't read/restore them, because I get the following exception:

org.hibernate.type.SerializationException: could not deserialize

Does anybody know how to avoid this? I think the code and annotations are fine. 
Here is the entity bean in question:


  | @Entity
  | @Name(systemMessage)
  | 
  | public class SystemMessage implements Serializable
  | {
  | @Id
  | @GeneratedValue(strategy = GenerationType.IDENTITY)
  | long id;
  | 
  | @Lob
  | String message;
  | 
  | @Temporal(TemporalType.TIMESTAMP)
  | Date creationDate = new Date(System.currentTimeMillis());
  | 
  | @Enumerated
  | SystemMessageType systemMessageType = SystemMessageType.INFO;
  | 
  | @Lob
  | Throwable throwable;
  | 
  | public SystemMessage()
  | {
  | super();
  | }
  | 
  | public SystemMessage(String message, SystemMessageType systemMessageType, 
Throwable throwable)
  | {
  | this.message = message;
  | this.systemMessageType = systemMessageType;
  | this.throwable = throwable;
  | }
  | 
  | public long getId()
  | {
  | return id;
  | }
  | 
  | public void setId(long id)
  | {
  | this.id = id;
  | }
  | 
  | public String getMessage()
  | {
  | return message;
  | }
  | 
  | public void setMessage(String message)
  | {
  | this.message = message;
  | }
  | 
  | public Date getCreationDate()
  | {
  | return creationDate;
  | }
  | 
  | public void setCreationDate(Date creationDate)
  | {
  | this.creationDate = creationDate;
  | }
  | 
  | public SystemMessageType getSystemMessageType()
  | {
  | return systemMessageType;
  | }
  | 
  | public void setSystemMessageType(SystemMessageType systemMessageType)
  | {
  | this.systemMessageType = systemMessageType;
  | }
  | 
  | public Throwable getThrowable()
  | {
  | return throwable;
  | }
  | 
  | public void setThrowable(Throwable throwable)
  | {
  | this.throwable = throwable;
  | }
  | } 
  | 

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

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


[jboss-user] [JBoss Portal] - Re: Custom Window State

2007-04-17 Thread Antoine_h
yes, this seems the right way, for what I know.
look at the jsr-168 for defining custom window states.
there is an example with 1/2 maximized state, if I remember well.
To make sure you have declared all that is needed for this state in other 
places (portal description, etc...).

By the way, thanks for your post about Acegi :
http://jboss.org/index.html?module=bbop=viewtopict=104244
And so the wiki.

I have a question : to use a SecurityContextHolder, I used the acegi filters.
As you don't talk about it : is it because you did another way ?
I will complement the wiki with the filter stuff, when my integration is 
finished (and clean).
If you don't want to post for security matters, you can contact me by mail (on 
my website).
Thanks.




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

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


[jboss-user] [JBoss Seam] - Re: Pros/Cons of war vs. ear deployments (Jboss 4.2)

2007-04-17 Thread [EMAIL PROTECTED]
I fully agree on the fact that virtual archives is what is needed. JBoss 5 is 
building it into the core of AS but until we have that in JBoss Tools/RHDS we 
are working on having it at the IDE level.

Giving you an incremental update of the deployed artifacts removing the need 
for seperate assemble/copy step during development.

With respect to why WAR and EAR's still are interesting for IDE's then its 
because it gives a standard structure where you (and the tool) can agree on 
where is the class files, where are the web.xml, components.xml etc. 

Virtual archives doesn't really solve that problem.
Your development files sometimes does not even contain enough information to 
tell the IDE what your view of the world is. The java source code is normally 
static; but config files with ${deploy.url}, ${deploy.dir} instead of the 
actual values makes it extremely hard for IDE's to deduce enough information to 
be really usefull.

I have some ideas for solving that; but there are many common corner cases to 
solve.

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

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


[jboss-user] [JBoss Seam] - seam remoting js-bag multiple dimension prob

2007-04-17 Thread livenow
Hi,

there seems to be an error when passing multidimensional Arrays from Javascript 
to a webRemote function.

js:
var csArr = new Array();
csArr[0] = 1;

converts without problems to:
ArrayList ssArr

but

js:
var csArr = new Array();
csArr[0] = new  Array();
csArr[0][0] = 11;

is always empty on Serverside (although the seam-debugger shows that the array 
is transfered correctly)

also  tried it out with HashSet and [] - same result

regards,
Christoph

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: Bank example compile error.

2007-04-17 Thread daniellaw
I have the same problem :-( I have defined the jboss.home variable. But it does 
not help... any ideas?

While reading the getting started tutorial I realized that i don't have a 
tomcat component installed. Is there something missing in my installation? I 
installed JBoss version  4.2.0.CR1.

Cheers, Daniel

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

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


[jboss-user] [JBoss Portal] - Re: authorisation facilities access from within portlet

2007-04-17 Thread Antoine_h
done : 
http://wiki.jboss.org/wiki/Wiki.jsp?page=CheckPermissionOfAnyPortalObjectNode

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

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


[jboss-user] [JBoss Portal] - Re: Access userPrincipal from Servlet

2007-04-17 Thread taprogge
Hello again and thanks for your answer.

Unfortunately, I am still stuck...

I do not want to hand over the login info through the session, that's just ugly.
So I tried your second solution.

If I understand it correctly, the JBossIntegrationFilter basically just looks 
up java:comp/env/security/subject to extract the login info from that.
I tried that, but somehow looking up the subject always returns null, 
regardless of the actual portal login.
Am I still doing something wrong here?

By the way, I am using Jboss 4.0.5.GA with Portal 2.4.

Thanks for your insights and best regards,

Phil

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

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


[jboss-user] [JBoss Seam] - Re: inconsistent behaviour

2007-04-17 Thread CptnKirk
Doing a lot of hot deploy?  I usually find when things are screwy like this 
there's a permgen memory error at the very bottom of that stack trace.  A 
restart of the app server causes the problem to go away.

I've recently migrated to JRocket R27.2 and haven't had any trouble so far.  
JRocket does a much better job than Sun's JVM with permgen clean up.  Bascially 
I think they put it on the heap and clean up normally.  If you do try JRocket, 
go with only R27.2, R27.1 had a ton of problems.

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

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


[jboss-user] [JBoss Portal] - Re: Can i remove

2007-04-17 Thread Antoine_h
Wiki is at : 
http://wiki.jboss.org/wiki/Wiki.jsp?page=ChangeRootPathAndPrefixOfUrl

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

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


[jboss-user] [Beginners Corner] - JBoss terminal server

2007-04-17 Thread edgydruid
Hello,

I am looking for a terminal server solution which can work with JBoss.

The idea is to use JBoss' clustering abilities and serve a lot of thin clients 
with a cluster of JBoss nodes. I am aware of JBoss clustering of HTTP sessions, 
Tomcat, etc. But what I need is complete terminal emulation. The thin client 
should be able to run any application, not just web-based applications.

Does anybody know any product which can do this?

--
Edgy



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

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


[jboss-user] [JBoss Seam] - Re: Framework: Counting query entities

2007-04-17 Thread [EMAIL PROTECTED]
Thanks Captain!

I'll do it your way. Of course a framework:entity-query in components.xml would 
have been nicer. 

I believe you cannot automatically deviate a correct count query from any 
ejb/hql query in general, can we Gavin? If this is true we should think about a 
countEjbql attribute on framework:entity-query. 

Makes sense?

Chris

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

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


[jboss-user] [JBossWS] - Re: How to provide soapAction from dispatch call?

2007-04-17 Thread oskar.carlstedt
Does anyone know if this is a bug or related to something else. Or how do I get 
around this problem? I found this thread on  java.net forum 
http://forums.java.net/jive/message.jspa?messageID=190079. Doesn't help much 
but it seem to be a problem in jwsdp2.

Regards
Oskar


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

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


[jboss-user] [JBoss Seam] - Re: DataModel: Row is not available

2007-04-17 Thread fabricio.lemos
I want a page where I can edit the properties of a UseCase entity. At the end 
of the page I want to display the Step entities that belong to the UseCase. 

This is the page code that I have:

  | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | body
  | ui:composition template=/template.xhtml
  | 
  | ui:define name=title
  | Editar Caso de Uso
  | /ui:define
  | 
  | ui:define name=body
  | h:form
  | h:messages /
  | Caso de Uso: h:inputText value=#{useCase.name} 
required=true /
  | h:commandButton value=Inserir Passo 
action=insertStep /
  | h:commandButton value=Atualizar action=update
  | rendered=${useCase.id != null} /
  | h:commandButton value=Inserir action=insert
  | rendered=${useCase.id == null} /
  | 
  | h:dataTable value=#{stepList} var=stepVar
  | h:column
  | f:facet name=headerNome/f:facet
  | #{stepVar.name}
  | /h:column
  | h:column
  | f:facet name=headerEditar/f:facet
  | h:commandLink value=Editar 
action=updateStep /
  | /h:column
  | /h:dataTable
  | /h:form
  | /ui:define
  | 
  | /ui:composition
  | /body
  | /html
  | 

The insertStep commandButton shows another page where I can insert a Step and 
then go back to the UseCase page. The problem is that the UseCase page does not 
show the Step added.

When Step collection was a List, the application did work OK.

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

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


[jboss-user] [JBoss Seam] - DataModel in two SFSB issues

2007-04-17 Thread lcoetzee
Hi,

I have an interesting issue with DataModels. Any suggestions would be 
appreciated.

The setup:
I have Bean A which has a list (sections) annotated as  DataModel. 
sections is available in my current conversation. When invoking a method from 
my JSF page (which calls a method in my second Bean B, who also has the 
sections annotated with a DataModel), I run into problems as the sections 
are not available in Bean B. (I have looked at the conversation context and 
can see that sections has been removed from the context).

This is quite weird. I then stepped through the Seam code and ran into the 
following in Component.java


 private void outjectDataModel(Object bean, BijectedAttribute dataModelGetter)
  |{
  |   DataBinder wrapper = createWrapper(dataModelGetter.getAnnotation() 
);//1
  |   Object list = dataModelGetter.get(bean);//2
  |   String name = dataModelGetter.getName();
  |   Annotation dataModelAnn = dataModelGetter.getAnnotation();
  |   ScopeType scope = wrapper.getVariableScope(dataModelAnn);
  | 
  |   Context context = getOutScope(scope, this).getContext();
  |   Object existingDataModel = context.get(name);
  |   boolean dirty = existingDataModel == null || scope==PAGE ||
  | wrapper.isDirty(dataModelAnn, existingDataModel, list);//3
  | 
  |   if (dirty)
  |   {
  |  if ( list!=null )
  |  {
  | context.set( name, wrapper.wrap(dataModelAnn, list) );
  |  }
  |  else
  |  {
  | context.remove(name);
  |  }
  |   }
  |}
  | 
  | 
Line //2 return null for the list value when entering into Bean B while 
outjecting (seems the list is associated with the bean name, in this case Bean 
B, in stead of returning the list associated with Bean A, or just by extracting 
it from the conversation context).

As a result of the null value Line //3 is always dirty, resulting in the 
variable being removed from the conversation context !

Is it possible two have a DataModel used over two SFSB's ?  Based on the above 
Seam code it appears as if a DataModel is hardwired to a specific SFSB. 

Regards

Louis


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

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


[jboss-user] [Clustering/JBoss] - Re: Horizontal Clustering not working _ need help

2007-04-17 Thread canty28
Here is my tc5-Cluster.xml 


!--
The default UDP stack:
- If you have a multihomed machine, set the UDP protocol's 
bind_addr attribute to the
appropriate NIC IP address, e.g bind_addr=192.168.0.2.
- On Windows machines, because of the media sense feature being 
broken with multicast
(even after disabling media sense) set the UDP protocol's loopback 
attribute to true
--

UDP mcast_addr=${jboss.partition.udpGroup:230.1.2.7} 
mcast_port=45577
ip_ttl=8 ip_mcast=true
mcast_send_buf_size=15 mcast_recv_buf_size=8
ucast_send_buf_size=15 ucast_recv_buf_size=8
loopback=false /
PING timeout=2000 num_initial_members=3
up_thread=false down_thread=false/
MERGE2 min_interval=1 max_interval=2/
FD_SOCK/
VERIFY_SUSPECT timeout=1500
up_thread=false down_thread=false/
pbcast.NAKACK gc_lag=50 
retransmit_timeout=600,1200,2400,4800
max_xmit_size=8192 up_thread=false down_thread=false/
UNICAST timeout=600,1200,2400 window_size=100 
min_threshold=10
down_thread=false/
pbcast.STABLE desired_avg_gossip=2
up_thread=false down_thread=false/
FRAG frag_size=8192
down_thread=false up_thread=false/
pbcast.GMS join_timeout=5000 join_retry_timeout=2000
shun=true print_local_addr=true/
pbcast.STATE_TRANSFER up_thread=true down_thread=true/




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

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


[jboss-user] [JBoss jBPM] - problem with NamingContextFactory

2007-04-17 Thread kshahbaz
I have a java program which uses JBPM.
When I execute it, I encounter the following error:


javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory [Root exception is 
java.lang.ClassNotFoundE
xception: org.jnp.interfaces.NamingContextFactory]

java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

What have I do in order to solve the problem?!


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate sql output in Server Log and Console

2007-04-17 Thread devq
Hi,

I'm using hibernate and trying to output the sql and any relevant comments to 
the console and server log. I'm using a log4j.xml file to configure log4j 
(pasted below).

Initially I was using the log4j.properties file and including the statement:

log4j.logger.org.hibernate.type=debug

This was working fine locally giving me the following output:

Hibernate: update USER_PROFILE set USER_ID=? where id=?
2007-04-17 14:04:34,927 DEBUG [org.hibernate.type.LongType] - binding 
'103' to parameter: 1
2007-04-17 14:04:34,927 DEBUG [org.hibernate.type.LongType] - binding '88900' 
to parameter: 2

Now, however I want to just use log4j.xml and was hoping that I could get the 
same output using: 

category name=org.hibernate.type
  |  priority value=DEBUG/
  |   /category

Unfortunately this has not worked for me. and I have lost the portion 
underlined above.

Is it possible to get this output working on the server?

Thanks in advance!


  | ?xml version=1.0 encoding=UTF-8? 
  | !DOCTYPE log4j:configuration SYSTEM log4j.dtd
  | 
  | 
  | log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; 
debug=false
  | 
  |!-- = --
  |!-- Preserve messages in a local file --
  |!-- = --
  | 
  |
!--*--
  |!-- MY LOG FILE APPENDER--
  |   
  |appender name=My_Log 
class=org.jboss.logging.appender.DailyRollingFileAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name=File value=${jboss.server.log.dir}/my_log.log/
  |  param name=Append value=true/
  | 
  |  !-- Rollover at midnight each day --
  |  param name=DatePattern value='.'-MM-dd/   
  | 
  |  layout class=org.apache.log4j.PatternLayout
  | !-- The default pattern: Date Priority [Category] Message\n --
  | param name=ConversionPattern value=%d %-5p [%c] %m%n/
  |
  |  /layout
  |  
  |/appender
  |
  |
  |   
  |
!----
  |
  |!-- SERVER LOG FILE APPENDER--
  |!-- A time/date based rolling appender --
  |   
  |   appender name=FILE 
class=org.jboss.logging.appender.DailyRollingFileAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=File value=${jboss.server.log.dir}/server.log/
  |   param name=Append value=false/
  | 
  |   !-- Rollover at midnight each day --
  |   param name=DatePattern value='.'-MM-dd/
  | 
  |   !-- Rollover at the top of each hour
  |   param name=DatePattern value='.'-MM-dd-HH/
  |   --
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d %-5p [%c] %m%n/
  | 
  |   /layout   
  |/appender
  | 
  | 
  |!-- == --
  |!-- Append messages to the console --
  |!-- == --
  | 
  |appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=Target value=System.out/
  |   param name=Threshold value=INFO/
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] 
%m%n/
  |   /layout
  |/appender
  | 
  |   
  |!--  --
  |!-- Limit categories --
  |!--  --
  | 
  |!-- Limit the org.apache category to INFO as its DEBUG is verbose --
  |category name=org.apache
  |   priority value=INFO/
  |/category
  | 
  |!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its 
DEBUG is verbose --
  |category name=org.jboss.serial
  |   priority value=INFO/
  |/category
  | 
  |!-- Limit the org.jgroups category to WARN as its INFO is verbose --
  |category name=org.jgroups
  |   priority value=WARN/
  |/category
  | 
  |!-- Limit the jacorb category to WARN as its INFO is verbose --
  |category name=jacorb
  |   priority value=WARN/
  |/category
  | 
  | 
  |!-- Limit the JSR77 categories --
  |category name=org.jboss.management
  |   priority value=INFO/
  |/category
  |
  |!-- Log the actual Hibernate Query Language (HQL) expression --
  | category name=org.hibernate.impl.SessionImpl
  | priority value=DEBUG
  | /priority
  | /category
  | 
  | !-- Log the substitution parameters in the HQL expression --
  | category name=org.hibernate.engine.QueryParameters
  | 

[jboss-user] [JBoss Seam] - Re: What happens for exceptions in JPM transition actions?

2007-04-17 Thread nstoddar
You can ignore this.  I hit the submit button too soon, and just afterwords saw 
the exception-handler element.  Can somebody shed any light on what the 
script element is used for?  I'm assuming that the action expression gets 
evaluated and a transition takes place based on the return value.  
exception-class is obvious, but the script one is puzzling.

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

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


[jboss-user] [EJB 3.0] - Re: EJB 3.0 Locking (entity not in the persistence context)

2007-04-17 Thread fhh
How are you calling your methods?

Regards

Felix

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

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


[jboss-user] [JBoss Seam] - TypeNotPresentException

2007-04-17 Thread sandytech
Hi Everyone,
   I installed JBossAS using Jems Installer and trying to run a 
Seam application which i downloded from Devx site.But whiledeploying it to the 
server I'm getting the error like

java.lang.TypeNotPresentException: Type javax.ejb.Interceptors not present
at 
sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
at 
sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
at 
sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
at 
sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:351)
at 
sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:175)
at 
sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at 
sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:2998)
at java.lang.Class.getAnnotation(Class.java:2958)
at 
org.jboss.aop.annotation.AnnotationElement.getVisibleAnnotation(AnnotationElement.java:88)
at org.jboss.aop.Advisor.resolveAnnotation(Advisor.java:318)
at 
org.jboss.ejb3.ProxyDeployer.initializeRemoteBindingMetadata(ProxyDeployer.java:125)
at 
org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:109)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:415)
at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:330)
at org.jboss.system.ServiceController.create(ServiceController.java:273)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy37.create(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at 
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at 
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
at 

[jboss-user] [EJB 3.0] - Re: EntityManager available outside container ?

2007-04-17 Thread fhh
I can't imagine anybody has actually implemented this. But I don't know...

Regards

Felix

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

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


[jboss-user] [JBoss Seam] - Re: Exadel, JBoss and Seam

2007-04-17 Thread fernando_jmt
Did you see:
http://www.jetbrains.com/teamcity/

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

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


[jboss-user] [JBoss Seam] - Switch from DEV to PROD

2007-04-17 Thread KoniKoni
Where can switch between dev and prod?

there are two persistence files: persitence-prod.xml...



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

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


[jboss-user] [JBoss Seam] - Re: Framework: Counting query entities

2007-04-17 Thread [EMAIL PROTECTED]
mmh, interesting. This should work for my quoted query. But you cannot define 
the query within components.xml anymore, can you? I really love that feature 
because it saves me countless simple  stupig classes.

Chris

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

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


[jboss-user] [EJB 3.0] - Re: Configuring SFSB maximim size in EJB3

2007-04-17 Thread rcaballero
Hi folks,

   I have the same problem but with SLSB. My jboss.xml file is the following

  | ?xml version=1.0 encoding=UTF-8?
  | 
  | !DOCTYPE jboss PUBLIC
  |-//JBoss//DTD JBOSS 4.0//EN
  |http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd;
  | jboss
  | enterprise-beans
  | session
  | ejb-namePortfolioIdDeliverBean/ejb-name
  | configuration-nameMyTunning/configuration-name
  | /session
  | /enterprise-beans 
  | container-configurations
  | container-configuration extends=Standard Stateless 
SessionBean
  | container-nameMyTunning/container-name
  | container-pool-conf
  | MaximumSize1/MaximumSize

  | strictMaximumSizetrue/strictMaximumSize
  | strictTimeout10/strictTimeout
  | /container-pool-conf
  | /container-configuration
  | /container-configurations
  | /jboss
  | 

Even doing the changes in standarjboss.xml, the result is the same: it's 
possible to create more than one SLSB.

Regards

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

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


[jboss-user] [JBossWS] - Is there a wsconsume sample available?

2007-04-17 Thread tfennelly
Is there a sample of how to use wsconsume to generate service side artifacts?  
I've seen written examples on the wiki etc, but am having trouble working out 
it's dependencies.

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

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


[jboss-user] [Performance Tuning] - Re: Clustered JBoss with Cisco Content Switch

2007-04-17 Thread zambak
I cannot use the session timeout as it affects the application.
Optimally, I would like to tell the CSS switch which http comman to issue in 
order to close the session and not leave it open.

Here is the snippet of the switch config...


  | service myapp
  |   ip address x.y.z.w
  |   keepalive uri http://myapp.mycompany.org/page/index.jsf;
  |   protocol tcp
  |   port 8080
  |   redundant-index 7
  |   keepalive tcp-close fin   This line tells the CSS to do a fin/ack 
rather then a TCP reset
  |   keepalive frequency 15  Sends a keepalive every 15 seconds
  |   keepalive type http non-persistent
  |   active
  | 

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

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


[jboss-user] [JBoss Portal] - Re: cms on filesystem and clustering

2007-04-17 Thread [EMAIL PROTECTED]
Davide-

Look at this for CMS clustering related documentation.

http://docs.jboss.com/jbportal/v2.6/reference-guide/en/html/clustering.html#d0e3441


Thanks


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

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


[jboss-user] [JBoss Seam] - easy alternatives to ui:repeat and c:forEach for Seam 1.2.0P

2007-04-17 Thread dmp
I have had nothing but trouble with ui:repeat, as it stops repeating on a 
regular basis and only show a single result until the app server was restarted. 
   c:forEach seemed reasonable, but it is way, way slow compared to ui:repeat.  
 I am not rendering a table, so h:dataTable wouldn't work for me, are there 
other easy/good solutions to this?  

tia,
Doug

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

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


[jboss-user] [JBoss Seam] - Upgrade from Seam 1.1 to 1.2.1

2007-04-17 Thread m.alex
I'm trying to migrate an application from Seam 1.1 to 1.2.1GA. The problem is I 
cannot make Seam Remoting to work. My app is packaged as an EAR with multiple 
WARs and JARs inside (basically some portlets built on top of some 
services/EJBs). I followed the Seam documentation and made the changes to the 
components.xml files, but at deploy time I get an exception saying that the 
name org.jboss.seam.remoting.messaging.subscriptionRegistry exists twice with 
the same precedence. If I remove the reference to the said class from the JARs, 
I can deploy the application, but after I log in, I get another error, saying 
there is no subscription registry.

I'm almost sure it's a configuration problem, but I can't pinpoint it. Anybody 
has any idea?

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

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


[jboss-user] [JBoss Seam] - s:fileUpload/ IE/Firefox Filename differences

2007-04-17 Thread chane
I'm using Seam1.2.0patch1.

The filename parameter on s:fileUpload/ is different between IE and Firefox.  
On Firefox, I get just the filename.  On IE (6.x), the path + filename is 
returned.

Is this expected?

My page is:

  | h:form enctype=multipart/form-data id=f1
  |h:commandLink action=#{backing.uploadFile} value=Upload/
  |s:fileUpload id=importfile data=#{backing.dataFile}
  |fileName=${backing.fileName}/
  | /h:form
  | 

My Bean Action is:

  | public String uploadFile(){
  |   
  |   if(dataFile==null || dataFile.length==0){
  |  facesMessages.add(File was empty!);
  |  return FORM_UPLOAD;
  |   }
  |   
  |   verifyDirectory(step.getTemplatePath());
  |   
  |   File file = new File(step.getTemplatePath() + fileName);
  |   if(file.exists()){
  |  facesMessages.add(File already exsits! );
  |  return formUpload;
  |   }
  |   
  |   OutputStream bos=null;
  |   bos = new FileOutputStream(file);
  |   for(int x=0; xdataFile.length; x++){
  |  bos.write(dataFile[x]);
  |   }
  |   return success;
  |}
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Switch from DEV to PROD

2007-04-17 Thread KoniKoni
thanks a lot

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

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


[jboss-user] [JBossWS] - No service endpoint generated?

2007-04-17 Thread Schludi
Hello i have the following maven-Script added to my pom.xml which starts 
wstools with an ANT-Task:

  | 
  | artifactIdmaven-antrun-plugin/artifactId
  | executions
  | execution
  | idantTask/id
  | phaseprocess-classes/phase
  | goals
  | goalrun/goal
  | /goals
  | configuration
  | tasks
  | !-- Define a taskdef for the wstools ant task
  | taskdef name=wstools classname=org.jboss.ws.tools.ant.wstools
  | classpath refid=library.classpath/
  | classpath refid=test.client.classpath/
  | classpath path=${build.test.classes.dir}/
  | /taskdef-- 
  | taskdef name=wstools 
classname=org.jboss.ws.tools.ant.wstools
  | classpath 
refid=maven.dependency.classpath/
  | classpath
  | fileset 
dir=C:/servers/client/
  | 
include name=activation.jar/
  | 
include name=javassist.jar/
  | 
include name=jbossall-client.jar/
  | 
include name=jbossretro-rt.jar/
  | 
include name=jboss-backport-concurrent.jar/
  | 
include name=jbossws-client.jar/
  | 
include name=jboss-xml-binding.jar/
  | 
include name=jbossws14-client.jar/
  | 
include name=log4j.jar/
  | 
include name=mail.jar/
  | /fileset
  | fileset 
dir=C:/servers/lib/endorsed
  | 
include name=*.jar/
  | /fileset
  | /classpath
  | /taskdef
  | echo message=** 
Running jboss ws **/
  | mkdir dir=ws /
  | wstools 
dest=C:/dev/helloMaven/FirstEJB-ejb/ws 
  | 
config=C:/dev/helloMaven/FirstEJB-ejb/resources/wstools-mybean-config.xml/
  | /tasks
  | /configuration
  | /execution
  | /executions
  | 

Here the EJB.Code


  | package org.test;
  | 
  | import java.rmi.RemoteException;
  | 
  | import java.math.*;
  | import javax.ejb.SessionBean;
  | import javax.ejb.SessionContext;
  | 
  | /**
  |  * Trade Session EJB manages all Trading services
  |  * 
  |  * @ejb.bean  name=FirstEJBBean 
  |  *display-name=FirstEJBBean 
  |  *description=A simple hello world bean.
  |  *local-jndi-name=FirstEJBBean 
  |  *type=stateless 
  |  *view-type=service-endpoint
  |  [EMAIL PROTECTED]  generate=service-endpoint
  |  *
service-endpoint-class=org.test.StatlessEJBEndpoint
  |  *
  |  * @wsee.port-component   name=org.test.StatlessEJBEndpointPort
  |  */
  | public class StatlessEjbBean implements SessionBean
  | {
  | 
  | BigDecimal yenRate = new BigDecimal(121.6000);
  | 
  | BigDecimal euroRate = new BigDecimal(0.0077);
  | 
  | /** 
  |  * @ejb.interface-method view-type=service-endpoint
  |  */
  | public BigDecimal dollarToYen(BigDecimal dollars) {
  | BigDecimal result = dollars.multiply(yenRate);
  | return result.setScale(2, BigDecimal.ROUND_UP);
  | }
  | 
  | /** 
  |  * @ejb.interface-method view-type=service-endpoint
  |  */
  | public BigDecimal yenToEuro(BigDecimal yen) {
  | BigDecimal result = yen.multiply(euroRate);
  | return result.setScale(2, BigDecimal.ROUND_UP);
  | }
  | 
  | public StatlessEjbBean() {
  | }
  | 
  | public void ejbCreate() {
  | }
  | 
  | public 

[jboss-user] [JBoss Seam] - Re: Framework: Counting query entities

2007-04-17 Thread CptnKirk
Lol, should really not drink and make forum posts. :)  A combination of 
dsmith's solution and my components.xml should give you what you're looking 
for.  You only need 1 small class that you reuse in components.xml.  You could 
even write your own namespace and have your own myframework:entity-query tag. 
 But that's probably overkill, the component... syntax isn't that verbose.

Although I haven't tried it, you may even be able to use the class attribute on 
framework:entity-query to tell Seam to use your EntityQuery subclass.  If so, 
great.  You have plenty of options.

Based on the HQL, you'd think that Hibernate should be able to look at any 
digested query that has a single return and determine the correct count() 
syntax.  Even eliminate unnecessary joins like the one you have here.  Given 
how frequently this is used I think this would be a great convenience feature, 
especially for folks that use the Criteria APIs.

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

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


[jboss-user] [JBoss Portal] - Re: Custom Window State

2007-04-17 Thread Antoine_h
Hello,
It seems more a pb of wiring.

did you look at the layout strategy source code ?
may be this feature has not been much tested (used ?), and there is a bug, when 
routing to the proper jsp file.
as you can write your own, you may do one and see with logs what happen and why 
it does not work...

best regards,

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

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


[jboss-user] [JBoss Seam] - access the seam managed PersistenceContext in a @Startup obj

2007-04-17 Thread zdaler
I'm trying to access the seam managed persistence context inside a seam POJO  
declared as @Startup.
When the object is created the inject seam managed persistence context is null

@In
  | private EntityManager em;
  | 

Is there a way to do that (basically I need to schedule some maintenance 
related operations at startup time ... and those operations must access the 
database ...) ?

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

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


[jboss-user] [JBoss Seam] - Re: Switch from DEV to PROD

2007-04-17 Thread CptnKirk
Try creating a build.properties file next to build.xml and include
profile = prod

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

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


[jboss-user] [JBoss Seam] - Re: Pros/Cons of war vs. ear deployments (Jboss 4.2)

2007-04-17 Thread tzman
With applications having 500k+ lines of code, it is very important to us to 
shrink the amount of time it takes to code/test/redeploy. We have had success 
in the past with deploying the ejb's in an ear file and hot deploying the web 
components in an exploded war outside of the ear; the ejb components are tested 
outside of the container. Just starting to look at seam, but it appears as 
though this may be troublesome to say the least.

It seems as though most IDE solutions are fine with small applications where 
packaging and deployment times are negligible, but not very useful for large 
applications. Exadel?s solution fits into this category.

Just my 2 cents.


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

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


[jboss-user] [JBoss Seam] - Re: Switch from DEV to PROD

2007-04-17 Thread CptnKirk
or simply pass as a command line arg to ant

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

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


[jboss-user] [JBoss/Spring Integration] - Re: BeanFactoryPostProcessors not called ?

2007-04-17 Thread djeanprost
alesj wrote : What it your actual deployer service?
  | Post the jboss-service.xml in .deployer archive.

Well, wweiersmuller and I mispelled a few configuration files. Everything is OK 
and works well. Sorry for disturbating.

Dom

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

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


[jboss-user] [Installation, Configuration Deployment] - JBoss Migration from 3.2.6 to 4.0.5 GA

2007-04-17 Thread tips09
I did search the JBoss forum and Google to find some articles (guidelines, 
procedures, lessons learned etc) related to migrating from 3.2.6 to 4.0.5 GA, 
but couldn?t get anything useful. I would really appreciate if some one could 
point me to some documents or changes required from an application point of 
view. Thanks!

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

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


[jboss-user] [JBoss Seam] - Seam Framework EntityQuery restrictions does not work for My

2007-04-17 Thread lkw
Hi,

I'm a newbie in Seam.  Appreciate if someone can help on this.

I run the contactlist example from Seam version 1.2.1 .  Everything works if I 
use HSQLDB.  I'm able to do pagination and restriction with the EntityQuery 
framework.  However, the restrictions does NOT work when I switch to MySql 
database.  Has anyone encounter this problem?

My configuration is as below:

components.xml

?xml version=1.0 encoding=UTF-8?
  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:fwk=http://jboss.com/products/seam/framework;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/framework 
http://jboss.com/products/seam/framework-1.2.xsd 
  |  http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.2.xsd 
  |  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.2.xsd;
  | 
  | factory name=contact value=#{contactHome.instance}/
  | fwk:entity-home name=contactHome 
  |  entity-class=Contact/
  |  
  | fwk:entity-query name=contacts 
  |max-results=20
  | fwk:ejbqlfrom Contact/fwk:ejbql
  | fwk:orderlastName/fwk:order
  | fwk:restrictions
  | valuelower(firstName) like lower( #{exampleContact.firstName} 
+ '%' )/value
  | valuelower(lastName) like lower( #{exampleContact.lastName} + 
'%' )/value
  | /fwk:restrictions
  | /fwk:entity-query
  | 
  | component name=exampleContact
  |   class=Contact/
  | 
  | /components
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Seam Framework EntityQuery restrictions does not work fo

2007-04-17 Thread CptnKirk
exception?

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Unexpected redeployment

2007-04-17 Thread CafeD00d
Is it possible that you have an over-aggressive virus scanner that is changing 
the modification date on the files? The hot deployer compares modification date 
from the last time it looked at the file with the current modification date to 
determine if the file has been updated.

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

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


[jboss-user] [JBossWS] - NoClassDefFoundError: RuntimeWSDLParser.createReader

2007-04-17 Thread electren
Hi all.

I want to consume a webservice with a dynamic Stub generated by Jax-WS-Api.

The WSDL-Parser is throwing following exception:

  | java.lang.NoClassDefFoundError
  | at 
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:786)
  | at 
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:236)
  | at 
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:107)
  | at 
com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
  | at 
com.sun.xml.ws.client.WSServiceDelegate.init(WSServiceDelegate.java:189)
  | at 
com.sun.xml.ws.client.WSServiceDelegate.init(WSServiceDelegate.java:159)
  | at 
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:81)
  | at javax.xml.ws.Service.init(Service.java:56)
  | at javax.xml.ws.Service.create(Service.java:680)
  | at 
de.xxx.fm.app.web.bl.services.WSLogin.pruefeLogin(WSLogin.java:52)
  | at 
de.xxx.fm.app.web.bl.facade.BusinessFacade.verifieLogin(BusinessFacade.java:63)
  | at 
de.xxx.fm.app.web.gui.serviceworker.CommandDispatcher.bearbeiteLogin(CommandDispatcher.java:168)
  | at 
de.xxx.fm.app.web.gui.serviceworker.CommandDispatcher.dispatch(CommandDispatcher.java:63)
  | at 
de.xxx.fm.app.web.gui.servlet.FrontController.doService(FrontController.java:86)
  | at 
de.xxx.fm.app.web.gui.servlet.FrontController.doPost(FrontController.java:58)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)

Has anybody get this exception before?
The Class is in jaxws-rt.jar, which is include in the Jboss lib-dir...
I'm using the newest version of the api's... 

Has anybody a solution for the problem?

Thanks for every kind of help..

greetings 
Ben


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

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


[jboss-user] [Beginners Corner] - EAR deployer

2007-04-17 Thread kuvera
I have an exploded ear. All meta info is in place. At JBoss startup it is not 
deployed, but when I redeploy it manually with MainDeployer it IS deployed. 
What's wrong?

--
15:33:33,515 ERROR [MainDeployer] Could not initialise deployment: 
file:/C:/Wk/prg/Java/Spekker/spekker.ear
org.jboss.deployment.DeploymentException: No META-INF/application.xml found
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)
...

--

display-nameSpekker Ear/display-name 

spekker-ejb.jar




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

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


  1   2   3   >