[jboss-user] [JBoss Seam] - Seam and OpenLaszlo?

2007-01-16 Thread lcoetzee
Hi,

we have developed and released a very substantial application using Seam 
http://www.napsa.org.za/portal and had a lot of fun while doing it. 

My group is now in the process of starting development of a new application. 
Currently the thinking is to use a more flashy type of presentation layer 
(e.g. OpenLaszlo or Flash). Obviously I would love to continue to use Seam (I 
am way too afraid of all the pain associated with the old approaches). At this 
point I know that Seam does not provide for an easy way (yet) to use these 
kinds of RIA's (I have read that Gavin is planning something but only after the 
AJAX support has matured). 


Does somebody have suggestions of how to use OpenLaszlo with Seam ?



Regards

Louis

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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread olivie34
Hello,

I have reade some wiki on the web, at JBoss maybe, that explain how to :
- deploy a JCR repository (jackrabbit) on JBoss AS with JCA
- make it available via RMI

But, then you should change JBoss Portal parameter to use that JCR repository 
you've just defined. I haven't seen yet where changes have to be made.

Olivier.

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

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


[jboss-user] [JBossWS] - Re: Problems with Jboss and Sun's 1.6 JDK

2007-01-16 Thread pedro_sf18
OK, I wasn't including jboss' jax-rpc implementation as a jdk-endorsed jar (I 
thought Jboss' implementation should be compatible with Sun's included one).

But unfortunately when I include jboss-jaxrpc.jar in the endorsed lib claims 
that org.jboss.logging.Logger is not found and when that class is included in 
classpath to fullfill the requirement a long list of messages are thrown (this 
only means that I'm loosing log, not funtionality), but the problem (the 
exception at webservice invocation) remains unsolved:

Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager
Failed to initalize plugin: [EMAIL PROTECTED], cause: 
org/apache/log4j/LogManager


Seems that JBoss is having serious issues with JDK 1.6, so going back to JDK 
1.5 where all runs OK.

 I would offer my assistance to debug this issues if asked. I can provide 
several use cases that reproduce this kind of problems (all related to jbossws).

Greets, 
Pedro

View the original post : 

[jboss-user] [JBoss Messaging] - [Clustering Question]What will happen when the crashed serve

2007-01-16 Thread hendra_netm
Hi all,
I am really delighted with JBoss Messaging clustering featuring, especially 
server and client failover.
However, there is still a question about what will JBoss Messaging does, when 
the crashed messaging server is alive again?

Consider this example:
There are two messaging servers A and B. Each has one producer and one 
consumer. So A has one producer p1 and one consumer c1, and B has producer p2 
and consumer c2.

When A is crashed, p1 and c1 will be failed over to node B. The operator will 
be notified that A is crashed, then he/she restarts A. If this is happened, A 
will have no clients. Am I correct or not?

Thank you in advance,
Hendra

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - thin driver ojdbc14.jar, Java 6 (1.6) and -Xss

2007-01-16 Thread mclu
Hi out there!

We are using Jboss 4.x with Oracle 9 and 10.

Because in the Java 5 there are some Bugs/Issues with Threads we are forced to 
upgrade to Java 6. We are using plain J2EE with EJB 2.0 and mostly 1.1

With Java 6 and MSSQL all works but not with Oracle. We we found the Error...
It has to Do with the VM Parameter -Xss (Setting Stack Size)
At JBoss we are using the Thin Driver and the newest ojdbc14.jar

Configutation DS:
local-tx-datasource
jndi-nameAeosDS/jndi-name
connection-urljdbc:oracle:thin:@NVC0534:1521:test/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
min-pool-size0/min-pool-size
max-pool-size50/max-pool-size
security-domainMyDatabaseRealm/security-domain

  type-mappingOracle9i/type-mapping

  /local-tx-datasource

When we now start the Server without the -Xss setting all is OK.
When I start up the Server with -Xss64k I get a NoClassDefFoundError ???
Stacktrace:

09:14:16,765 INFO  [DbManager] Trying to get connection from datasource with 
name= java:/AeosDS
09:14:16,906 WARN  [JBossManagedConnectionPool] Throwable while attempting to 
get a new connection: null
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleCallableStatement
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:568)
at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFacto
ry.java:151)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnect
ionPool.java:508)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207
)
at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:
534)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:396)
at 
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:299)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:448)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionMan
ager2.java:838)
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
at 
com.nedap.aeos.ejbutil.DbManager.getConnectionOnce(DbManager.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...


Why the Driver change his behaviour dependend on the Xss setting?
Is there a Bug on Jboss side?
I Also posted this in the Oracle Tech Channel.

With an older Version like the classes12.jar it works!!

Greets
Markus Lutum

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

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


[jboss-user] [JBoss Portal] - Re: Browser Adress Bar

2007-01-16 Thread djmacpac
Does really nobody know how to set the content of the adress field?

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

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


[jboss-user] [JBoss jBPM] - Get all the process definitions

2007-01-16 Thread srsuarez
Hi,
I am new to jBPM so this question may seem trivial. I need to obtain the list 
of all the process definitions that are saved on the database. I want to know 
if there is some method that give it to me. I have searched on the 
ProcessDefinition class but I don't find it. Anybody know if it is created?
Thanks.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - How call EJB 3.0 in scheduler ?

2007-01-16 Thread fxmichaud
Hi,

I'm developping web application and I would like run a scheduling service at 
JBoss startup.

I'm using JBoss 4.0.5 + Seam 1.1. My Eclipse project has been generated by 
using Seam-Gen tools.

[resources/META-INF/scheduler-service.xml] file :


  | ?xml version=1.0 encoding=UTF-8? 
  | server
  | mbean code=org.jboss.varia.scheduler.Scheduler
  |name=task:service=Scheduler
  | attribute name=StartAtStartuptrue/attribute
  | attribute 
name=SchedulableClasscom.application.intranet.tasks.Task/attribute
  | attribute name=SchedulableArgumentsaa,123456789/attribute
  | attribute 
name=SchedulableArgumentTypesjava.lang.String,long/attribute
  |  
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod6000/attribute
  | attribute name=InitialRepetitions-1/attribute
  | dependsjboss.j2ee:module=fmichaud.jar,service=EJB3/depends
  | /mbean
  | /server
  | 

[resources/META-INF/jboss-app.xml] file :


  | jboss-app
  |loader-repository 
  |   seam.jboss.org:loader=fmichaud
  |/loader-repository
  |module
  | serviceMETA-INF/scheduler-service.xml/service
  |/module
  | /jboss-app
  | 

My scheduled task class :


  | public class Task implements Schedulable {
  | private final zLogger log = zLogger.getLogger(getClass());
  | private String name;
  | private long value;
  | 
  | /** Accounts business service EJB. */
  | @EJB
  | private AccountsServiceImpl accountsService;
  | 
  | public Task(String name, long value)
  | {
  | this.name = name;
  | this.value = value;
  | log.logBusinessEvent(LogLevel.INFO, ctor, name:  + name + , 
value:  + value);
  | }
  | 
  | public void perform(Date now, long remainingRepetitions) {
  | CollectionAccount accountsList = 
accountsService.getEntries(); 
  | }
  | }
  | 

I obtain next exception at JBoss startup :

  | 09:35:53,066 ERROR [Scheduler$Listener] Handling a Scheduler call failed
  | java.lang.NullPointerException
  | at com.application.intranet.tasks.Task.perform(Task.java:72)
  | at 
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1251)
  | at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
  | at $Proxy46.handleNotification(Unknown Source)
  | at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
  | at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
  | at javax.management.timer.Timer.sendNotification(Timer.java:1295)
  | at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
  | at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
  | at java.util.TimerThread.mainLoop(Timer.java:512)
  | at java.util.TimerThread.run(Timer.java:462)
  | 

In web application or with TestNG, EJB is running.
I tried to lookup jNDI EJB but nothing seems valid.
How to instantiate EJB 3.0 for calling from JBoss scheduler service ?

Thanks for any help.
Regards.


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

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


[jboss-user] [JBoss Seam] - Re: Generic List with @DataModel

2007-01-16 Thread Eekboom
This is not a seam question at all, is it?

Anyway, read the following pdf, especially the sections about type erasure.
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf


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

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


[jboss-user] [JBoss Seam] - Re: Deafault Seam Resource bundle not available via the 'mes

2007-01-16 Thread jalupa
Are you using Sun RI 1.2?
Then, read sticky topic Running the booking example on JBoss with the JSF 1.2 
RI, step (6).

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

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


[jboss-user] [JBoss Seam] - Re: Seam and OpenLaszlo?

2007-01-16 Thread lowecg2004
I too would be interested in any information on this or Flex.

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

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


[jboss-user] [JBoss/Spring Integration] - Spring module and war deployed separatly

2007-01-16 Thread djeanprost
Hello,

My question may be considered as off-topic, but let me expose my problem. I 
would like folks here to share their point of view on my issue.

I have a spring module which holds my business implementation. This business 
implementation is shared between 2 webapps. So what I want to do is to deploy 
my spring module using spring deployer (what a great feature by the way), and 
use these beans in my webapps. Both of them are deployed in the deploy dir of 
jboss.
As I also need the beans classes in my webapp, I also need them in the 
WEB-INF/lib. The classloading problem is approaching, isn't it ?
ApplicationContext appContext = WebApplicationContextUtils
  | .getWebApplicationContext(servletContext);
  | Object o = appContext.getBean(service.global.idFonctionnel);
  | ServiceIdFonctionnel serviceIdFonctionnel = 
(ServiceIdFonctionnel)o; 
This code leads me to a ClassCastException. I precise that the bean do 
implements the ServiceIdFonctionnel interface.

My questions :
Is spring deployer aimed at this kind of deployment scenario ?
If so, how should I do to avoid this ClassCastException ? Do I have to play 
with classloading options of my jboss-web.xml ?
If not, this means to me that I can't share spring modules between 2 webapp ?

Thank you for your testimonials and answers.

Best regards,

Dom

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

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


[jboss-user] [Beginners Corner] - Re: Simple action not called

2007-01-16 Thread hispeedsurfer
Hi,

can please anybode have a look on my code.

I have no idea what's wrong and what I have to do call the method onListLoad() 
suggessful.


Thanks
Andreas

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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread Antoine_h
Thanks,
I will look this way. I also look at Alfresco, that may provide the repository 
service access in several ways.


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

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


[jboss-user] [EJB/JBoss] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2007-01-16 Thread Antoine_h
I have solved it by putting every thing in the same ear, which is ok for now.
Then, it works fine, no error on class cast.
I 'll look at the library you recommend to add to the client. It seems to be a 
good way to go further.

Thank you.
Best regards,


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

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


[jboss-user] [JBoss Seam] - Conversation problem

2007-01-16 Thread yoav200
Hello,

I have a seam application, I want to start a conversation when I enter a page 
and end it when I leave the page.

I want the associate EJB to be destroyed when the conversation ends.
I used the @Begin and @End but it looks like my EJB does not destroyed 
immediately.

On a second page I want the same behavior BUT I need to send id parameter to 
one of the backing EJB members, so I used the pages.xml like in the dvdstore 
example, my problem is that I use ajax4jsf and every time the page (or part of 
it) is rerendered the function set in the pages.xml is called and start a new 
conversation.

is there a solution for this kind of situation ?

thank


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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread olivie34
Hello Antoine, 

As Alfresco tools, there is another open source product that is called 
Magnolia. You should have a look to it too.

If you manage to make all that work, thanks to explain a little how.

Thanks in advance,

Olivier.

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

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


[jboss-user] [JBoss Messaging] - Re: JMS Exceptions / Mismatch of JBossSerialization version

2007-01-16 Thread [EMAIL PROTECTED]
rtm333 wrote : 
  | I will be happy to provide the debug logs and/or the source code if deemed 
helpful.
  | 

Could you please send us the simplest way to reproduce the problem? Or a test 
case? As soon as I have that, I'll take a look.

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

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


[jboss-user] [EJB/JBoss] - Re: Scheduler vs. EJB Timer Service

2007-01-16 Thread torf
MyApp-all.ear contains: 
  | META-INF/
  | META-INF/MANIFEST.MF
  | META-INF/application.xml
  | MyApp-all.jar
  | MyApp-all.wsr
  | 

MyApp-all.ear:MyApp-all.jar contains: 
  | META-INF/
  | META-INF/MANIFEST.MF
  | META-INF/ejb-jar.xml
  | META-INF/jboss.xml
  | META-INF/jbosscmp-jdbc.xml
  | META-INF/lib/
  | META-INF/lib/j2ssh-commons-logging-v0.2.7.jar
  | META-INF/lib/j2ssh-core-v0.2.7.jar
  | de/
  | de/mobilcom/
  | de/mobilcom/messenger/
  | de/mobilcom/messenger/Attachment.class
  | de/mobilcom/messenger/AttachmentType.class
  | de/mobilcom/messenger/Attribute.class
  | de/mobilcom/messenger/AttributeName.class
  | de/mobilcom/messenger/Message.class
  | de/mobilcom/messenger/MessageOrder.class
  | de/mobilcom/messenger/MessagePageRequest.class
  | de/mobilcom/messenger/MessagePageResult.class
  | de/mobilcom/messenger/MessageType.class
  | de/mobilcom/messenger/MessengerException.class
  | de/mobilcom/messenger/MessengerExceptionCode.class
  | de/mobilcom/messenger/MessengerService.class
  | de/mobilcom/messenger/MessengerServiceBaseBean.class
  | de/mobilcom/messenger/MessengerServiceLocal.class
  | de/mobilcom/messenger/MessengerServiceLocator.class
  | de/mobilcom/messenger/MessengerServiceProdBean.class
  | de/mobilcom/messenger/MessengerServiceProdLocalHome.class
  | de/mobilcom/messenger/MessengerServiceProdRemoteHome.class
  | de/mobilcom/messenger/MessengerServiceRemote.class
  | de/mobilcom/messenger/MessengerServiceTestBean.class
  | de/mobilcom/messenger/MessengerServiceTestLocalHome.class
  | de/mobilcom/messenger/MessengerServiceTestRemoteHome.class
  | de/mobilcom/messenger/TransmissionInterval.class
  | de/mobilcom/messenger/TransmissionPriority.class
  | de/mobilcom/messenger/configuration/
  | de/mobilcom/messenger/configuration/Configuration.class
  | de/mobilcom/messenger/configuration/ConfigurationMBean.class
  | de/mobilcom/messenger/gateway/
  | 
de/mobilcom/messenger/gateway/AttachmentDataSource$InternalByteArrayOutputStream.class
  | de/mobilcom/messenger/gateway/AttachmentDataSource.class
  | de/mobilcom/messenger/gateway/Gateway.class
  | de/mobilcom/messenger/gateway/GatewayEMailProdImpl.class
  | de/mobilcom/messenger/gateway/GatewayEMailTestImpl.class
  | de/mobilcom/messenger/gateway/GatewayException.class
  | de/mobilcom/messenger/gateway/GatewayMessages.class
  | de/mobilcom/messenger/gateway/GatewayMessages.properties
  | de/mobilcom/messenger/gateway/GatewayNullImpl.class
  | de/mobilcom/messenger/gateway/GatewaySMSProdImpl.class
  | de/mobilcom/messenger/gateway/GatewaySMSTestImpl.class
  | de/mobilcom/messenger/repository/
  | de/mobilcom/messenger/repository/MessageEntryBean.class
  | de/mobilcom/messenger/repository/MessageEntryBeanLocal.class
  | de/mobilcom/messenger/repository/MessageEntryBeanLocalHome.class
  | de/mobilcom/messenger/repository/Repository.class
  | de/mobilcom/messenger/repository/RepositoryEntityImpl.class
  | de/mobilcom/messenger/repository/RepositoryException.class
  | de/mobilcom/messenger/repository/RepositoryMessages.class
  | de/mobilcom/messenger/repository/RepositoryMessages.properties
  | de/mobilcom/messenger/repository/RepositoryTestImpl$MessageEntry.class
  | de/mobilcom/messenger/repository/RepositoryTestImpl.class
  | de/mobilcom/messenger/scheduler/
  | de/mobilcom/messenger/scheduler/MessageSchedulerTimerRemote.class
  | de/mobilcom/messenger/scheduler/MessageSchedulerTimerRemoteHome.class
  | de/mobilcom/messenger/scheduler/Scheduler.class
  | de/mobilcom/messenger/scheduler/SchedulerException.class
  | de/mobilcom/messenger/scheduler/SchedulerMessageBean.class
  | de/mobilcom/messenger/scheduler/SchedulerMessages.class
  | de/mobilcom/messenger/scheduler/SchedulerMessages.properties
  | de/mobilcom/messenger/scheduler/SchedulerProdImpl.class
  | de/mobilcom/messenger/scheduler/SchedulerTestImpl.class
  | de/mobilcom/messenger/scheduler/SchedulerTimerBean.class
  | j2ssh-commons-logging-v0.2.7.jar
  | j2ssh-core-v0.2.7.jar

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

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


[jboss-user] [JBoss Seam] - Seam serialization double click

2007-01-16 Thread sherkan777
Hi,
I hard about Seam serialization, that prevent double click when form is 
submited.
But i can't find any example, how to prevent double click in my form.
Can anyone give me here a link to example, or tell me on with page in seam doc 
can I find info about it, how to use and how it works?
Regards!

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

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


[jboss-user] [JBoss Seam] - Re: Starting a converstaion and then it ain't there any more

2007-01-16 Thread seamNoobie
Fixed (it seems).



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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Flushing the AS CMP cache

2007-01-16 Thread chrismm
Does anyone know how to flush the AS CMP cache (without stopping/restarting the 
AS)? 
Since turning it on a lot of our unit tests are failing because they setup and 
teardown data directly in the db before running, the good old AS knows nothing 
about this and holds the test data from previous tests in its cache, since a 
lot of the tests use the same test data they start failing.


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

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


[jboss-user] [JBoss AOP] - Re: Determining who made the original call

2007-01-16 Thread aleksab
Sorry, will take the last question to the right forum.

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

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


[jboss-user] [Installation, Configuration Deployment] - Exception for new JMS Topic

2007-01-16 Thread rivella50
Hi there,

when i add the following configuration file in 
server/default/deploy/polopoly/polopoly-service.xml  or
server/all/deploy/polopoly/polopoly-service.xml

i get a java.lang.IllegalArgumentException: null object name

2007-01-16 10:45:04,591 WARN  [org.jboss.system.ServiceController] Problem 
creating service jboss.mq.destination:service=Topic,name=polopolyCM_topic
java.lang.IllegalArgumentException: null object name
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:509)
at 
org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:550)
at 
org.jboss.mq.server.jmx.DestinationMBeanSupport.createService(DestinationMBeanSupport.java:126)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)


here's the new configuration i use:




  | server
  | mbean code=org.jboss.mq.server.jmx.Topic 
name=jboss.mq.destination:service=Topic,name=polopolyCM_topic
  | depends 
optional-attributename=DestinationManagerjboss.mq:service=DestinationManager/depends
  | depends 
optional-attributename=SecurityManagerjboss.mq:service=SecurityManager/depends
  | attribute name=JNDINamepolopolyCM_topic/attribute
  | attribute name=SecurityConf
  | security
  | role name=guest read=true write=true create=true/
  | role name=publisher read=true write=true create=false/
  | role name=durpublisher read=true write=true create=true/
  | /security
  | /attribute
  | /mbean
  | /server
  | 

i'm quite new to jboss, perhaps someone can tell me what's missing
or wrong with the new file or what i have to do additionally to register
this new topic ?

thank you very much.
best regards
rivella50




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

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


[jboss-user] [JBoss Seam] - resource-bundle question

2007-01-16 Thread yoav200
In Chapter 8 in the Seam - Contextual Components there is a topic about 
resource bundle in seam. I followed the examples and did not make it to work...

I have a country.properties file, I?ve put it in WEB-INF/classes and add the 
following to the components.xml

  | component name=org.jboss.seam.core.resourceBundle
  | property name=bundleNames
  | valuecountries/value
  |  /property
  | /component
  | 

And then I tried to get it like so:


  | h:selectOneListbox 
  |   f:selectItems value=#{countries}/
  |  /h:selectOneListbox
  | 

But I got null exception for countries.
Where did I go wrong?
And how can I change the default location of the properties, I want to put it 
in WEB-INF/resources (instead of classes)

Thanks


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

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


[jboss-user] [JBossCache] - Re: Cache v2.0 Alpha2: Optimistic Locking + Explicit Version

2007-01-16 Thread [EMAIL PROTECTED]
I presume that by (1) you meant explicit versioning.

The answer is yes, since even when creating a node it could have a version 
applied to it.

As for (2), the explicit version should only be applied to the final (leaf) 
node, not the intermediate nodes created.  They should receive 
DefaultDataVersions.  See testExplicitVersionOnLeafImplicitParentCreation() in 
ExplicitVersionsTest

Do you have a stack trace of these exceptions?  Also, could you tell me the 
list of calls in such transactions that fail?

Thanks,
Manik

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

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


[jboss-user] [JBossWS] - Re: JBossWS tutorial

2007-01-16 Thread Sanver
Will you finally release a userguide?

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

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


[jboss-user] [JBoss Portal] - MailModuleImpl

2007-01-16 Thread djmacpac
Hi,

I want to use the MailModuleImpl but I don't know how to.
I want to catch an exception and send the message to an eMail adress. But now i 
don't know how to use the MailModule.

I have this:

  | MailModuleImpl mail = new MailModuleImpl();
  | 

but i can't use methods like send or setGateway , what did I forget?
Please help me!

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

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


[jboss-user] [JBossCache] - Re: who can help me? something about treecache.

2007-01-16 Thread [EMAIL PROTECTED]
What version of JBoss Cache are you using?

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

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


[jboss-user] [JBossCache] - Re: who can help me? something about treecache.

2007-01-16 Thread [EMAIL PROTECTED]
What version of JBoss Cache are you using?

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

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


[jboss-user] [JBossCache] - Re: upgrade JBoss4.0.4 GA to use JbossCache2

2007-01-16 Thread [EMAIL PROTECTED]
JBossCache 2 will need new compat layers for things like SFSB and HTTP session 
replication.  These are only being done for AS 5.

If you need to use JBoss Cache for your own purposes and not for dealing with 
AS clustering features though, you could *theoretically* use JBC 2.0.0 on AS 
4.0.4.

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

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


[jboss-user] [JBoss Seam] - Re: BUG s:selectDate for=

2007-01-16 Thread petemuir
This looks like a bug to me, please report it in JIRA.

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

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


[jboss-user] [JBoss Seam] - Re: BUG s:selectDate for=

2007-01-16 Thread beligum
done: http://jira.jboss.com/jira/browse/JBSEAM-661

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

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


[jboss-user] [EJB 3.0] - java.lang.NoClassDefFoundError: org/jaxen/VariableContext du

2007-01-16 Thread ejb3workshop
When my Session Beans are being passivated the following exception is thrown. I 
had a look for the jaxen libraries and even tried added new ones I downloaded 
to the lib folder. Yet the problem did not go away. 

There doesn't seem to be any impact from this, but it would be nice if 
passivation would work.

How can I get rid of the these exceptions. 

anonymous wrote : 
  | javax.ejb.EJBException: Could not passivate; failed to save state
  | at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:363)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196)
  | at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)
  | Caused by: java.io.IOException
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  | at 
org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  | at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  | at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  | at 
org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
  | at 
org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
  | at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  | at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  | at 
org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
  | at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  | at org.jboss.serial.io.MarshalledObject.(MarshalledObject.java:51)
  | at 
org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:405)
  | at 
org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
  | at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  | at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  | at 
org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
  | at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  | at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:347)
  | ... 2 more
  | Caused by: java.lang.reflect.InvocationTargetException
  | at sun.reflect.GeneratedMethodAccessor343.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
  | ... 20 more
  | Caused by: java.io.IOException
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  | at 
org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  | at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  | at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  | at 
org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  | at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  | at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  | at 
org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  | at 
org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  | at 

[jboss-user] [JBoss Getting Started Documentation] - jboss starting problem

2007-01-16 Thread ambika
Hi ,
   I am using jboss 4.0.5 version. When i run run.sh i am getting following 
message if i use JAVA 1.5 version. 

JBOSS_HOME: /home/ambika/jboss/jboss-4.0.5.GA

  JAVA: /opt/java1.5/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: 
/home/ambika/jboss/jboss-4.0.5.GA/bin/run.jar:/opt/java1.5/lib/tools.jar

=

12:06:04,686 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:06:04,687 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: 
CVSTag=Branch_4_0 date=200610162339)
12:06:04,689 INFO  [Server] Home Dir: /home/ambika/jboss/jboss-4.0.5.GA
12:06:04,689 INFO  [Server] Home URL: file:/home/ambika/jboss/jboss-4.0.5.GA/
12:06:04,690 INFO  [Server] Patch URL: null
12:06:04,690 INFO  [Server] Server Name: default
12:06:04,690 INFO  [Server] Server Home Dir: 
/home/ambika/jboss/jboss-4.0.5.GA/server/default
12:06:04,691 INFO  [Server] Server Home URL: 
file:/home/ambika/jboss/jboss-4.0.5.GA/server/default/
12:06:04,691 INFO  [Server] Server Log Dir: 
/home/ambika/jboss/jboss-4.0.5.GA/server/default/log
12:06:04,691 INFO  [Server] Server Temp Dir: 
/home/ambika/jboss/jboss-4.0.5.GA/server/default/tmp
12:06:04,692 INFO  [Server] Root Deployment Filename: jboss-service.xml
12:06:05,078 INFO  [ServerInfo] Java version: 1.5.0.04,Hewlett-Packard Co.
12:06:05,079 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0.04 
jinteg:07.27.06-16:18 IA64,Hewlett-Packard Company
12:06:05,079 INFO  [ServerInfo] OS-System: HP-UX B.11.23,IA64N
12:06:05,816 INFO  [Server] Core system initialized
12:06:08,289 INFO  [WebService] Using RMI server codebase: 
http://martin.india.hp.com:8083/
12:06:08,312 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
12:06:08,954 WARN  [ServiceController] Problem starting service 
jboss:service=Naming
javax.naming.CommunicationException: Can't find SerialContextProvider
at 
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:60)
at com.sun.enterprise.naming.SerialContext.(SerialContext.java:79)
at 
com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:54)
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:175)
at org.jboss.naming.NamingService.startService(NamingService.java:249)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 

 If i use java1.4 version, i am not getting any errors while starting. Below is 
the output,

 JBOSS_HOME: /opt/jboss-4.0.5.GA

  JAVA: /opt/java1.4/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360

  CLASSPATH: /opt/jboss-4.0.5.GA/bin/run.jar:/opt/java1.4/lib/tools.jar

=

12:33:15,922 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:33:15,924 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: 
CVSTag=Branch_4_0 date=200610162339)
12:33:15,925 INFO  [Server] Home Dir: /opt/jboss-4.0.5.GA
12:33:15,926 INFO  [Server] Home URL: file:/opt/jboss-4.0.5.GA/
12:33:15,927 INFO  [Server] Patch URL: null
12:33:15,927 INFO  [Server] Server Name: default
12:33:15,927 INFO  [Server] Server Home Dir: /opt/jboss-4.0.5.GA/server/default
12:33:15,927 INFO  [Server] Server Home URL: 
file:/opt/jboss-4.0.5.GA/server/default/
12:33:15,928 INFO  [Server] Server Log Dir: 
/opt/jboss-4.0.5.GA/server/default/log
12:33:15,928 INFO  [Server] Server Temp Dir: 
/opt/jboss-4.0.5.GA/server/default/tmp
12:33:15,928 INFO  [Server] Root Deployment Filename: jboss-service.xml
12:33:16,572 INFO  [ServerInfo] Java version: 1.4.2.03,Hewlett-Packard Co.
12:33:16,572 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2 
1.4.2.03-040402-00:47-IA64N IA64,Hewlett-Packard Company
12:33:16,573 INFO  [ServerInfo] OS-System: HP-UX B.11.23,IA64N
12:33:17,067 INFO  

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread mikepkp17
try

f:selectItems value=#{messages[some.key]}/

where some.key is 

some.key = some strange text

in your countries.properties

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

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


[jboss-user] [EJB 3.0] - Asynchronous callbacks

2007-01-16 Thread aleksab
How can i achieve asynchronous callbacks in a stateless/statefull bean?

Scenario: A client send a request to a bean (ie do some processing of some 
large data). The bean returns a answer immidiately to the client, but wants to 
be able to tell the client on the progress and the final results. The client 
has a method which is dedicated to handle these callbacks. How can the bean 
send asynchronous callbacks to the client?

I've tried by sending the Method as a argument to the bean:
public String getAsynhcString(Method client, String test)

and the client invoke this by:
test.getAsynhcString(this.getClass().getMethod(callmeback, String.class), 
hello);

The callmeback method of the client is on this form:
public void callmeback(String res)

However, when trying this, I get a marshalling exception: 
java.io.NotSerializableException: java.lang.reflect.Method
which is very unfortunately.

wondering if there are any suggestions on how i should accomplish my goal?

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

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


[jboss-user] [EJB 3.0] - Re: Asynchronous callbacks

2007-01-16 Thread Wolfgang Knauf
Hi !

I think in your scenario a message queue would be helpful: 
-in the server a queue is configured. 
-when the session bean method is called it starts pushing status messages to 
the queue
-the client registers to the other end of the queue and receives the 
messages, until some Finished message arrives.

Does this help ?

Wolfgang

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

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


[jboss-user] [JBoss jBPM] - Re: Task assignment to group or pooledActors

2007-01-16 Thread fuligj
Thank You for the reply Ronald! 
I'm sorry for my mistakes and my bad english too.
So, I use jbpm-starters-kit-3.1.3 and i use the webapp at 
http://localhost:8080/jbpm.
I have read a lot of topics, among others:
http://jboss.com/index.html?module=bbop=viewtopict=98892
http://jboss.com/index.html?module=bbop=viewtopict=80556
but I can't find a working solution.
When I create swimlane 'user(username)' everything works fine, but when i 
change only this swimlane to group(groupname) the assignment don't works.
For example:
After i have sent task 'accept' to a group 'boss', in the table 
jbpm_pooledactor a new row come into being with column ACTORID_: 'boss'. But in 
the table jbpm_swimlaneinstance the (task 'accept')'s swimlane's actorid is 
null. 
Is that correct?

best regards!

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

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


[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
but i want to go over all countries not only one

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

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


[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
and another question
how can I get a message value dynamically?

for instance:  

String msgValue = 'someValue';
#{messages[ msgValue  ] }

is possible?

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

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


[jboss-user] [JBoss Messaging] - Re: JMS Exceptions / Mismatch of JBossSerialization version

2007-01-16 Thread rtm333
Hi, 

After some further experimentation I think I finally found the critical part.

I can reproduce the misbehaviour by adding a trivial ExceptionListener to the 
connection of the topic example included with the Messaging distribution 
(org.jboss.example.jms.topic.TopicExample):


  |   ...
  |   connection = cf.createConnection();
  |   connection.setExceptionListener(new ExceptionListener() {
  |   public void onException(JMSException jmse) {
  |   }
  |   });
  |   ...
  | 

You also have to take care that the subscriber is running for some time (e.g. 
suppress publishing the message it is waiting for and extending the waiting 
time to, say, a minute).

During this time you can look at DEBUG output and/or repeatedly run netstat to 
see that a new connection to the messaging port is opened and closed every two 
seconds:


  |  ...
  |  [java] 11:59:37,410 DEBUG @main [MessageIdGeneratorFactory] checked 
out MessageIdGenerator for server.0, reference count is 1
  |  [java] 11:59:38,160 DEBUG @main [JBossSession] attempting to create 
consumer for destination:JBossTopic[testTopic]
  |  [java] 11:59:39,457 DEBUG @Timer-0 [MicroSocketClientInvoker] Setting 
ClientSocket class name to: org.jboss.jms.client.remoting.ClientSocketWrapper
  |  [java] 11:59:39,457 DEBUG @Timer-0 [SocketClientInvoker] Setting 
SocketClientInvoker::timeout to: 1000
  |  [java] 11:59:39,457 DEBUG @Timer-0 [MicroSocketClientInvoker] Setting 
ClientSocket class name to: org.jboss.jms.client.remoting.ClientSocketWrapper
  |  [java] 11:59:39,457 DEBUG @Timer-0 [SocketClientInvoker] Setting 
SocketClientInvoker::timeout to: 1000
  |  [java] 11:59:39,472 DEBUG @Timer-0 [MicroRemoteClientInvoker] connect 
called for: [EMAIL PROTECTED]
  |  [java] 11:59:39,472 DEBUG @Timer-0 [MicroRemoteClientInvoker] 
disconnect called for: [EMAIL PROTECTED]
  |  [java] 11:59:41,472 DEBUG @Timer-0 [MicroSocketClientInvoker] Setting 
ClientSocket class name to: org.jboss.jms.client.remoting.ClientSocketWrapper
  |  [java] 11:59:41,472 DEBUG @Timer-0 [SocketClientInvoker] Setting 
SocketClientInvoker::timeout to: 1000
  |  [java] 11:59:41,472 DEBUG @Timer-0 [MicroSocketClientInvoker] Setting 
ClientSocket class name to: org.jboss.jms.client.remoting.ClientSocketWrapper
  |  [java] 11:59:41,472 DEBUG @Timer-0 [SocketClientInvoker] Setting 
SocketClientInvoker::timeout to: 1000
  |  [java] 11:59:41,472 DEBUG @Timer-0 [MicroRemoteClientInvoker] connect 
called for: [EMAIL PROTECTED]
  |  [java] 11:59:41,488 DEBUG @Timer-0 [MicroRemoteClientInvoker] 
disconnect called for: [EMAIL PROTECTED]
  |  ...
  | 

This is not the initial problem of this thread (JMS Exceptions / Mismatch of 
JBossSerialization version), but I'm rather certain that it is related to this 
issue, as it leads to connection timeouts. Anyway, the frequent connection 
creation is a problem on it's own right.




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

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


[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread petemuir
You can't use a message bundle like that - it's for internationalisation of 
messages, not iteration.  You'll need to use a Collection of some sort in a 
backing bean or specify them in the view descriptor itself (use f:selectItem).

If, by your second question, you're asking how you get a message in a backing 
bean (seam component):

...
  | @In(create=true)
  | private Map messages;
  | 
  | 
  | public void foo() {
  |...
  |String message = (String) messages.get(foo);
  |...
  | }
  | ...

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

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


[jboss-user] [EJB/JBoss] - EJB lookup after deploying to Jboss

2007-01-16 Thread Richard.luo
Hi everybody,

I'm deploying a simple HelloWorld(Bean) to the jboss as following steps:
1)Declare Remote statless session bean interface HelloWorld
2)Construct a implementation class named HelloWorldBean to implement the Remote 
interface with annotation @Stateless, and there is a method sayHello
3)Compile and make it jar files and then deploy it to jboss server
4)Start jboss server
5)Code the client class named TestHelloWorld

A error occurred when I used following code:

  | InitialContext ic = new InitialContext();
  | HelloWorldBean hwBean = (HelloWorldBean) 
ic.lookup(HelloWorldBean/remote);
  | ...
  | 

But, if I used the following code it do not occur again:

  | Hashtable ht = new Hashtable();
  | ht.put(Context.PROVIDER_URL, jnp://localhost:1099);
  | ht.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  | InitialContext ic = new InitialContext(ht);
  | HelloWorldBean hwBean = (HelloWorldBean) 
ic.lookup(HelloWorldBean/remote);
  | 

Would somebody help me? It confused me several days. In one word, I want to use 
Annotation but it seems not working correctly.
Thanks in advance.

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

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


[jboss-user] [Installation, Configuration Deployment] - Runtime Exception

2007-01-16 Thread hussain_rangwala
hi,
i am trying  to deploy a struts application as a portlet on jboss portal 
2.4.0.GA.
However the application gets deployed successfully and i see the portal-page 
when i access http://localhost:8080/portal.
However when i click on the portal page It gives an error Object not found 
SETLInstanceName.


  | 2007-01-16 16:35:32,434 ERROR 
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing 
to Start: name=portal:container=Portlet,id=SETLAppName.SETLPortletName 
state=Create
  | org.jboss.portal.portlet.container.PortletInitializationException: The 
portlet SETLPortletName threw a runtime exception during init
  | at 
org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:287)
  | at 
org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
  | at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
  | at 
org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
  | at 
org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:232)
  | at 
org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:79)
  | at 
org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:211)
  | at 
org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:242)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 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)
  | 
  | 


below are the deployment descriptors:

1.jboss-app.xml

  | jboss-app
  | app-nameSETLAppName/app-name
  | /jboss-app
  | 

2.jboss-portlet.xml


  | portlet-app
  | 
  |portlet
  |   portlet-nameSETLPortletName/portlet-name
  |   !-- Use the specific struts container configuration --
  |   config-nameStrutsPortlet/config-name
  |/portlet
  | /portlet-app
  | 
  | 

3. portlet.xml


  | ?xml version=1.0 encoding=UTF-8?
  | portlet-app id=SETLAppName 
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
  |  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  
xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd 
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
  |  version=1.0
  | 
  |   portlet id=SETLPortletName
  | init-param
  |   nameServletContextProvider/name
  |   valueorg.jboss.portal.bridge.JBossServletContextProvider/value
  | /init-param
  | init-param
  |   

[jboss-user] [JBoss Portal] - Re: Single sign-on

2007-01-16 Thread rabbuhl
Our web application is written using struts and I am using the struts bridge in 
order to allow it to run under the JBoss Portal.  The logon JSP page for our 
web application invokes an Java action to handle the authentication.

I am not sure whether for the portal we should first make the user pass 
authentication or whether we should show the portal and only require 
authentification when the user tries to access a protected area.

If we require initial authentification then I need to invoke our logon JSP when 
the portal starts up.  I can only guess that this would need to be done by 
modifying tomcat?

If we defer authetification then I am not sure how to cause the logon to occur 
when the user accesses a protect page or portlet.

Richard

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

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


[jboss-user] [EJB 3.0] - Re: Asynchronous callbacks

2007-01-16 Thread aleksab
I managed to do it with a little hack.

Instead of passing the Method as an argument, i passed the client object itself 
as an argument. This means that the method in the bean was changed to:


  | public String getAsynhcString(Object client, String test)
  | 

The client calls the bean with:

  | String tmp = test.getAsynhcString(this, hello);
  | 

This works, and in this example it would be:


  | Method met = client.getClass().getMethod(callmeback, String.class);
  | met.invoke(client, lovely);
  | 

There are several downsides to this, however. I have to extract the method, 
which means that i must know the method name and arguments. This is bad for 
generic method callbacks. It could be solved by annotations I suppose, but that 
only introduce more hacks.

Anyone know how I can do if differently? Suggestions and ideas are much 
appreciated.

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

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


[jboss-user] [EJB 3.0] - Re: mapping example onetoMany

2007-01-16 Thread Wolfgang Knauf
Hi !

I think you have to use a generic list so that the container can determine 
which type is contained in the list:

public class Team (...)
  | @OneToMany(mappedBy=team)
  | private ListUser teamList;

The snippet of class User seems to be wrong, you probably meant this:
public class User (...)
  | 
  | @ManyToOne
  | @JoinColumn(name=team_id,referencedColumnName=id)
  | protected Team team; 

Hope this helps

Wolfgang

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

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


[jboss-user] [JBoss Seam] - Re: Seam Security: authentication and authorization example

2007-01-16 Thread vladimir.kovalyuk
While debugging the configuration from the documentation

security-config
  | security-constraint
  |   web-resource-collection
  | web-resource-nameSecure Page/web-resource-name
  |   url-pattern/secure/*.seam/url-pattern
  | /web-resource-collection
  | auth-constraint
  |   role-nameadmin/role-name
  | /auth-constraint
  |   /security-constraint
  | /security-config

I realized that the problem is in SecurityConstraint.matchPattern(String path, 
String pattern)

I replaced
url-pattern/secure/*.seam/url-pattern
with 
url-pattern/secure/*/url-pattern

It helps.
I believe it's a bug.


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

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


[jboss-user] [JBossWS] - Re: JBossWS tutorial

2007-01-16 Thread RomeuFigueira
Sanver wrote : Will you finally release a userguide?

http://labs.jboss.com/portal/jbossws/user-guide/en/html/index.html

It's been there for quite some time now. (Reference obtained through the wiki)

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

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


[jboss-user] [JBoss Seam] - Re: Conversation problem

2007-01-16 Thread vladimir.kovalyuk
I tried the following scenario:

Page /object_details.xhtml is designed to show details of my particular object.
I tuned pages.xml to map request parameters (such as objejctId) to properties 
of my SFSB backing the page. And my custom page action was marked as @Begin.
I realized that in spite whether I'm using AJAX (IceFaces in my case) or not, 
Seam call that action method every time. So at the second attempt, when Seam 
tries to invoke action that is binded on a button on the page, it invokes 
@Begin method again and suggest annotating with @Begin(nested=true). That's a 
problem of Seam design - it provides us with myriads of possibilities, that are 
not working in combination some times :)

In my case I succeeded with introducing a fake page that does nothing but 
accepting parameters and invoking page action. Page action method returns 
reference to another page. It helped me to omit reentering into new 
conversation.
In other words you need to address your conversational page through the fake 
page, that does all preparation work for you.

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

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


[jboss-user] [EJB 3.0] - Re: No default persistence unit in this deployment

2007-01-16 Thread Wolfgang Knauf
You have to set unitName: 

@PersistenceContext(unitName=demo)
  | private EntityManager em; 

Hope this helps

Wolfgang

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

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


[jboss-user] [JBoss jBPM] - Re: Form validation jBPM 3.2

2007-01-16 Thread kksingh_iitk
write your own custom validator . Write your custom JSF componet wrapping 
HTMLFORM JSF componet . Get your validation componet by using 
componet.findchildren recusrively to get your validation compont . Do your 
validation at decode request value phase of your component .Add JSF error if 
there are validation errors . those errors will be shown at render response 
phase of jsf life cycle.

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

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


[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
OK that work great,

i used a bundleLoader that loads the messages
but how can i print out useing h:outputText
a specific country 

public void foo(String value) {
   ...
   String message = (String) messages.get( value );
   ...
}

and for my first question, how can i load more resourses ?
is it enough to put the property file in the WEB-INF/classes ?

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

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


[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread petemuir
I'm not really following you here but, here goes

h:outputText value=#{messages.china} /

would work if you had a key called china in your message bundle (by default 
messages.properties).

I'm not sure what you mean by 'load more resources', but, if you mean to split 
your message bundles into multiple files, then yes, put the xxx.properties on 
the classpath and tell Seam about them in components.xml.

You probably don't want to use f:loadBundle (at least I assume thats what you 
mean by a 'bundleLoader') but use Seam's message bundle support instead.

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

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


[jboss-user] [JBoss Seam] - Re: Seam Security: authentication and authorization example

2007-01-16 Thread sbryzak2
Actually the docs were wrong, I've fixed it now.  Wildcards can only be used at 
the start of the url-pattern, e.g:


  |   url-pattern*.seam/url-pattern
  | 

or at the end:


  |   url-pattern/secure/*/url-pattern
  | 


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

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


[jboss-user] [JBoss Seam] - Re: Conversation problem

2007-01-16 Thread petemuir
The EJB will be destroyed when the conversation is removed.  Marking a method 
@End doesn't actually end the conversation, but demotes a long-running 
conversation to a temporary conversation.  The temporary conversation will be 
destroyed at the end of the current (JSF) request.

As Vladimir says there are many ways to do similar things in Seam.  Other 
options for starting coversations include using (just add  
s:conversationPropagation type=begin on the link that takes you to the page - 
I find this is often the one I use), using a @Create method marked @Begin so 
that the conversation is begun when the bean (EJB) is created, using @Begin on 
a factory method to similar effect, using a page action and marking the 
conversation @Begin(join=true), using pageflows...

Try to use the examples and the reference manual to guide you through.  You 
could also try the Seam book by Yuan and Heute.

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

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


[jboss-user] [JBoss Seam] - Re: Conversation problem

2007-01-16 Thread vladimir.kovalyuk
I forgot to say that there is no any file corresponding to the fake page in 
pages.xhtml.

What I don't like in that design that I don't read from pages.xml that Seam 
will redirect me to the real page after invoking page action. All the implicit 
logic is a field where bugs are coming from.


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

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


[jboss-user] [JBoss Seam] - Re: Seam and OpenLaszlo?

2007-01-16 Thread livenow
Hi, 

the best way to combine it with flash is by using a javascript proxy just 
call a javascript-function and thats passing the call on to the serverside.



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

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


[jboss-user] [EJB/JBoss] - EjbClient throws java.security.AccessControlException: acce

2007-01-16 Thread [EMAIL PROTECTED]
Hi 
I am using JBoss4.0.4 with Ejb3.0.Ejb is properly deployed on the server but On 
running the Ejb Client, .I get an Exception EjbClient throws  
java.security.AccessControlException: access denied (java.net.SocketPermission 
127.0.0.1:1099 connect,resolve) .

I have already set socket permission to all in java policy file.

Does firewall has to do something with it.
If any body can help.

Thanks in Advance

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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread Antoine_h
For what we have seen (understood), magnolia is more a portal than a CMS. And 
we have chosen JBoss Portal yet.

What we plan to do is to use the portal to publish documents, with all the 
portal features for many access and users (not always logged).
and to use Alfresco to write and manage the content.

we plan to do it this way :
The portlet will access the content from the Alfresco repository, as read only 
(to show it to the users).
We will use the Alfresco web app to write the content (internal team, not many 
users). 
We will use the WCM version of Alfresco, the one that is now in preview, to be 
able to do some XML Authoring (building document with the content in XML and 
the presentation layer aside, with some composition rules applied when 
building).

lot of work to have all this work, but interesting to get these result, with 
each tool used for what it was made for.


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

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


[jboss-user] [JBoss Seam] - [booking]: Why the changePasswordAction is statefull and on

2007-01-16 Thread littlewing1112
Hello,
im a newbie on jboss seam.
I saw in the ChangePasswordAction declaration that this EJB is statefull and 
initialized on EVENT scope as folllowing:
@Stateful
  | @Scope(EVENT)
  | @Name(changePassword)
  | @LoggedIn
  | public class ChangePasswordAction implements ChangePassword
  | 

Firstly, why this action is statefull? In my opinion, this should be stateless. 
Furthermore, she s defined under the event scope, I dont understand why a 
statefull bean should be in event scope. 
Could someone give me an explanation of this? It would be nice ...



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

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


[jboss-user] [JBoss Seam] - Re: [booking]: Why the changePasswordAction is statefull and

2007-01-16 Thread littlewing1112
I forgot...

Thansk in advance for your help

Alexandre

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

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


[jboss-user] [JBossCache] - Re: Performance Issue with Jbosscache

2007-01-16 Thread prdspt
Hey,

That was had got down the time taken for the calls to the jgroups, but we still 
are able to find the no of calls to be the same. Is there any way to eliminate 
the call to the jgroups at all.


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

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


[jboss-user] [JBossCache] - Re: who can help me? something about treecache.

2007-01-16 Thread neddy
thank you! My JbossCache version is 1.4.0sp1,now I can run my object but
no Exception,but has some new problem is I can't get the cache's size use the 
default Fqn,

expression cache.getKeys(Fqn.fromString(fqn)) = Can't assign 
org.jboss.cache.Fqn to java.lang.String

can you tell me what's wrong?

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

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


[jboss-user] [JBoss jBPM] - How to Deploy JBPM definition WITHOUT the designer?

2007-01-16 Thread markricard
The designer for Eclipse is pretty cool for modeling the process.  And it works 
when I click on the deployment tab and click on the deploy button.   But this 
does not work in production environments where we use ant scripts to build and 
deploy.

Can someone point me to where it describes how to deploy a process definition 
outside of the jBPM eclipse plugin?   Preferably something where we can use ant 
to do the deploy?

Big Thanks in Advance,
Mark

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

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


[jboss-user] [JBoss Seam] - Re: Seam coupling

2007-01-16 Thread phpadm
So,

I saw the related posts that you sent.

I thought that Seam purpose, according the posts, is to eliminate complex 
designing. Therefore, the question holds on...

If I change the presentation layer, how could I insert dependency injection?

Through annotations we can get connect the layers, but has Seam engine for that?

Whatelse may be necessary implement interaction layer (JSF - Int. Layer - 
(Seam - EJB)Abstracted.
Note, I really fancy the Seam techniques, they are great (conversation, for 
example).
Should be interesting offer this service to any presentation layer.


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

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


[jboss-user] [JBossCache] - Re: who can help me? something about treecache.

2007-01-16 Thread [EMAIL PROTECTED]
I don't understand what you're trying to do here.  Fqn.fromString() is meant to 
convert a String to an Fqn.

E.g., Fqn.fromString(/a/b/c);

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

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


[jboss-user] [JBoss Seam] - Re: Deafault Seam Resource bundle not available via the 'mes

2007-01-16 Thread JessicaSant
ah thank you.

Adding this to my faces-config.xml fixed it:


  | application
  | el-resolverorg.jboss.seam.jsf.SeamELResolver/el-resolver
  | /application 
  | 

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

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


[jboss-user] [JBossCache] - Re: who can help me? something about treecache.

2007-01-16 Thread neddy
the defaultFqn=defalut your means is I should new Fqn(default),or
I can define the defaultFqn =/default and than I can use 
Fqn.fromString(defaultFqn) or Right?

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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread Antoine_h
I don't know much about Magnolia.
here under is just my opinion.

what made us go to Alfresco is :
 - a good tool for content editing, that can work with jboss portal (and a good 
classic repository and CMS tool).
 - the XML Authoring : being able to compose content with several pieces and 
make the presentation layout at the end. That is to have a form to type the 
content in xml format, and then use this to build the content document, with 
some presentation transformation.
 - the WCM feature, to edit the content and the source code in the same time 
and use some sandbox to have several person work at it independantly.

the first is a good thing we need.
the second is great : we haven't seen a open source global software offering 
this feature (as part of the more general and usual CMS features).
the third is more for the potential, for later... but it s a great feature.

the bonus with alfresco : brand new, nice and powerfull architecture.
if you are not looking for a mature software that as run for a few years yet, 
then alfresco looks good.



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

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


[jboss-user] [JBoss Seam] - Re: EntityHome

2007-01-16 Thread ector7280
This is the first and only attempt to use usersDatabase.  I'm not sure where 
else to inject it.  It doesn't exist yet. Can you  explain how I'm supposed to 
reference an EntityManager for the first time using the Framework?
Using Stateless session beans I just used this method:

  | @PersistenceContext(unitName = cppmsejb3)
  | protected EntityManager em;
  | 

Of course this is with EJB3 before I introduced Seam.

I get the following error when I try to view the debug page:


  | 10:03:57,093 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-facelets.jar!/META-INF/jsf-html.taglib.xml
  | 10:03:57,109 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-facelets.jar!/META-INF/jsf-core.taglib.xml
  | 10:03:57,109 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
  | 10:03:57,203 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-comps.jar!/META-INF/facelet/icefaces.taglib.xml
  | 10:03:57,421 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-facelets.jar!/META-INF/jstl-fn.taglib.xml
  | 10:03:57,546 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-facelets.jar!/META-INF/jstl-core.taglib.xml
  | 10:03:57,546 ERROR [STDERR] Jan 16, 2007 10:03:57 AM 
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-exp.war
  | /WEB-INF/lib/icefaces-facelets.jar!/META-INF/jsf-ui.taglib.xml
  | 10:03:57,593 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
  | javax.faces.el.EvaluationException: 
/file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp27602CPPMS.ear-contents/cppms-
  | exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/debug.xhtml @103,89 
rendered=#{org.jboss.seam.debug.introspector.att
  | ributes!=null}: Exception getting value of property attributes of base of 
type : org.jboss.seam.debug.Introspector$$Enh
  | ancerByCGLIB$$f4d2e36b
  | at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
  | at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:231)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
  | at 
org.jboss.seam.debug.jsf.SeamDebugPhaseListener.beforePhase(SeamDebugPhaseListener.java:51)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:390)
  | 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.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 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 

[jboss-user] [EJB 3.0] - Re: Asynchronous callbacks

2007-01-16 Thread aleksab
Noticed another big drawback. Since the object isn't a RMI object, the method 
on the client is never called, but the copy on the bean side.

Would it be sufficient to pass a RMI object?

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

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


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

2007-01-16 Thread fcorneli
Hi Tom,


I'm using JBoss Remoting 1.4.6.GA now in my integration tests (for an 
application deployed on JBoss AS 4.0.5.GA) running Java 6, and the thing seems 
to behave just fine.

Thanks for the work on this issue.


Regards,
Frank.

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

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


[jboss-user] [JBoss Seam] - param delivery on facelet template

2007-01-16 Thread hispeedsurfer
Hi,

is it possible to deliver a param value from website to website?

I have a template with sidebar container etc and a few derived pages from this 
template. In some cases I dont want display the sidebar.

For this case I thought to can pass a parameter to template and use this value 
for 'renderer' attribut. But this doesn't work.

template
div id=sidebar rendered=#{!dialog} div class=menua href.. /div

derived page
h:outputLink value=foo.seam target=_blank
  |   f:param name=conversationId value=#{conversation.id}/
  |   f:param name=dialog value=true /
  |   h:outputText value=edit/ 
  | /h:outputLink

But the sidebar is allways displayed.
What can I do to solve this problem?


Thanks
Andi

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

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


[jboss-user] [Installation, Configuration Deployment] - Tomcat to JBoss Conversion - tomcat context files

2007-01-16 Thread ucbSloth
Currently we have some apps deployed to Tomcat and are working on migrating 
those apps to JBoss.  Currently all of our web applications are running on 
Tomcat.  I have a question about how to replicate a useful Tomcat configuration 
in JBoss.

In our CATALINA_BASE/conf/Catalina/localhost directory we are making use of 
context files on our development instances to greatly simplify the development 
process.  Here is an example of one of the files that we have in the 
conf/Catalina/localhost directory.


  | Context docBase=C:\data\dev\code\myApp\target\myApp
  | reloadable=true 
  | privileged=true 
  | antiResourceLocking=false 
  | antiJARLocking=false
  |   WatchedResourceWEB-INF/web.xml/WatchedResource
  |   
WatchedResourceWEB-INF/config/struts/struts-config.xml/WatchedResource
  |   WatchedResourceMETA-INF/context.xml/WatchedResource
  | /Context
  | 

This effectively causes Tomcat to load the application from the docBase 
directory rather than actually deploying the war file to the webapps directory. 
 This is very useful in our web application development as we can then use 
maven to do things like run maven war:war-resources to copy a changed jsp file 
while the application is live to try out a new jsp file.  This is much much 
faster than copying the war file to the webapps directory.  I have been 
unsuccessful in getting this to work in JBoss.

Is there a section of the Knowledge Base or manual that explains how to set 
something like this up?

Any help is greatly appreciated.

Thanks.

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

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


[jboss-user] [EJB 3.0] - Issue with accessing ejb3 SLSB remotely..created EJBTHREE-82

2007-01-16 Thread sursha
http://jira.jboss.com/jira/browse/EJBTHREE-823
I would appreciate if I can get a resolution for this. 

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

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


[jboss-user] [JBoss Seam] - Re: Updating the Resource Bundle collection at run-time

2007-01-16 Thread smartbinary
Hi Gavin,

Yes.  I'd done that a couple months ago.  When I subsequently updated to the 
latest version of Seam, my extended class was no longer compatible.  Was just 
checking to see if another mechanism was available ... I'll go ahead and update 
my class.

I'm wondering now if this kind of functionality would be interesting to the 
Seam community?  Perhaps I should create a JIRA for it and contribute my 
extended class?


Regards,

Todd

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm-db readme followed to point 10 - then errors on ant

2007-01-16 Thread cpob
You need the c3p0-0.9.0.jar   (Assuming hibernate 3.1.x) in your classpath

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

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


[jboss-user] [JBoss jBPM] - Re: How to Deploy JBPM definition WITHOUT the designer?

2007-01-16 Thread NiB
You can use the jbpm-api:
http://docs.jboss.org/jbpm/v3/userguide/tutorial.html

Have a look at chapter 3.2 Database Example

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

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


[jboss-user] [JBoss jBPM] - Re: Form validation jBPM 3.2

2007-01-16 Thread NiB
Thank you. I think I can manage that.

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

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


[jboss-user] [JBoss jBPM] - Re: How to Deploy JBPM definition WITHOUT the designer?

2007-01-16 Thread NiB
You can use the jbpm-api:
http://docs.jboss.org/jbpm/v3/userguide/tutorial.html

Have a look at chapter 3.2 Database Example

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

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


[jboss-user] [JBoss jBPM] - jBPM 3.2 Form elements and arrays

2007-01-16 Thread NiB
Hi,
I have an array of Strings and I want to display for each array entry one
checkbox, e.g.

[ ] user 1
[ ] user 2
[ ] user 3

I don't know how to do this, can you help me out?
Thank you!

Greetz,
Nib

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

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


[jboss-user] [JBoss jBPM] - Re: jBPM 3.2 Form elements and arrays

2007-01-16 Thread kukeltje
how would this be done in JSF? It is similar in jBPM (tip: selectManyCheckbox)

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

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


[jboss-user] [JBoss jBPM] - Re: How to Deploy JBPM definition WITHOUT the designer?

2007-01-16 Thread kukeltje
or the jbpm ant tasks for deploying

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Historical data

2007-01-16 Thread PeterJ
Then twiddle is the way to go. You can set up a cron job to run twiddle 
periodically, dumping the requested values to a file.

By the way, you could also use Nagios or GroundworkMonitor (they have an open 
source variant) to do this, but they both use a simple script that uses 
twiddle. Nagios instructions are at 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossNagiosPlugin

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

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


[jboss-user] [EJB 3.0] - Re: Problem with LAZY relations and SerializableProxy

2007-01-16 Thread [EMAIL PROTECTED]
I just did some more testing about this. The bug is gone if I use Java 5 on 
both sides (client and server). It seams to be a problem with Java 6 and 
serialization.

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

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


[jboss-user] [JBoss jBPM] - Re: Task assignment to group or pooledActors

2007-01-16 Thread kukeltje
Yes that is correct behaviour. If someone from the group wants to carry out the 
task and have it in his own tasklist, put his id in the actorid field, but 
LEAVE the group actorid filled. That way you can reassign back to the group by 
making the normal actorid null

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Spring module and war deployed separatly

2007-01-16 Thread alesj
JBoss classloading model is flat, this means that all apps in deploy dir can 
eventually 'see' each other.

I think you don't need to put the same classes that are used in your common 
Spring module into each separate app (you just need them when compiling). Try 
w/o.
But be sure Spring common module is deployed before the two other web apps. 

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Tomcat to JBoss Conversion - tomcat context files

2007-01-16 Thread PeterJ
Two possibilities.

First, maybe exploded directories would help you.  See 
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment.  Since the war is 
a directory tree rather than a file, it is easy to replace or add files without 
restarting the whole app.

The other possibility is to add new directories to the main deployment scanner. 
 You can do this via the  URLs attribute on the 
jboss.deployment:type=DeploymentScanner,flavor=URL MBean defined at the end of 
server/xxx/conf/jboss-service.xml file.

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

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


[jboss-user] [Security JAAS/JBoss] - LdapLoginModule configuration

2007-01-16 Thread MelampO
Hello

I'm trying to configure a very simple login system using LdapLoginModule. I had 
never worked with LDAP, so, searching the web and the jboss wiki I found the 
LoginModulesTestCase which works perfectly for me adding my personal 
configuration.

Following this example, I developed my first version, and it works fine:

LoginAction:

  | @In(required = false)
  | @Out(required = false)
  | private Usuario usuario;
  | 
  | /**
  |  * Hard coded login configurations for the test cases. The configuration
  |  * name corresponds to the unit test function that uses the 
configuration.
  |  */
  | 
  | static {
  | try {
  | Configuration.setConfiguration(new LdapConfig());
  | } catch (Exception e) {
  | e.printStackTrace();
  | }
  | }
  | 
  | static class LdapConfig extends Configuration {
  | public void refresh() {
  | }
  | 
  | public AppConfigurationEntry[] getAppConfigurationEntry(String 
name) {
  | AppConfigurationEntry[] entry = null;
  | try {
  | Class[] parameterTypes = {};
  | Method m = getClass().getDeclaredMethod(name, 
parameterTypes);
  | Object[] args = {};
  | entry = (AppConfigurationEntry[]) 
m.invoke(this, args);
  | } catch (Exception e) {
  | }
  | return entry;
  | }
  | 
  | AppConfigurationEntry[] BibliotecaLdap() {
  | String name = 
org.jboss.security.auth.spi.LdapLoginModule;
  | HashMap options = new HashMap();
  | options.put(java.naming.factory.initial,
  | com.sun.jndi.ldap.LdapCtxFactory);
  | options.put(java.naming.provider.url, 
ldap://trasgu/;);
  | options.put(java.naming.security.authentication, 
simple);
  | 
  | AppConfigurationEntry ace = new 
AppConfigurationEntry(name,
  | 
AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
  | options);
  | AppConfigurationEntry[] entry = { ace };
  | return entry;
  | }
  | }
  | 
  | /**
  |  * @see org.fundacion.biblioteca.actions.usuario.ValidarUsuario#login()
  |  */
  | public String login() {
  | 
  | UsernamePasswordHandler handler = new 
UsernamePasswordHandler(usuario
  | .getUsername(), password.toCharArray());
  | 
  | LoginContext lc;
  | 
  | try {
  | lc = new LoginContext(BibliotecaLdap, handler);
  | lc.login();
  | Subject subject = lc.getSubject();
  | System.out.println(Subject:  + subject);
  | } catch (LoginException e) {
  | e.printStackTrace();
  | }
  | 
  | return null;
  | }
  | 

Ok. This works and I could authenticate my users with LDAP (at this momment I 
don't need roles or groups).

My second step was do the same in a pretty way, without hardcoding 
configurations and adding everything in they configuration file. Now, I have 
this:

LoginAction:

  | @In(required = false)
  | @Out(required = false)
  | private Usuario usuario;
  | 
  | public String login() {
  | 
  | UsernamePasswordHandler handler = new 
UsernamePasswordHandler(usuario
  | .getUsername(), password.toCharArray());
  | 
  | LoginContext lc;
  | 
  | try {
  | lc = new LoginContext(BibliotecaSecurity, handler);
  | lc.login();
  | Subject subject = lc.getSubject();
  | System.out.println(Subject:  + subject);
  | } catch (LoginException e) {
  | e.printStackTrace();
  | }
  | 
  | return null;
  | }
  | 

login-config.xml (very simple, but just with the same configuration that was 
working in the fisrt case)

  | application-policy name=BibliotecaSecurity
  | authentication
  | login-module
  | 
code=org.jboss.security.auth.spi.LdapLoginModule
  | flag=required
  | module-option 
name=java.naming.factory.initial
  | com.sun.jndi.ldap.LdapCtxFactory
  | /module-option
  | module-option name=java.naming.provider.url 
  | ldap://trasgu:389
  | /module-option
  |  

[jboss-user] [JBoss Seam] - Re: NullPointerException in D2DViewHandler.calculateRenderKi

2007-01-16 Thread JessicaSant
I reproduced this using the icefaces seam example

environment:
Seam 1.1.GA
JBoss 4.0.5.GA
Sun RI 1.2

I followed the Running the booking example on JBoss with the JSF 1.2 RI 
sticky (http://www.jboss.com/index.html?module=bbop=viewtopict=94738), namely:

1- setup a configuration of JBossAS 4.0.5 to use the SunRI instead of myFaces
2- modified the iceFaces\resources\META-INF\application.xml, commented out the 
el-api.jar and el-ri.jar:

  | !-- module
  | javael-api.jar/java
  | /module
  | module
  | javael-ri.jar/java
  | /module --
  | 
3- modified iceFaces\resources\WEB-INF\faces-config.xml to use the 
SeamELResolver

  | application
  | el-resolverorg.jboss.seam.jsf.SeamELResolver/el-resolver
  | /application
  | 
4- modified iceFaces\resources\WEB-INF\web.xml to use SunRI:

  | !-- MyFaces --
  | !--listener
  | 
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener --
  | 
  | !-- JSF RI --
  | listener
  | 
listener-classcom.sun.faces.config.ConfigureListener/listener-class
  | /listener 
  | 

5- built the ear, then removed the el-ri.jar and el-api.jar from the generated 
ear.
6- deployed jboss-seam-icefaces.ear and icefaces-ds.xml to the SunRI configured 
JBossAS
7- when I run, I get a NullPointerException


  | 10:41:31,890 ERROR [STDERR] Jan 16, 2007 10:41:31 AM 
com.sun.faces.config.ConfigureListener isJspTwoOne
  | WARNING: Incorrect JSP version found, method getJspApplicationContext does 
not exist.
  | 10:41:31,906 ERROR [STDERR] Jan 16, 2007 10:41:31 AM 
com.sun.faces.config.ConfigureListener contextInitialized
  | INFO: Completed initializing Sun's JavaServer Faces implementation 
(1.2_02-b03-FCS) for context 'null'
  | 10:41:31,921 INFO  [ResponseStateManager] using response state manager: 
com.icesoft.faces.webapp.xmlhttp.ResponseStateManager
  | 10:41:32,000 INFO  [EARDeployer] Started J2EE application: 
file:/F:/jboss-4.0.5.GA-ejb3/server/default/deploy/jboss-seam-icefaces.ear
  | 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM 
com.sun.faces.lifecycle.ELResolverInitPhaseListener 
populateFacesELResolverForJsp
  | INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the 
JSP container.
  | 10:41:37,531 INFO  [Events] no events.xml file found
  | 10:41:37,531 ERROR [STDERR] Jan 16, 2007 10:41:37 AM 
com.sun.faces.lifecycle.LifecycleImpl phase
  | WARNING: executePhase(RESTORE_VIEW 1,[EMAIL PROTECTED]) threw exception
  | java.lang.NullPointerException
  | at 
com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:170)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
  | 10:41:37,546 ERROR [PersistentFacesServlet] Exception executing lifecycle 
or setting up persistent context. java.lang.NullPointerException
  | javax.faces.FacesException: java.lang.NullPointerException
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | ...
  | 10:41:37,562 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
  | javax.servlet.ServletException: java.lang.NullPointerException
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:437)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 10:41:37,562 ERROR [[Persistent Faces Servlet]] Servlet.service() for 
servlet Persistent Faces Servlet threw exception
  | javax.faces.FacesException: java.lang.NullPointerException
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:305)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:389)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | ...
  | Caused by: java.lang.NullPointerException
  | at 
com.icesoft.faces.application.D2DViewHandler.calculateRenderKitId(D2DViewHandler.java:696)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:241)
  | at 

[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread [EMAIL PROTECTED]
I don't think Alfresco still integrates with JBoss Portal identities. (so that 
you could protect resources for example)

Would anyone willing to contribute on this ? That would be an intersting thing 
to do i think.

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

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


[jboss-user] [JBoss/Spring Integration] - Re: Spring module and war deployed separatly

2007-01-16 Thread djeanprost
Thank you for this answer. I'll try it, and give you feedback as soon as 
possible

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

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


[jboss-user] [JBoss Portal] - Re: JCR CMS Repository on distant machine

2007-01-16 Thread [EMAIL PROTECTED]
anonymous wrote : 
  | I don't think Alfresco still integrates with JBoss Portal identities. (so 
that you could protect resources for example)
  | 
  | Would anyone willing to contribute on this ? That would be an intersting 
thing to do i think.
  | 
  | 

Right on. I am going to evaluate Alfresco integration with our PortalCMS for a 
better out-of-the-box experience. here is the JIRA task for that

http://jira.jboss.com/jira/browse/JBPORTAL-1187

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

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


[jboss-user] [JBoss Seam] - Re: Testing FacesMessages with wmbedded container and inject

2007-01-16 Thread [EMAIL PROTECTED]
   [testng] 10:52:51,625 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: 
org.jboss.seam.core
   [testng] 10:52:51,640 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, 
prefix: org.jboss.seam.core.framework
   [testng] 10:52:51,640 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: 
org.jboss.seam.jms
   [testng] 10:52:51,640 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: 
org.jboss.seam.drools
   [testng] 10:52:51,640 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, 
prefix: org.jboss.seam.remoting
   [testng] 10:52:51,640 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: 
org.jboss.seam.theme
   [testng] 10:52:51,656 INFO  [Scanner] scanning: 
C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\build\test
   [testng] 10:52:51,656 INFO  [Scanner] scanning: 
/C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: 
org.jboss.seam.drools
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, 
prefix: org.jboss.seam.remoting
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: 
org.jboss.seam.theme
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: 
org.jboss.seam.core
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: 
org.jboss.seam.jms
   [testng] 10:52:51,671 INFO  [Initialization] Namespace: 
http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, 
prefix: org.jboss.seam.core.framework
   [testng] 10:52:51,687 INFO  [Initialization] reading /WEB-INF/components.xml
   [testng] 10:52:51,796 INFO  [Initialization] reading 
jar:file:/C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar!/META-INF/components.xml
   [testng] 10:52:51,828 INFO  [Initialization] reading properties from: 
/seam.properties
   [testng] 10:52:51,828 INFO  [Initialization] reading properties from: 
/jndi.properties
   [testng] 10:52:51,828 INFO  [Initialization] initializing Seam
   [testng] 10:52:51,843 INFO  [Scanner] scanning: 
C:\Users\dsvmacdonald\Files\Work\nuArch\Clients\Project\Projects\Project-Beta\build\test
   [testng] 10:52:51,937 INFO  [Scanner] scanning: 
/C:/Users/dsvmacdonald/Files/Work/nuArch/Clients/Project/Projects/Project-Beta/lib/jboss-seam.jar
   [testng] 10:52:52,953 INFO  [Initialization] two components with same name, 
higher precedence wins: org.jboss.seam.core.manager
   [testng] 10:52:53,000 INFO  [Initialization] two components with same name, 
higher precedence wins: org.jboss.seam.core.pages
   [testng] 10:52:53,046 INFO  [Component] Component: org.jboss.seam.core.init, 
scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
   [testng] 10:52:53,093 INFO  [Initialization] Installing components...
   [testng] 10:52:53,093 INFO  [Component] Component: 
org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, 
class: org.jboss.seam.core.ApplicationContext
   [testng] 10:52:53,109 INFO  [Component] Component: 
org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: 
org.jboss.seam.core.Exceptions
   [testng] 10:52:53,109 INFO  [Component] Component: 
org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: 
org.jboss.seam.core.ConversationStack
   [testng] 10:52:53,109 INFO  [Component] Component: login, scope: STATELESS, 
type: STATELESS_SESSION_BEAN, class: com.nuarch.login.LoginAction, JNDI: 
LoginAction/local
   [testng] 10:52:53,140 INFO  [Component] Component: 
org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
   [testng] 10:52:53,140 INFO  [Component] Component: 
org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: 
org.jboss.seam.core.IsUserInRole
   [testng] 10:52:53,156 INFO  [Component] Component: 
org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: 
org.jboss.seam.core.Redirect
   [testng] 10:52:53,156 INFO  [Component] Component: 
org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: 
org.jboss.seam.debug.Contexts
   [testng] 10:52:53,156 INFO  [Component] Component: 

[jboss-user] [EJB 3.0] - ClassCastException in Stateful Session-Bean

2007-01-16 Thread te-bachi
I'm a beginner and would like to run some JBoss EJB 3.0 examples:
Calculator (Stateless SessionBean) - OK!
ShoppingCart (Stateful SessionBean) - ClassCastException

Environment:
o Java 1.5.0_09
o IntelliJ IDEA 6.0.4
o JBoss 4.0.5 AS (JEMS Installer with ejb3)
o Windows XP SP2

Interfaces:

  | @Local
  | @Remote
  | public interface Calculator {
  | int add(int x, int y);
  | int subtract(int x, int y);
  | }
  | 
  | @Local
  | @Remote
  | public interface ShoppingCart {
  |void buy(String product, int quantity);
  |HashMapString, Integer getCartContents();
  | }
  | 

SessionBeans:

  | @Stateless
  | public class CalculatorBean implements Calculator {
  |public int add(int x, int y) {
  |   return x + y;
  |}
  | 
  |public int subtract(int x, int y) {
  |   return x - y;
  |}
  | }
  | 
  | @Stateful
  | public class ShoppingCartBean implements ShoppingCart {
  | private HashMapString, Integer cart;
  | 
  | public ShoppingCartBean() {
  | cart = new HashMapString, Integer();
  | }
  | 
  | public void buy(String product, int quantity) {
  | if (cart.containsKey(product)) {
  | int currq = cart.get(product);
  | currq += quantity;
  | cart.put(product, currq);
  | } else {
  | cart.put(product, quantity);
  | }
  | }
  | 
  | public HashMapString, Integer getCartContents() {
  | return cart;
  | }
  | }
  | 

Client:

  | public class Client {
  | public static void main(String[] args) throws Exception {
  | System.setSecurityManager(new RMISecurityManager());
  | 
  | InitialContext ctx = new InitialContext();
  | ctx.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  | ctx.addToEnvironment(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  | ctx.addToEnvironment(Context.PROVIDER_URL, jnp://localhost:1099);
  | 
  | Calculator calculator = (Calculator) 
ctx.lookup(MyApplication/CalculatorBean/remote);
  | 
  | System.out.println(1 + 1 =  + calculator.add(1, 1));
  | System.out.println(1 - 1 =  + calculator.subtract(1, 1));
  | }
  | }
  | 
  | public class Client {
  | public static void main(String[] args) throws Exception {
  | System.setSecurityManager(new RMISecurityManager());
  | 
  | InitialContext ctx = new InitialContext();
  | ctx.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  | ctx.addToEnvironment(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  | ctx.addToEnvironment(Context.PROVIDER_URL, jnp://localhost:1099);
  | 
  | ShoppingCart cart = (ShoppingCart) 
ctx.lookup(MyApplication/ShoppingCartBean/remote);
  | }
  | }
  | 

Policy:

  | grant {
  | permission java.security.AllPermission;
  | };
  | 

JBoss LOG:

  | [...]
  | 16:34:50,404 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=ShoppingCartBean,service=EJB3
 with dependencies:
  | 16:34:50,419 INFO  [EJBContainer] STARTED EJB: 
org.jboss.tutorial.stateful.bean.ShoppingCartBean ejbName: ShoppingCartBean
  | 16:34:50,466 INFO  [SimpleStatefulCache] Initializing SimpleStatefulCache 
with maxSize: 10 timeout: 300 for 
jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=ShoppingCartBean,service=EJB3
  | 16:34:50,466 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:ear=MyApplication.ear,jar=MyEjb.jar,name=CalculatorBean,service=EJB3 
with dependencies:
  | 16:34:50,466 INFO  [EJBContainer] STARTED EJB: 
org.jboss.tutorial.stateless.bean.CalculatorBean ejbName: CalculatorBean
  | [...]
  | 

Command:

  | java \
  | -Djava.security.policy=java.policy \
  | -classpath jbossall-client.jar;jboss-aop-jdk50-client.jar \
  | org.jboss.tutorial.stateless.client.Client
  | 
  | 1 + 1 = 2
  | 1 - 1 = 0
  | 
  | java \
  | -Djava.security.policy=java.policy \
  | -classpath jbossall-client.jar;jboss-aop-jdk50-client.jar \
  | org.jboss.tutorial.stateful.client.Client
  | 
  | Exception in thread main java.lang.ClassCastException: 
javax.naming.Reference
  | at org.jboss.tutorial.stateful.client.Client.main(Client.java:20)
  | 

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

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


[jboss-user] [JBoss jBPM] - Re: automatically completing tasks

2007-01-16 Thread dpatri
Thanks. I guess that's why I couldn't find any documentation on it. I will use 
ActionHandlers

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

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


[jboss-user] [JBoss Seam] - Re: NullPointerException in D2DViewHandler.calculateRenderKi

2007-01-16 Thread JessicaSant
I posted the problem on the ICEfaces forum here: 
http://www.icefaces.org/JForum/posts/list/3410.page

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

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


[jboss-user] [JBoss Seam] - Re: Conversation problem

2007-01-16 Thread yoav200
How can i force destraction of a bean?

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

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


  1   2   3   >