[jboss-user] [Installation, Configuration Deployment] - Re: Setting up an Interceptor on jBoss

2006-11-29 Thread kaobe
Hi Hans-Martin, 

maybe I'm not understanding your problem correctly, but here is what I would 
do: 
1. You have a jsp with a form that has an action that points to a servlet. 
2. In this servlet you are handling the request. You could have one servlet for 
each button or one servlet for all and then decide inside the servlet which 
button was the source of the click. In the servlet you call an EJB (Session 
Bean) with a method like buttonPressed(ButtonDescription description). 
3. This EJB calls a Message Driven Bean (the JMS component) that does the 
asynchronous communication. This is where I don't understand the task, because 
this action is simple and fast, so why does it have to be JMS and asynchronous?
4. The MDB calls an EJB that saves the data in the database. 

The reason for the EJB - MDB - EJB is, that an MDB should be called from the 
business logic and should call business logic. Its only reason to exist is that 
is lets the first EJB return at once and not block the client. 

Another possibility is that your professor meant the Interceptor Chain of 
JBoss. Then you would have to implement a class that implements Interceptor (a 
JBoss class, you should look in the docu). This class does the save of the 
button click and is put in the interceptor chain of an EJB in 
server//conf/standardjboss.xml. But this makes no sense because the interceptor 
can not decide which button has been pressed and it is executed at every 
EJB-invocation, where the EJB has this invoker-proxy-binding. 

If I understood you wrong, you would have to clarify this a bit for me. 

Greetings, 

Peter

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

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


[jboss-user] [Microcontainer] - Re: Create Session Factory

2006-11-29 Thread vickyk
I don?t know what hibernate session factory does but you can have a POJO which 
encapsulates the functionality of creating the session factory . This POJO 
needs to defined in the jboss-beans.xml file and deployed in the kernel, this 
is done by bootstrapping. 
You got to refer to this link  to know how to use the POJO which are deployed 
in the kernel 
http://docs.jboss.org/nightly/microkernel/docs/gettingstarted/en/html/

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down

2006-11-29 Thread bcosnefroy
Hi,

Thanks Dimitris for your answer.
I've search for the option but I can't find it.

As you told me, in the org.jboss.console.twiddle.Twiddle.java, I can see:
 
Properties props = new Properties(System.getProperties());
props.put(Context.PROVIDER_URL, serverURL);
ctx = new InitialContext(props);

So It seems that I can set a system Property for the InitialContext.

I've searched for an option to disable multicast in javax.naming.InitialContext 
but I was not able to find it.

Does anyone know which property I have to set?


Thanks,
Bruno Cosnefroy

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

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


[jboss-user] [Clustering/JBoss] - JMS clustering and the backing Database

2006-11-29 Thread meme
Hi there,

I've got an System with two servers on each of them I've got a JBoss and a 
postgresql database. The both Jboss-servers are clustered.
The postgres-databases are replicated by c-jdbc. 

Now we need also jms (and of course clustered). As described in the 
documentation I've changed the default-datasource from hsqldb to the 
postgres-database. But can I replicate them also with c-jdbc? 
Which node writes to the database if the node receive an message? 
Are both writing to their own database? Or is it possible to replicate them? 

The documentation wasn't very helpfully on this issue.

Thanks for your help.

Marc

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

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


[jboss-user] [JBoss Seam] - Seam promote bad design?

2006-11-29 Thread guanwh
I know it is a small problem, but when i go through the seam document (all 
documents,articles in the internet), I found all the action code actually has 
mixed responsibility: page navigation and business logic. See the following 
code from book demo:
@Stateless  
 (1)
@Name(register)
public class RegisterAction implements Register
{

   @In  
 (2)
   private User user;
   
   @PersistenceContext  
 (3)
   private EntityManager em;
   
   @Logger  
 (4)
   private Log log;
   
   public String register() 
 (5)
   {
  List existing = em.createQuery(select username from User where 
username=:username)
 .setParameter(username, user.getUsername())
 .getResultList();
 
  if (existing.size()==0)
  {
 em.persist(user);
 log.info(Registered new user #{user.username});  
 (6)
 return /registered.jsp;  
 (7)
  }
  else
  {
 FacesMessages.instance().add(User #{user.username} already exists);  
 (8)
 return null;
  }
   }

}

the register function actually has dual resonsibility which broke a fundametal 
OO design principle:Single-Resonsibility-Principle. and all the generated seam 
code is same.

Would it be better that an official tutorial providing better sample code?

No offense. I do like SEAM.

Thanks

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

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


[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo

2006-11-29 Thread maeste
I didn' want to start a flame. In fact I didn't understand you refer to client. 
It seems to have trouble, we don't use it except in some little use case. We 
works mainly on the server side.

IMHO opinion jboss still the best AS on the market. And I mean the best one, 
not the best open source.
I started to use jboss since 2.0 (first production environment 2.4.1) and I 
read forums and ML since the beginning. I agree with you, a lot of things 
changed, community is changed (more noise) and jboss' staff become more and 
more busy. 

Before someone other of the staff will tell you: The only sure way to get 
immediately feed back is the professional support. The community support is not 
so responsive, and mainly intend for guys wearing engineer white coat. :)

This is just my humble opinion, my impression and I'm just a user like 
you...really passionated end user.

Next days we have to implement ws clients and I'll keep you post of our result 
or problem. Well the goal of project is 2nd quarter 07 and I don't exclude to 
use jbossws 2.0CR


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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Automatically remove log-files

2006-11-29 Thread Oyabun
Hi,

I don't think JBoss has a feature for that. Instead you can use a 
RollingFileAppender like this:

  |appender name=LOGFILE 
class=org.jboss.logging.appender.RollingFileAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name=File value=D:/logs/jboss-EJB.log/
  |  param name=Append value=true/
  |  param name=MaxFileSize value=1KB/
  |  param name=MaxBackupIndex value=100/
  |  param name=Threshold value=DEBUG/
  | 

You need to figure out how much log output your server produces in a month.

Regards,
Alex

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

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


[jboss-user] [JBoss jBPM] - Re: Proposal of improvement or problem sollution kindly requ

2006-11-29 Thread lzdobylak
No! 
I'm saying that there is bug in implementation of end() method.
There is missing line that I wrote above in src.
And if you want to get transition name inside Event action, you cannot, cause 
it's not set.

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

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


[jboss-user] [Beginners Corner] - logging in .sar files help...

2006-11-29 Thread riji
Hi All,

I have a .sar file where the requirement is such that i need to write the logs 
at two places. I dont have log4j.jar in my .sar file. All I have is log4j.xml 
(configuration file) just in root dir. (.sar/). The .sar file contains WebInf 
dir and also metaINF dir.  I have include the part of log4j.xml file. Could 
anyone please help me in this regard. I have a log4j.xml at container level, 
that will take care of logging in centralised location. First appender will 
take care of centralized logging. And the second appender, locally. But i am 
not able to write it to both the locations. please let me know, if i am making 
any mistake

xml version=1.0 encoding=UTF-8
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false

   appender name=SunAm class=com.systemmanagement
  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
   /appender


   appender name=test1 class=org.apache.log4j.RollingFileAppender   param 
name=Threshold value=INFO /
   param name=File value=/logs/test.alog/
  layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%d %-5p[App1] (%F:%L) [%c{1}] %m 
%n /
  layout
   appender

   logger name=com.nortel.systemmanagement additivity=false 
  level value=INFO /
  appender-ref ref=test1/
  appender-ref ref=SunAm/
   
 
   
/log4j:configuration


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

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


[jboss-user] [JBoss jBPM] - configurating jbpm to run on tomcat

2006-11-29 Thread OBeyerbach
I'm new to jbpm and I want to configure jbpm to run on tomcat.
Can someone help me to that?
Thanks

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

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


[jboss-user] [JBoss Seam] - Seam 1.1 Tomahawk Datatable

2006-11-29 Thread Newlukai
Hi,

I'm trying to migrate to Seam 1.1 and having some problems. I hope that 
somebody can help.

On several pages in my application I make use of the 
DataModelWithTomahawkDataTable workaround mentioned on the wiki 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=DataModelWithTomahawkDataTable).
Since I use Seam 1.1 this workaround doesn't work anymore. Or I made a mistake.

The workaround proposes to annotate a method as @Factory(xyz) for a member 
and to annotate the corresponding getter with @DataModel. So when I use xyz 
on a page there are two methods related to the attribute. In the past the 
@DataModel was invoked, but now it seems that the @Factory is invoked. That's 
fatal since the @Factory returns String (in the wiki it returns void) so all 
the subsequent calls to the var of the dataTable are invoked on the String.

That's one problem. The other problem also has to do with this workaround and I 
hope it will disappear when the first problem is fixed.
There has to be something wrong with the column member which is introduced to 
make a dataTable sortable, but I don't know what's wrong with it at all. And 
there's only a stack-trace which doesn't tell me anything useful. Perhaps 
somebody else knows what's the problem:

16:44:25,500 ERROR [ExceptionInterceptor] redirecting to debug page
  | javax.ejb.EJBException: java.lang.IllegalStateException: No page context 
active
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  | at $Proxy220.setColumn(Unknown Source)
  | at 
com.idsscheer.ares.sessions.interfaces.TestactionValidator$$FastClassByCGLIB$$18d04061.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
  | at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
  | at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
  | at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  

[jboss-user] [Installation, Configuration Deployment] - Re: JBoss Start Time

2006-11-29 Thread Oyabun
Some tips here:

http://wiki.jboss.org/wiki/Wiki.jsp?page=DeployTipsAndBuildSampleScripts
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment
http://wiki.jboss.org/wiki/Wiki.jsp?page=RedeployAnApplicationWhenChangeAFileInAnExplodedDeploymentDirectory

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Large number of files in the WAR directory

2006-11-29 Thread mwilkowski
Hello,
thank you for response, however it will not help. I made some investigation. 
DeploymentScanner scans for file that should be deployed, i.e. my WAR 
directory. However, when it decides to deploy the WAR directory it calls so 
called MainDeployer. The deployer then calls TomcatDeployer which is actually 
responsible for deploying WAR.

What I need is to configure TomcatDeployer to make it skip the selected 
directory. Is it possible? I haven't traced TomcatDeployer source file yet.

Regards
Michal


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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 Tomahawk Datatable

2006-11-29 Thread sherkan777
Could U show some code?

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

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


[jboss-user] [JBoss Seam] - Re: si:selectItems Value is not a valid option.

2006-11-29 Thread petemuir
fonseca,

No, id equality is not an absolute requirement.  

Lets say you have a nationality dropdown; we'll call the objects looked up for 
the dropdown v1, and the the objects looked up by the entity converter v2.

In the dropdown you select British as your nationality (which is Britishv1); 
the EntityConverter does a lookup based on id and retrieves a new copy of the 
British object (Britishv2).

You need to make sure that Britishv1.equals(Britishv2) and must assume that 
they are looked up in different persistence contexts.

What this boils down to as a general rule is that you must compare on some 
unique property.

I'll take a fresh look at lifting this requirement.

Jason,

is the id a primitive or an object? If its an object remember (object1 == 
object2) != (object1.equals(object2)

The Validation error says 'value is not a valid option' is given by myfaces if 
it cannot find the selected object in the original list, so yes, by this point 
the entity converter has looked up the correct objects, it's just they aren't 
equal.

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

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


[jboss-user] [JBoss Seam] - Re: Seam promote bad design?

2006-11-29 Thread [EMAIL PROTECTED]
To my opinion this is a pretty standard way of using JSF, so it's quite logical 
to map the same examples to Seam. 
I do agree that it's not the best seperation of concerns, but on the other hand 
it works pretty well like this. 
Specially for smaller applications I see no good reasons to do differently.

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

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


[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle

2006-11-29 Thread rlhr
I ran in that problem few days ago while struggling with @NotNull validation.
I then wanted to use the requiredMessage attribute and could not manage to have 
it work

After looking at the code, I discovered that it is not implemented in 
myfaces-core-1.1.4!

I don't know if there are any implementation of javax.faces fully implements 
the standard and are compatible with seam.



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

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


[jboss-user] [EJB 3.0] - Setting up an Interceptor with jBoss

2006-11-29 Thread Haensel
Hello,
my  name is Hans-Martin. I am a student from Germany.

I have a very big problem. My Professor wants me to send events via JMS to a 
Complex Event Processing Platform.

First of all my professor gave me the simple job to create a jsp with 4 
Buttons. He wants to see ?something move??.

The task is following:
Every time a button is pushed it calls a Method on a Servlet/Bean. The 
Interceptor realizes this call and creates a simple ?Button_X-was-pushed? event 
(for example as a string) . This event will be sent via JMS to a CEP Platform 
which checks for patterns like ?Button_X was pushed? and updates a database 
which counts the pushes of a single Button.

This database can be called by a simple page/dashboard to show the number of 
times a button was pushed.
All that must be realized on jBoss.

It is a pretty simple example but we have absolutely NO idea of jBoss, how I 
can plug in the interceptors or send JMS messages.

What software do I need for this ? Do I need EJB3.0 for that task ?
Do you know a tutorial for the installation/implementation/configuration ?

I donĀ“t even know how what project I have to create in jBoss IDE for eclipse.

I created an jBossAOP Project. And it was pretty simple to connect an 
Interceptor to a method of another class. But I am not able to do this in a 
dynamic Web Project (for JSPs, Servlets and so on)


PLEASE HELP ME. I have just 1 week to do this :(


Haensel


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

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

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


[jboss-user] [Beginners Corner] - Re: NoClassDefFoundError WebCallbackHandler with NegotiateKe

2006-11-29 Thread AndiWausS
copy (not move) tomcat55-service.jar from deploy/jbossweb-tomcat to 
server/default/lib

perhaps someone has a better solution?

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: packaging ear with datasource and jdbc driver

2006-11-29 Thread Oyabun
I think .sar files are first to be deployed. In your case mysar.sar executes 
something before the rest of the files get to be deployed. That's why you get 
the Exception. Read more about the jboss-service.xml...



  | C:\jboss-4.0.2\server\default\conf\jboss-service.xml
  | ...
  |!-- 
 --
  |!-- Deployment Scanning 
 --
  |!-- 
 --
  | 
  |!-- An mbean for hot deployment/undeployment of archives.
  |--
  |mbean code=org.jboss.deployment.scanner.URLDeploymentScanner
  |   name=jboss.deployment:type=DeploymentScanner,flavor=URL
  | 
  |   !-- Uncomment (and comment/remove version below) to enable usage of 
the
  | DeploymentCache
  |   depends 
optional-attribute-name=Deployerjboss.deployment:type=DeploymentCache/depends
  |   --
  |   depends 
optional-attribute-name=Deployerjboss.system:service=MainDeployer/depends
  | 
  |   !-- The URLComparator can be used to specify a deployment ordering
  |for deployments found in a scanned directory.  The class 
specified
  |must be an implementation of java.util.Comparator, it must be 
able
  |to compare two URL objects, and it must have a no-arg 
constructor.
  |Two deployment comparators are shipped with JBoss:
  |  - org.jboss.deployment.DeploymentSorter
  |Sorts by file extension, as follows:
  |  sar, service.xml, rar, jar, war, wsr, ear, 
zip,
  |  *
  |  - org.jboss.deployment.scanner.PrefixDeploymentSorter
  |If the name portion of the url begins with 1 or more digits, 
those
  |digits are converted to an int (ignoring leading zeroes), and
  |files are deployed in that order.  Files that do not start 
with
  |any digits will be deployed first, and they will be sorted by
  |extension as above with DeploymentSorter.
  |   --
  |   attribute 
name=URLComparatororg.jboss.deployment.DeploymentSorter/attribute
  |   !--
  |   attribute 
name=URLComparatororg.jboss.deployment.scanner.PrefixDeploymentSorter/attribute
  |   --
  | 

My EAR file contains META-INF/application.xml which looks like this


  | application
  |   display-nameMy App/display-name
  |   module
  | ejbcore.jar/ejb
  |   /module
  |   module
  | ejbsession.jar/ejb
  |   /module
  |   module
  | connectorservices.sar/connector
  |   /module
  | /application
  | 


The services.sar archive is deployed last.

I had to configure the stuff below in my META-INF/jboss-service.xml in the 
services.sar file. I execute some methods right after my applications has been 
successfully deployed.


  | ?xml version=1.0 encoding=UTF-8?
  | server
  | 
  |   mbean code=myservices.MyServiceNumberOne
  |  name=:name=MyServiceNumberOne
  |   /mbean
  |   
  |   mbean code=org.jboss.varia.scheduler.Scheduler 
  |  name=:service=Scheduler,name=MyServiceNumberOne
  | attribute name=StartAtStartuptrue/attribute
  | attribute name=SchedulableMBean:name=MyServiceNumberOne/attribute
  | attribute name=SchedulableMBeanMethodcreate()/attribute
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod1/attribute
  | attribute name=InitialRepetitions1/attribute
  | dependsjboss.j2ee:module=session.jar,service=EjbModule/depends
  |/mbean
  |
  |   mbean code=myservices.MyServiceNumberTwo
  |  name=:name=MyServiceNumberTwo
  |   /mbean
  |   
  |   mbean code=org.jboss.varia.scheduler.Scheduler 
  |  name=:service=Scheduler,name=MyServiceNumberTwo
  | attribute name=StartAtStartuptrue/attribute
  | attribute name=SchedulableMBean:name=MyServiceNumberTwo/attribute
  | attribute name=SchedulableMBeanMethodcreate()/attribute
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod1/attribute
  | attribute name=InitialRepetitions1/attribute
  | dependsjboss.j2ee:module=session.jar,service=EjbModule/depends
  |/mbean
  |
  | /server
  | 
  | 

Regards,
Alex

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 Tomahawk Datatable

2006-11-29 Thread Newlukai
Sure. Here we go:

The session bean:
@Stateful
  | @Scope(ScopeType.SESSION)
  | @LoggedIn
  | @Name(searchTestaction)
  | public class SearchTestactionAction implements Serializable, 
SearchTestaction {
  | @PersistenceContext(unitName = aresDatabase)
  | private transient EntityManager em;
  | 
  | @In(required=false)
  | private Testaction testaction;
  | 
  | private ListTestaction foundTestactions;
  | @DataModelSelection
  | @Out(required=false, scope=ScopeType.SESSION)
  | private Testaction foundTestaction;
  | //@DataModelSelectionIndex workaround
  | private int foundTestactionIndex;
  | 
  | @In(required=false)
  | private Release selectedRelease;
  | 
  | private String sortColumn = id;
  | private boolean ascending = true;
  | 
  | @Factory(foundTestactions)
  | public String search() {
  | //omitted: generate the query
  | 
  | if(query.length() != 0) {
  | if(selectedRelease != null) {
  | addPrefix(query);
  | query.append(TACT_REL_ID=);
  | query.append(selectedRelease.getID());
  | }
  | foundTestactions = EMHelper.execQuery(em, from 
Testaction  + query.toString() +  order by TACT_ID asc);
  | Collections.sort(foundTestactions, new 
TestactionComparator(sortColumn, ascending));
  | }
  | 
  | return search;
  | }
  | 
  | @DataModel
  | public ListTestaction getFoundTestactions() {
  | return foundTestactions;
  | }

The page with a search form and a result list:
ui:define name=content
  | h1#{ares_messages.header_searchTestaction}/h1
  | h:form
  | div id=errorsh:messages layout=table //div
  | div class=buttonLine
  | h:outputText rendered=#{not empty 
searchTestaction.foundTestactions}
  |  value=#{ares_messages.label_search_displaySearchForm}
  |  onclick=switchVisibility('searchForm'); 
this.style.display='none'; styleClass=button
  |  style=margin-right: 30px; padding: 5px; cursor: pointer; /
  | h:commandButton action=#{searchTestaction.search} 
image=img/find.gif styleClass=graphical
  |  style=margin-left: 0px; margin-right: 15px; 
title=#{ares_messages.tooltip_searchTestaction} /
  | /div
  | 
  | div id=release
  | h:outputText value=#{ares_messages.filter_release}:  
/
  | h:selectOneMenu 
value=#{releaseSelector.selectedReleaseNumber}
  | f:selectItems 
value=#{releaseSelector.releaseItems} /
  | /h:selectOneMenu
  | /div
  | 
  | div id=searchForm style=display: #{empty 
searchTestaction.foundTestactions ? 'block' : 'none'};
  | 
  | 
  | 
  | 
  | t:dataTable var=testaction_var
  |  value=#{foundTestactions}
  |  id=foundTestactionsTable
  |  renderedIfEmpty=false
  |  
sortColumn=#{searchTestaction.sortColumn}
  |  
sortAscending=#{searchTestaction.ascending}
  |  preserveSort=true
  |  rows=20
  | f:facet name=header
  | h:outputText 
value=#{ares_messages.label_ResultCount}: #{foundTestactions.rowCount} /
  | /f:facet

This ocde adresses the first problem I mentioned. The second problem occurs 
here:

Bean:
@Stateful
  | @Scope(ScopeType.SESSION)
  | @LoggedIn
  | @Name(testactionValidator)
  | public class TestactionValidatorAction extends TestactionHandling 
implements Serializable,  TestactionValidator {
  | @In(required=false)
  | private Release selectedRelease;
  | 
  | @In(required=false)
  | private User selectedUser;
  | 
  | private Long lastSelectedReleaseID;
  | private String lastSelectedUserID;
  | 
  | @Factory(testactionsForValidator)
  | public void initTestactions() {
  | if(hasAFilterChanged() || shouldRefresh() || testactions == 
null) {
  | StringBuffer filter = new StringBuffer();
  | if(selectedRelease != null) {
  | filter.append( and TACT_REL_ID=);
  | filter.append(selectedRelease.getID());
  | }
  | testactions = EMHelper.execQuery(em.createQuery(
  | from Testaction where 
TACT_VALIDATOR_USR_ID=:validator and  +
  | TACT_BFV_ID= + 

[jboss-user] [JBoss Seam] - Re: Seam promote bad design?

2006-11-29 Thread petemuir
You can provide more separation by returning a logical outcome from the action 
method and mapping that to a view from a naviation rule in faces-config.xml.  
IMO this provides the necessary split between business logic and navigation.

I guess the Seam examples return view-ids directly as it makes the example more 
readable (one less place to look).

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

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


[jboss-user] [JBoss Seam] - Re: Error with SeamGen

2006-11-29 Thread stealth_nsk
Yes, found a lot of them, but this obe seems to be a root:

ObjectName: persistence.units:ear=seam_test.ear,unitName=seam_test
  |   State: FAILED
  |   Reason: org.hibernate.HibernateException: Wrong column type: fields, 
expected: bytea
  |   I Depend On:
  | jboss.jca:service=ManagedConnectionFactory,name=seam_testDatasource
  | 

Probably it's due to using postgresql. I'll do some checks, but looks like 
hibernate can't work with some postgres datatypes and seam_gen doesn't inform 
about it.

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

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


[jboss-user] [JBoss Seam] - Seam + ScopeType.EVENT

2006-11-29 Thread sherkan777
Hi,
Can anyone tell me in with cases, U use Event scope, and demonstrate me example.

Is this even useful?

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

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


[jboss-user] [JBoss jBPM] - Action ; Token.signal( ... ) ; Exception: locked tokens

2006-11-29 Thread JimKnopf
Hi again,
I am calling an action and in this action i am fire a Rule from JRules. Based 
on the result of this rule i want to use a transition ( token.signal( xxx ) ).
But when i do this, i get an Exception. Is it not possible to use use 
token.signal in an action? And then, how should i realise actions in which i 
want to move to a next token? Is it only Possible with DecicionHandlers?

The Exception:
anonymous wrote : 
  | org.jbpm.JbpmException: can't continue execution on locked tokens.  
signalling the same token that executes an action is not allowed
  | at org.jbpm.graph.exe.Token.signal(Token.java:164)
  | at org.jbpm.graph.exe.Token.signal(Token.java:137)
  | 


  |   /decision
  |decision name=SGA
  |   event type=node-enter
  | action name=checkSGA 
class=actions.DefaultRuleAction
  | ruleFileetr2.drl/ruleFile
  | transitionNamet_sga a/transitionName
  | transitionName_Falset_sga 
c/transitionName_False
  | /action
  |   /event
  |   transition name=t_sga a to=SGA A/transition
  |   transition name=t_sga b to=SGA B/transition
  |   transition name=t_sga c to=SGA C/transition
  |/decision
  |state name=SGA A
  | 

Action:

  | public class DefaultRuleAction extends RuleAction {
  | private static final long serialVersionUID = 8459834862286126414L;
  | 
  | //Name der Variablen die in der Action beruecksichtigt werden.
  | public List objectNames = null;
  | public String transitionName = null;
  | public String transitionName_False = null;
  | 
  | public void execute( ExecutionContext executionContext) throws 
Exception {  
  | // TODO Auto-generated method stub
  | System.err.println(My Timer-Rule-Action!);
  | 
  | if (this.ruleFile == null) {
  | System.err.println(Es wurde kein Rule-File 
angegeben.);
  | // TODO String aus einer Property laden.
  | return;
  | }
  | 
  | // load up the RuleBase
  | WorkingMemory workingMemory = null;
  | try {
  | RuleBase ruleBase = readRule(this.ruleFile);
  | 
  | workingMemory = this.generateWorkingMemory( ruleBase );
  | 
  | this.assertObjectsIn( workingMemory, executionContext );
  | workingMemory.fireAllRules();
  | 
  | if( RuleAction.getResultFrom( workingMemory ) == true ){
  | if(this.transitionName != null){
  | executionContext.getToken().signal( 
transitionName );
  | }
  | }else{
  | if(this.transitionName_False != null){
  | executionContext.getToken().signal( 
transitionName_False );
  | }
  | }
  | 
  | } catch (FileNotFoundException fnfe) {
  | System.err.println(Es wurde ein falsches Rule-File 
angegeben.);
  | fnfe.printStackTrace();
  | //   TODO String aus einer Property laden.
  | } catch (MissingRuleResultException mrre){
  | System.err.println(Es wurde kein RuleResult-Object im 
WorkingMemory der Regel gefunden.);
  | mrre.printStackTrace();
  | //  TODO String aus einer Property laden.
  | } catch (Exception e){
  | System.err.println(Rule-Base konnte nicht angelegt 
werden.);
  | e.printStackTrace();
  | //  TODO String aus einer Property laden.
  | } finally{
  | if(workingMemory != null)
  | workingMemory.dispose();
  | }
  | 
  | //ArcaViaController.getInstance().cancelTimer( 
executionContext.getTimer() );
  | 
  | }
  | 
  | 


  | public abstract class RuleAction implements ActionHandler{
  | /* Name der Variablen des Workflows welche in das WorkingMemory
  |der Regel eingepflegt werden sollen.*/
  | protected List objectNames = null;
  | 
  | protected String ruleFile = null;
  | private RuleResult ruleResult = new RuleResult();
  | 
  | /**
  |  * Please note that this is the low level rule assembly API.
  |  * @throws Exception 
  |  */
  | protected static RuleBase readRule(String ruleFileLocation) throws 
Exception{
  | //  ruleFileLocation = src +
  | //  System.getProperty(file.separator) +
  | //  rules +
  | //  

[jboss-user] [EJB/JBoss] - access denied security policy write

2006-11-29 Thread minixman
All i have a strange problem with my RMI client, i am trying to connect to the 
jboss which has been started in my VM by eclipse, when i try and access it i 
get the following error.


java.security.AccessControlException: access denied 
(java.util.PropertyPermission java.security.poli
cy write)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)




I have setup the security manager


   System.setProperty(java.security.policy, client.policy);
   if (System.getSecurityManager() == null)
   System.setSecurityManager(new RMISecurityManager());
   Properties env = new Properties();
//  Definir las propiededes y ubicacion de busqueda de Nombres JNDI.
   env.setProperty(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
   env.setProperty(java.naming.provider.url, localhost:1099);
   env.setProperty(java.naming.factory.url.pkgs, org.jboss.naming);
  InitialContext ic = new InitialContext(env);




And i have created the client policy file

grant {
permission java.security.AllPermission;
};

And in the eclipse run as option i put in VM args

-Djava.security.manager -Djava.security.policy=client.policy 

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

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


[jboss-user] [Beginners Corner] - Re: EJB entity with static final field

2006-11-29 Thread buggsbunny101
Yes this is exactly how I want too use it.
Thanks.

Now, another question:
Because I will need this constant outsite the EJB and because the bean 
definition is not availlable outside, How can I define this constant?

I use XDoclet to generate my classes and interfaces. Is there a way to tell it 
to export this static final field in the generated class? (interfaces and 
dataClasses)? Should I define some function giving me the constant value? 
(Bha! Sound really dirty)

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

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


[jboss-user] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain UnifiedBeanMetaD

2006-11-29 Thread PhFery
Hi!

I think you should replace:

webservices ejb-link=ResponderBean append=true/

with following code:

webservices ejb-link=Responder append=true/

I think you must use the ejb-name to locate your bean

;-)

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

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


[jboss-user] [JBoss Seam] - Re: Timer issue just broke my site after a week of no issues

2006-11-29 Thread [EMAIL PROTECTED]
You probably need to ask about this in the EJB3 forum. But you at least need to 
show us the stacktrace of the NPE.

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

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


[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT

2006-11-29 Thread [EMAIL PROTECTED]
This is comparable with a request scope. For exampe a page with a backing bean 
that can submit data, the backing bean can give feedback, but the data is not 
saved after that.

Example:


  | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:c=http://java.sun.com/jstl/core;
  | body
  | ui:define name=body
  | h:form id=frm_Hello
  | Please fill in your name: h:inputText id=txt_Name
  | value=#{hello.name} /
  | h:commandButton id=btn_sayHello value=Say Hello!
  | action=#{hello.sayHello} /
  | br/
  | h:outputText id=greeting value=Hello #{hello.name}
  | rendered=#{not empty hello.name} /
  | /h:form
  | /ui:define
  | /body
  | /html
  | 


  | package seamdemo.hello.backingbeans;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | 
  | @Stateful
  | @Scope(ScopeType.EVENT)
  | @Name(hello)
  | public class HelloBean implements Hello {
  | private String name;
  | 
  | public String getName() {
  | return name;
  | }
  | 
  | public String sayHello() {
  | return ;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | @Remove @Destroy
  | public void destory() {
  | }
  | }
  | 

After showing the entered name, the name is not saved. So if you reload the 
page, the textfield is empty again.

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

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


[jboss-user] [JBoss Seam] - Re: Seam promote bad design?

2006-11-29 Thread evdelst
I use pageflows for the navigation, the beans don't contain any navigation and 
I call the action methods using expressions in the flow. 
In the views, the buttons return the transitions to use.
It is a pretty clean seperation I think.

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

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


[jboss-user] [JBoss Seam] - Seam throws exception while working with DataModel

2006-11-29 Thread lamerbot
Hello.
I'm new to seam and i want to integrate seam capability with AndroMDA product.
I use AndroMDA for generating EJB3 and DAOs.
I made a simple application that allows users login and see userlist.

There are some strangeness:
After user login he able to see userslist. There are an link to CreateNewUser 
from that page. When user created it's rediercts toViewAllUsers. All work's 
fine, but:
When i add capability to delete User (delete button in userlist according to 
seam examples) i got an error:

  | 12:07:22,138 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _id0:_id2_4:_id13
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:7
  | 4)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at javax.faces.component.UIData.broadcast(UIData.java:338)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
  | ava:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
  | ava:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
  | va:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
  | p11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.faces.el.EvaluationException: Exception while invoking 
expression #{userService.del
  | eteUser}
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:6
  | 3)
  | ... 25 more
  | Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: 
could not set field value: us
  | erService.userDataModel
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor
  | .java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.jav
  | a:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 

[jboss-user] [Installation, Configuration Deployment] - Re: deployment order of modules within an EAR

2006-11-29 Thread Oyabun
Read more about the jboss-service.xml


  | C:\jboss-4.0.2\server\default\conf\jboss-service.xml
  | ...
  |!-- 
 --
  |!-- Deployment Scanning 
 --
  |!-- 
 --
  | 
  |!-- An mbean for hot deployment/undeployment of archives.
  |--
  |mbean code=org.jboss.deployment.scanner.URLDeploymentScanner
  |   name=jboss.deployment:type=DeploymentScanner,flavor=URL
  | 
  |   !-- Uncomment (and comment/remove version below) to enable usage of 
the
  | DeploymentCache
  |   depends 
optional-attribute-name=Deployerjboss.deployment:type=DeploymentCache/depends
  |   --
  |   depends 
optional-attribute-name=Deployerjboss.system:service=MainDeployer/depends
  | 
  |   !-- The URLComparator can be used to specify a deployment ordering
  |for deployments found in a scanned directory.  The class 
specified
  |must be an implementation of java.util.Comparator, it must be 
able
  |to compare two URL objects, and it must have a no-arg 
constructor.
  |Two deployment comparators are shipped with JBoss:
  |  - org.jboss.deployment.DeploymentSorter
  |Sorts by file extension, as follows:
  |  sar, service.xml, rar, jar, war, wsr, ear, 
zip,
  |  *
  |  - org.jboss.deployment.scanner.PrefixDeploymentSorter
  |If the name portion of the url begins with 1 or more digits, 
those
  |digits are converted to an int (ignoring leading zeroes), and
  |files are deployed in that order.  Files that do not start 
with
  |any digits will be deployed first, and they will be sorted by
  |extension as above with DeploymentSorter.
  |   --
  |   attribute 
name=URLComparatororg.jboss.deployment.DeploymentSorter/attribute
  |   !--
  |   attribute 
name=URLComparatororg.jboss.deployment.scanner.PrefixDeploymentSorter/attribute
  |   --
  | 

Regards,
Alex

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

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


[jboss-user] [JBossCache] - Jboss Cache not working in weblogic 9.2

2006-11-29 Thread Kavipriya
In the cluster environment. I have two servers. When i start the first server i 
dont have any problems but when i start the second server it is throwing the 
following exception in the back end.

org.jboss.cache.CacheException: Initial state transfer failed: Channel.getState(
) returned false
at org.jboss.cache.TreeCache.fetchStateOnStartup(TreeCache.java:2749)
at org.jboss.cache.TreeCache.startService(TreeCache.java:1330)
at com.taxware.twe.common.storage.impl.MessagingServiceImpl.startService
(MessagingServiceImpl.java:117)
at com.taxware.twe.common.storage.StartupServlet.startInit(StartupServle
t.java:185)
at com.taxware.twe.common.storage.StartupServlet.init(StartupServlet.jav
a:113)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
ubSecurityHelper.java:276)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
tyHelper.java:68)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
ifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHel
per.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:504)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:1698)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(
WebAppServletContext.java:1675)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:1595)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon
text.java:2734)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav
a:892)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod
uleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module
ListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta
teDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat
eDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod
ulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja
va:641)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
java:229)
at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
entStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap
pContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicD
eployment.java:181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromSer
verLifecycle(BasicDeployment.java:352)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(De
ploymentAdapter.java:52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(Deploy
mentAdapter.java:186)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(App
Transition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionA
pps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(Co
nfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Conf
iguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(De
ploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(Dep
loymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
com.taxware.twe.common.exception.TaxwareSystemException: General Application Fai
lure.Please contact System Administrator.
at com.taxware.twe.common.storage.impl.MessagingServiceImpl.startService

[jboss-user] [Installation, Configuration Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help

2006-11-29 Thread jaikiran
anonymous wrote : java.lang.ClassNotFoundException: No ClassLoaders found for: 
blog.example.services.BlogExampleService

The blog.example.services.BlogExampleService is not present in the classpath. 
Place that class in the application's classpath.

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

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


[jboss-user] [JBoss Portal] - Problem with HelloWorld IPC sample

2006-11-29 Thread sirishy
Hi

I'm using Jboss portal 2.4.0 bundled version. 
Not configured any database yet.
Downloaded the HelloWorld IPC sample from portalswap.

Using ant I made a build and deployed the helloworldipcportlet.sar, restarted 
the server, it shows the following exception:

--- MBeans waiting for other MBeans ---
ObjectName: portal:service=ListenerService,type=ipc_listener
  State: CONFIGURED
  I Depend On:
portal:service=ListenerRegistry

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: portal:service=ListenerRegistry
  State: NOTYETINSTALLED
  Depends On Me:
portal:service=ListenerService,type=ipc_listener


15:18:49,868 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
15:18:50,150 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
15:18:50,197 INFO  [JkMain] Jk running ID=0 time=0/172  config=null
15:18:50,228 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: 
CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:1s:721ms
15:19:47,274 ERROR [PortalServlet] Cannot get portal server
org.jboss.mx.util.MBeanProxyCreationException: Object name 
portal:service=Server not found: javax.management.InstanceNotFoundException:
 portal:service=Server is not registered.
at 
org.jboss.mx.util.JMXInvocationHandler.(JMXInvocationHandler.java:163)
at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78)
at 
org.jboss.portal.server.servlet.PortalServlet.getServer(PortalServlet.java:118)
at 
org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:272)
at 
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
15:19:47,289 ERROR [[PortalServletWithPathMapping]] Servlet.service() for 
servlet PortalServletWithPathMapping threw exception
java.lang.IllegalStateException: Cannot get portal server
at 
org.jboss.portal.server.servlet.PortalServlet.getServer(PortalServlet.java:123)
at 
org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:272)
at 
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 

[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo

2006-11-29 Thread bocio
maeste wrote : 
  | IMHO opinion jboss still the best AS on the market. And I mean the best 
one, not the best open source.
  | I started to use jboss since 2.0 (first production environment 2.4.1) and I 
read forums and ML since the beginning. I agree with you, a lot of things 
changed, community is changed (more noise) and jboss' staff become more and 
more busy.
  | 

I 100% agree

maeste wrote : 
  | Before someone other of the staff will tell you: The only sure way to get 
immediately feed back is the professional support. The community support is not 
so responsive, and mainly intend for guys wearing engineer white coat. :)
  | 

I know but here I definitively go OT ;-) Inside my company we have so many 
websphere installations that we pay ibm just flat-rate. I could install how 
much websphere as I would. So price is not a problem. Even so up to now my 
group was able to mantain a little entrenched JBoss Island. Now would be 
impossible for me to ask for a professional support while we have two ibm guys 
free of charge all the year inside the company. So my island must be self 
contained :-)


maeste wrote : 
  | Next days we have to implement ws clients and I'll keep you post of our 
result or problem. Well the goal of project is 2nd quarter 07 and I don't 
exclude to use jbossws 2.0CR
  | 

I'll look forward to hear about your tests

Bye


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

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


[jboss-user] [Installation, Configuration Deployment] - Mbeans Releated Problem..new to jboss.. plz help

2006-11-29 Thread samfromindia
Hi, 
   I am new to jboss.please help me for the following problem.
In my application i have a .ini file where we have some configuration values 
which must be set at the time of deployment of the build.
What i am trying to do is creating a MBEAN through which we can change the 
values through jmx console. and my application will read all the values from 
this mbean.
i have created one interface and one class which implements the interface.
when i try to compile the build it says build suceesful and i also can see the 
sar file in the serverdefaultdeploy folder.
but imedidately after i am getting this exception.


13:05:11,758 ERROR [MainDeployer] could not create deployment: 
file:/C:/jboss-4.0.1/server/default/deploy/blog_example.sar
org.jboss.deployment.DeploymentException: No ClassLoaders found for: 
blog.example.services.BlogExampleService; - nested throwable: 
(java.lang.ClassNotFoundException: No ClassLoaders found for: 
blog.example.services.BlogExampleService)
at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143)
at 
org.jboss.system.ServiceController.install(ServiceController.java:200)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: 
blog.example.services.BlogExampleService
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at 
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1183)
at 
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:269)
at 
org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:327)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:125)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
... 33 more

plz help me what to do now.
Thanks in advance!!

sam

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

Reply to the post : 

[jboss-user] [Installation, Configuration Deployment] - Re: deployment order of modules within an EAR

2006-11-29 Thread jaikiran
PeterJ is right, the ordering within an ear was supposed to be based on the 
order in which the modules have been mentioned in the application.xml. However, 
looks like this was broken sometime back as per this issue:

http://jira.jboss.com/jira/browse/JBAS-2904

Related discussion:

http://www.jboss.com/index.html?module=bbop=viewtopict=78376



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

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


[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT

2006-11-29 Thread sherkan777
[EMAIL PROTECTED] wrote : This is comparable with a request scope. For exampe 
a page with a backing bean that can submit data, the backing bean can give 
feedback, but the data is not saved after that.
  | 
  | After showing the entered name, the name is not saved. So if you reload the 
page, the textfield is empty again.

Soo what's the different betwen Event  Page scope?

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

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


[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle

2006-11-29 Thread yj4jboss
So is there any workaround for this ? I guess the Validator Message also would 
not work ??

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

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


[jboss-user] [JBoss Seam] - Using Jboss Seam and Struts

2006-11-29 Thread zmustansar
I am interested in running two different flavors side by side

1. I am currently using struts
2. wanna switch to Jboss Seam

but problem is whatever I have already coded in struts I would like to use it 
in Seam if possible and similarly if I design something that is common to both 
then should be useable by both frameworks. 

IS it possible? If yes then please advise

because, I know that seam uses annotations and it is only supported by JDK 1.5 

but my Struts application is using JDK1.4 and I cannot afford to make that 
update or upgrade to Jdk1.5



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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages get stuck in queue

2006-11-29 Thread rhino247365
Did you check the logs to determine if the MDB was still active. In extreme 
cases, like deadlock on database or huge load due to redelivery, it can freeze 
and fallover..?

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

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


[jboss-user] [JBoss Seam] - Re: si:selectItems Value is not a valid option.

2006-11-29 Thread evdelst
check for null in the equals()
I use an older version of the SelectItem.
When you have the 'noSelectionLabel' I think the equals is called with a null 
as well (always return false when the parameter to equals is null

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

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


[jboss-user] [Microcontainer] - Re: Create Session Factory

2006-11-29 Thread vickyk
Yes it is basically the POJO you will have to create. There are the changes 
that you can configure most of the java class using the MC, these java classes 
should be designed as POJO. 

Please refer to the samples at the link which I have passed to you.

I think you can have a POJO which is just a wrapper over the existing Hibernate 
related class, it would yield more maintainability and control to you  .
Can you tell me what exactly are you doing with MC , are you just playing with 
it or you are incorporating this in a real application?


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

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


[jboss-user] [JBoss Seam] - Re: Seam + ScopeType.EVENT

2006-11-29 Thread [EMAIL PROTECTED]
That's still a little unclear to me too. One big difference is that @Page can't 
be use in session beans.


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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: What versions for Eclipse, JBoss Eclipse IDE, JBoss AS,

2006-11-29 Thread akivajunior
I Have exactly the same problem.
have you resolved it?

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help

2006-11-29 Thread samfromindia
I copy the sar file in the deploy folder. where do i need to specify the class 
in the classpath.
Please help me in this regard.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages get stuck in queue

2006-11-29 Thread Byorn
Thanks for the reply.
JBoss runs in cluster mode as this issue exists in the production environment. 
We often have noticed that the jms queue is increasing and gets stuck, 
especially when there is a high load of traffic.
We use JMS to send emails to our customers. We use ftp server to store the 
attachements. When our queue is stuck, / or when the jms msgs have increaased 
we restart the ftp service.
When we restart the ftp service the queue gets cleared.

Do you suspect anything?
Please advise.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages get stuck in queue

2006-11-29 Thread VictoriaOnSand
The server.log looked fine. The last debug output from the relevant MDB was a 
message of an succesfully processed message. There wasn't any indication that 
anything went wrong.

Should I use special settings or log levels in order to get more information 
about the status of the MDB?

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

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


[jboss-user] [JBoss Seam] - Re: Seam Stateless Beans

2006-11-29 Thread fcorneli
I thought Seam was somehow managing that a single JSF lifecycle always got to 
see the same stateless bean instance. Apparently I'm using the wrong 
Maven2/Facelets port of the dvdstore to learn all about Seam... 
http://vyzivus.host.sk/site-files/dvdstore.zip

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

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


[jboss-user] [JBoss/Spring Integration] - Re: BeanCreationException on Jboss deploy but with Tomcat th

2006-11-29 Thread alesj
Not what JBoss/Spring integration is about:
 - http://java.sys-con.com/read/180386.htm

More of a Spring forum question.

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Mbeans Releated Problem..new to jboss.. plz help

2006-11-29 Thread samfromindia
ok i got the problem. 
Its working fine now.
thanks 
sam

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

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


[jboss-user] [JBoss/Spring Integration] - BeanCreationException on Jboss deploy but with Tomcat the de

2006-11-29 Thread sselda
I have changed an existing web application (version 2.4) based on:

- JBoss 3.2.6
- Spring  1.2.8
- Struts 1.2.9

Before the changes the web app starts correctly.
I have modified a Struts Action adding an attribute and relatives get/set (the 
attribute class already exists, and it is already defined in a Spring XML 
descriptor), and I have modified the Spring XML descriptor.

Now, the application deploy crashes with the exception:

anonymous wrote : 
  | org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name '/geneGenric/DettaglioRicerca' defined in ServletContext 
resource [/WEB-INF/xml/spring/gene-genric.xml]: Error setting property values; 
nested exception is org.springframework.beans.NotWritablePropertyException: 
Invalid property 'gruppiManager' of bean class 
[it.eldasoft.gene.web.struts.genric.DettaglioRicercaAction]: Bean property 
'gruppiManager' is not writable or has an invalid setter method: Does the 
parameter type of the setter match the return type of the getter?
  | org.springframework.beans.NotWritablePropertyException: Invalid property 
'gruppiManager' of bean class 
[it.eldasoft.gene.web.struts.genric.DettaglioRicercaAction]: Bean property 
'gruppiManager' is not writable or has an invalid setter method: Does the 
parameter type of the setter match the return type of the getter?
  | at 
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:670)
  | at 
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:572)
  | at 
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737)
  | at 
org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:764)
  | at 
org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:753)
  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1057)
  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
  | at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
  | at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
  | at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
  | at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
  | at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
  | at 
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
  | at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
  | at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
  | at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  | 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:324)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
  | 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:324)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at 

[jboss-user] [Messaging, JMS JBossMQ] - JBOSS JMS Messages QUEUE not getting cleared. ???

2006-11-29 Thread Byorn
We are using JBoss4.0.1 with Oracle as our JMS Provider.

JMS is Queue configured, to keep emails.

In our MDB, in the onMessage(), the ftp server is accessed to upload attachment 
and for sending emails.

When the JMS Queue table increases and gets stuck,  
we restart the ftp service.

When this is donet he jms queue tables reduces and all emails are sent.

Does anyone have any idea why this is happending???

simiar issues... : -  
http://www.jboss.com/index.html?module=bbop=viewtopict=67391
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989631#3989631



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

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


[jboss-user] [JBoss Seam] - Seam gen or seam framework problem?

2006-11-29 Thread [EMAIL PROTECTED]
I have two table with a parten child relation (FK).
Both the table have an autoincrement integer column as PK.

Seamgen generate two entity with a one to many bidirectional relation.

After I have inserted a new instance of Parent Entity and I try to insert the 
relative child I have an exception related to this inner exception


  | Caused by: org.jboss.seam.framework.EntityNotFoundException
  | at org.jboss.seam.framework.Home.handleNotFound(Home.java:95)
  | at org.jboss.seam.framework.EntityHome.find(EntityHome.java:66)
  | at org.jboss.seam.framework.Home.initInstance(Home.java:80)
  | at org.jboss.seam.framework.Home.getInstance(Home.java:68)
  | at org.jboss.seam.framework.Home$$FastClassByCGLIB$$76f3c0be.invoke
  | 


How we have to work with autogenerated id?

Thanks

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

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


[jboss-user] [Microcontainer] - Re: Create Session Factory

2006-11-29 Thread thejavafreak
vickyk wrote : Can you tell me what exactly are you doing with MC , are you 
just playing with it or you are incorporating this in a real application?
  | 
Currently I'm still playing with it. I got this idea from Spring, where Spring 
manage the session factory bean. If MC can do the same thing, I might 
incorporate MC in my application rather that Spring since the app server is 
using JBoss anyway.


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

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


[jboss-user] [JBoss Seam] - Re: Error with SeamGen

2006-11-29 Thread stealth_nsk
Yes, I was correct. The error is caused by Postgres arrays.

I think this isse needs to be fixed somehow. At least by skipping fields of 
non-standard types. Here is the generate class with array:

@Entity
  | @Table(name = tt, schema = public, uniqueConstraints = {})
  | public class Tt implements java.io.Serializable {
  | 
  | // Fields
  | 
  | private long id;
  | private String name;
  | private Serializable arr;
  | 
  | // Constructors
  | 
  | /** default constructor */
  | public Tt() {
  | }
  | 
  | /** minimal constructor */
  | public Tt(long id) {
  | this.id = id;
  | }
  | /** full constructor */
  | public Tt(long id, String name, Serializable arr) {
  | this.id = id;
  | this.name = name;
  | this.arr = arr;
  | }
  | 
  | // Property accessors
  | @Id
  | @Column(name = id, unique = true, nullable = false)
  | @NotNull
  | public long getId() {
  | return this.id;
  | }
  | 
  | public void setId(long id) {
  | this.id = id;
  | }
  | 
  | @Column(name = name)
  | public String getName() {
  | return this.name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | @Column(name = arr)
  | public Serializable getArr() {
  | return this.arr;
  | }
  | 
  | public void setArr(Serializable arr) {
  | this.arr = arr;
  | }
  | 
  | }
  | 

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

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


[jboss-user] [JBoss AOP] - Re: annotation-introduction + aspect oriented annotations

2006-11-29 Thread [EMAIL PROTECTED]
Try changing the @Target of your annotation to ELementType.TYPE. Annotation 
introductions are compiled in to the bytecode, and if it has the wrong target 
it will not be recognised.


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

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


[jboss-user] [JBoss jBPM] - Re: Waiting for external input

2006-11-29 Thread RomeuFigueira
@dslevine and kukeltje

Thank you for your input, a working solution is being fabricated ;)

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

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


[jboss-user] [EJB 3.0] - Re: Records in database vanish upon restart

2006-11-29 Thread dkalna
Hi, I work with MSSQL 2005, update does not removes my rows, but you can 
completely remove this property (hibernate.hbm2ddl.auto ) from persistance 
config to make sure, db schema will not be recreated once again.

Dalibor

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

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


[jboss-user] [JBoss jBPM] - Re: configurating jbpm to run on tomcat

2006-11-29 Thread kukeltje
you can yourself by reading the documentation, searching the forum 
etc...etc...etc

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

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


[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens

2006-11-29 Thread kukeltje
JimKnopf wrote : Hi again,
  | I am calling an action and in this action i am fire a Rule from JRules. 
Based on the result of this rule i want to use a transition ( token.signal( 
xxx ) ).
  | But when i do this, i get an Exception. Is it not possible to use use 
token.signal in an action? And then, how should i realise actions in which i 
want to move to a next token? Is it only Possible with DecicionHandlers?
  | 
  | The Exception:
  | anonymous wrote : 
  |   | org.jbpm.JbpmException: can't continue execution on locked tokens.  
signalling the same token that executes an action is not allowed
  |   | at org.jbpm.graph.exe.Token.signal(Token.java:164)
  |   | at org.jbpm.graph.exe.Token.signal(Token.java:137)
  |   | 
  | 

Correct, or by inplementing a custom node

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

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


[jboss-user] [JBoss Seam] - Seam 1.1 CR.1 Converstions IceFaces

2006-11-29 Thread sherkan777
Hi,
I use Seam + IceFaces, and have method in stateful bean

@Begin(join=true)
public String ble() {}

normally when i click on button if a long-running conversation is already in 
progress, the conversation context is simply propagated.

Why when I migrated to Seam  IceFaces I Seam creates on each click a new 
conversation?

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: JSP in JBoss IDE??

2006-11-29 Thread akivajunior
I have installed JBoss IDE 2.0 beta2 on Eclipse 3.2.1, and have the same 
problem...

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

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


[jboss-user] [JBossCache] - Associating multiple keys with same object without storing t

2006-11-29 Thread haribaasha
is it possible to associate multiple keys with the same object without storing 
the object twice ? 

my key is something like /name/date
and object is a 1000 character string, hence i dont want to store it twice 
increasing space..

anyway to do this?

thanks
hari

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

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


[jboss-user] [JBoss Seam] - Audit Interceptor with State

2006-11-29 Thread kevin.genie
Hi,

  What will be the best way to implement a Audit Log feature with Seam + EJB3 
entity beans? I have read thru several docs but was unable to find a way  to 
pass state to the interceptor. By state what i mean is some data that is 
specific to the context. (For ex, the currently logged in user. I have to set 
the current user information to the Audit log). One way I tried and worked was 
that let all the entity beans extend from a Base Entity and the BaseEntity 
entity has the callback methods. Also, make all the entity beans Seam 
components including Base Entity. So in the Base Entity callback method, I can 
do a Contexts.getSessionConetxt.get(currentUser) and set  the usee_id to the 
createdBy or lastModifiedBy fields. 
 But the problem is how will i get the current state of the the entity fields 
in call back  (or in listener) for audit purpose because we will only get the 
changed values that are going to be flushed ?
 
 Also, is an entity listener is thead safe to be used with multiple entities? 
Like in the above scenario, if i have annotated the Base Entity with one 
listener class, then for every entity a new listener object will be created ?

Thanx

Kevin

  

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

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


[jboss-user] [Management, JMX/JBoss] - Re: EJB runtime statistics through web-console throws Except

2006-11-29 Thread subcommandante_m
Hi !

Maybe I forgot to mention, that this is a critical issue, even for the customer 
who is about migrating an existing application from another - commercial - 
app.-server. Operating is the issue, not development.

No one else around here with the same problem, no one of jboss who could answer 
or could give a hint ...

Marcos




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

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


[jboss-user] [Security JAAS/JBoss] - how to disable password-stacking property

2006-11-29 Thread purna_cherukuri
Hi,  

I am using JBoss-portal-4.0.2.  I have a problem with jass code.  I want to 
disable the password stacking option.  How can i do it? 

application-policy name=portal
  |   authentication
  |  login-module code=com.tsky.customlogin.CustomLoginModule 
flag=required
  | module-option 
name=unauthenticatedIdentityguest/module-option
  | module-option 
name=userModuleJNDINamejava:/portal/UserModule/module-option
  | module-option 
name=roleModuleJNDINamejava:/portal/RoleModule/module-option
  | module-option 
name=additionalRoleAuthenticated/module-option
  |   module-option name=password-stackinguseFirstPass 
/module-option
  |  /login-module
  |   /authentication
  |/application-policy
  | 

This is the application policy code that i am using. 

Can anyone help me out in this?  

Thanks in advance

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

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


[jboss-user] [JBoss Seam] - Re: Seam promote bad design?

2006-11-29 Thread ellenzhao
Seam + jpdl pageflow really separate concerns very cleanly. You may want to 
have a look at the number guess example. There's pure business logic in the 
action class. Another example is DVD store, the newuser flow and the checkout 
flow.

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

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


[jboss-user] [JBoss Seam] - Re: Seam throws exception while working with DataModel

2006-11-29 Thread [EMAIL PROTECTED]
Just a suggestion, take a look at Taylor:

http://taylor.sourceforge.net/index.php/Overview

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

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


[jboss-user] [JBoss Seam] - Re: Seam Stateless Beans

2006-11-29 Thread [EMAIL PROTECTED]
anonymous wrote : I thought Seam was somehow managing that a single JSF 
lifecycle always got to see the same stateless bean instance

Definitely not. Seam can't magically make a stateless bean stateful.

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

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


[jboss-user] [JBoss Seam] - Re: Debug page intercepts handled exceptions in 1.1

2006-11-29 Thread rbz285
thanks, I've just tried the fix using the 20061129 nightly build that has the 
change in it but it doesn't work for me, it still shows the debug page

I've checked that the download includes the source change 


  | static ThreadLocal marker = new ThreadLocal();
  | 
  | @AroundInvoke
  | public Object handleExceptions(InvocationContext invocation) throws 
Exception
  | {
  | boolean outermost = marker.get() == null;
  | marker.set(this);
  | try  {
  | return invocation.proceed();
  | } catch (Exception e) {
  | if (outermost  FacesContext.getCurrentInstance()!=null) {
  | return Exceptions.instance().handle(e);
  | } else {
  | throw e;
  | }
  | } finally {
  | marker.remove();
  | }
  | }
  | 

I reckon it doesn't work for me because my first bean actually calls 2 
different methods on my second bean and so the above code calls marker.remove() 
after the first call to the second bean, hence the next call is treated as the 
outermost.

It would probably be better to only bother with the exception logic if its 
actually going to be used, something like:


  | @AroundInvoke
  | public Object handleExceptions(InvocationContext invocation) throws 
Exception
  | {
  | boolean outermost = marker.get() == null;
  | if (outermost) {
  | marker.set(this);
  | try  {
  | return invocation.proceed();
  | } catch (Exception e) {
  | if (FacesContext.getCurrentInstance()!=null) {
  | return Exceptions.instance().handle(e);
  | } else {
  | throw e;
  | }
  | } finally {
  | marker.remove();
  | }
  | }
  | else {
  | return invocation.proceed();
  | }
  | }
  | 

what do you reckon ?

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

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


[jboss-user] [JBoss Seam] - Re: si:selectItems Value is not a valid option.

2006-11-29 Thread fonseca
Thank you Peter, I seem to be getting to the problem now. I have a few Lists in 
my entity, and it seems the problem lies within comparing them. When having a 
this.somelist.equals(o.somelist) in my equals, wherever the lists are 
equivalent or not, the result is always false, therefore generating a jsf 
validation error (value is not valid) during the rendering of the page after 
the submit when jsf compares the selected item with all items in the dropdown 
list. During runtime, somelist is of the type 
org.hibernate.collection.PersistentBag. This class does not implement the 
equals from the List interface, but the equals from Object. 

I have removed the comparison of lists in my equals, and it now works fine.





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

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


[jboss-user] [JBoss Seam] - Re: Debug page intercepts handled exceptions in 1.1

2006-11-29 Thread [EMAIL PROTECTED]
Try again, I just fixed the fix.

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Messages get stuck in queue

2006-11-29 Thread Byorn
Victoria for what perpose do you use JMS?

We use it to send emails. We are also accessing an FTP server.

What does your MDB do?

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

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


[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2006-11-29 Thread petemuir
I implemented something similar to the audit log code on the hibernate website. 
 It's an extension to EntityHome, and will scan over the entity being saved, 
logging new values (and old values if changed and an update is occuring) if the 
property is marked @Auditable.  It will follow associations depending on the 
CascadeType and works with collections. Oh, and it outputs the log as a 
trinidad tree table, but thats easily customisable.

I can post the code if you are interested (but beware, it's mostly complete and 
mostly works but I'm sure there are lots of bugs...)

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

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


[jboss-user] [JBoss Seam] - Please help me! The page cannot change when jbpm is used.

2006-11-29 Thread kumachan
Hello.
I want to make the sample program of seam, and to change in pageflow.jpdl.xml 
the screen. 
The program moves well when pageflow.jpdl.xml is not used.
However, it is not possible to control with jbpm. 
Following information comes out though the error has not gone out. 

Could anyone advise,please?

## Environment ##
JBOSS4.0.5GA
jdk1.5.0_06
jboss-seam-1.0.1.GA
jbpm-3.1.2.jar


## Server Log ##
21:35:06,420 INFO  [EARDeployer] Started J2EE application: 
file:/C:/usr/local/jboss-4.0.5.GA/server/default/deploy/ks.ear
  | 21:35:17,545 INFO  [Events] no events.xml file found
  | 21:35:17,623 INFO  [Pages] no pages.xml file found
  | 21:35:18,576 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.PRETTY_HTML' found, using default value true
  | 21:35:18,576 INFO  [MyfacesConfig] No context init parameter 
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
  | 21:35:18,592 INFO  [MyfacesConfig] Tomahawk jar not available. 
Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are 
disabled now.

## RegisterAction.java ##
@Stateful
  | @Name(register)
  | @Scope(CONVERSATION)
  | public class RegisterAction implements Register {
  | 
  | [EMAIL PROTECTED](required=false) @Valid
  | [EMAIL PROTECTED](required=false) 
  | public User user;
  | 
  | [EMAIL PROTECTED]
  | private EntityManager em;
  | 
  | [EMAIL PROTECTED]
  | private Log log;
  | 
  | [EMAIL PROTECTED](create=true)
  | private transient FacesMessages facesMessages;
  | 
  | [EMAIL PROTECTED]
  | [EMAIL PROTECTED](pageflow=index)
  | public void index(){}
  | 
  | public void register(){
  | user = new User();
  | log.info(register());
  | }
  | 
  | public void confirm(){
  | if(user.getUsername().equals( )){
  | facesMessages.add(Please input UserId.);
  | }
  | }
  | 
  | [EMAIL PROTECTED]
  | public void registered(){
  | em.persist(user);
  | log.info(user.getUsername());
  | }
  | 
  | [EMAIL PROTECTED]
  | [EMAIL PROTECTED]
  | public void destroy(){}
  | }

## index.jsp ##

%@ page language=java contentType=text/html; charset=Shift_JIS 
pageEncoding=MS932%
  | %@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
  | %@ taglib uri=http://java.sun.com/jsf/core; prefix=f%
  | htmlheadtitleMenu/title/head
  | 
  | script type=text/javascript src=seam/remoting/resource/remote.js
  | /script
  | script type=text/javascript src=seam/remoting/interface.js?register
  | /script
  | 
  | body
  | f:view
  | h:form
  | h:commandButton type=submit value=entry ?action=register /
  | /h:form
  | /f:view
  | /body/html

## application.xml ##

application
  | display-nameks/display-name
  | module
  | web
  | web-uriks.war/web-uri
  | context-root/ks/context-root
  | /web
  | /module
  | module
  | ejbks.jar/ejb
  | /module
  | module
  | javajboss-seam.jar/java
  | /module
  | module
  | javajbpm-3.1.2.jar/java
  | /module
  | /application


## seam.properties ##

org.jboss.seam.init.componentClasses org.jboss.seam.core.Jbpm
  | org.jboss.seam.core.jbpm.pageflowDefinitions pageflow.jpdl.xml
It becomes deploy error if it describes it in component.xml.

## pageflow.jpdl.xml ##

?xml version=1.0 encoding=UTF-8?
  | 
  | pageflow-definition name=registerflow
  |start-page name=index view-id=/index.jsp
  |   redirect/
  |   transition name=register to=register
  |  action expression=#{register.register} /  
  |   /transition
  |/start-page
  |page name=register view-id=/register.jsp
  |   redirect/
  |   transition name=confirm to=confirm
  |  action expression=#{register.confirm} /
  |   /transition
  |/page
  |page name=confirm view-id=/confirm.jsp
  |   redirect/
  |   transition name=registered to=registered
  |  action expression=#{register.registered} /
  |   /transition
  |/page
  |page name=registered view-id=/registered.jsp
  |   redirect/
  |   end-conversation /
  |/page
  | /pageflow-definition



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

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


[jboss-user] [JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo

2006-11-29 Thread vijay simha joshi
sursha wrote : According to the link below, jbossws1.0.x is a preview 
implementation with support for only primitive types. 
  | http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQSupportForJSR181
  | I'm using it already with complex object types in document/literal mode.
  | We are planning to move this to production soon.
  | Isn't it true that  jbossws1.0.x supports complex object types ?
  | Also I'm assuming that it is production ready. 
  | 

Hi Sursha,

   I m very new to the web-service field. I tried installing jbossWS1.0.4 on 
JBOSS4.0.4 as per the instructions given in the installation doc, but i m 
getting exceptions. 

Please let me know where i m going wrong and if possible a simple example of 
web service using JBOSS-WS.

Thanks in advance
Vijay


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

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


[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used

2006-11-29 Thread ellenzhao
your pageflow definition is called registerflow according to this line 
pageflow-definition name=registerflow in your pageflow definition. However 
I didn't find any @Begin (pageflow=registerflow)  in your 
RegisterAction.java. You may want to add this to your register() method in that 
class. 

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

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


[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens

2006-11-29 Thread JimKnopf
Correct.

But i allready solved the Problem ... simple just using leaveNode( ... ) 
instead of getToken.signal( ... ).

A decisionHandler is not possible, because sometimes i need to have more then 
one Decision in one node so. (For Example Check some Rulebases if one of these 
Rulebase matched then use Transition A else the default Transition). So i 
need to use actions insted of DessionHandlers.




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

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


[jboss-user] [JBoss Seam] - Re: JSF requiredMessage does not work with seam bundle

2006-11-29 Thread rlhr
You can look at these 2 links (they explained a lot about validations):

http://www.jboss.com/index.html?module=bbop=viewtopict=90636
http://www.jboss.com/index.html?module=bbop=viewtopict=93507

So my understanding at this point is that the jsf framework will not call any 
validator when a value is null (I guess this is because there is no need to 
validate anything in that case).
I believe the reason for this is that in case of a null value, we either accept 
it (attribute required=false) or we refuse it (required=true).
Now since the attribute requiredMessage is not implemented, I can see to 
possible fix:
 1- override javax.faces.component.UIInput.REQUIRED in your messages.properties
 javax.faces.component.UIInput.REQUIRED = My error message
  | 
That will replace the ugly Validator Error message. But if you have 5 
inputText in your page, you'll get 5 times this message...

2 - You can extend any components (inputText,...) you need to use and implement 
the missing attribute.

Maybe there are other solutions. I'm still looking into that problem myself.

Richard


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

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


[jboss-user] [JBoss Seam] - Re: si:selectItems Value is not a valid option.

2006-11-29 Thread dilator
I guess it would be nice if JSF would let you implement your own equals via the 
converter, that way we could automatically provide equality on the @Id property.

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

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


[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2006-11-29 Thread cwash
I'm interested in this type of functionality, too.  In the past I've used a 
Hibernate Interceptor and had an extension to my base model object that 
encapsulated the fields I wanted audited.  I was able to do a type check in the 
interceptor code and persist the encapsulated audit log entries there.

Too much of a Seam n00b to have done this yet, though.

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

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


[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used

2006-11-29 Thread kumachan
Thank you for the answer. 

I cannot straighten out that problem though I tested your advice. 
Besides, are there any mistakes?
Could you advise when there is someone understanding?


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

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


[jboss-user] [JBoss jBPM] - Re: Action ; Token.signal( ... ) ; Exception: locked tokens

2006-11-29 Thread JimKnopf
And ... thank u for ur response :)

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

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


[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State

2006-11-29 Thread kevin.genie
Hello,
 
 Can u pls post ur code ? Again, how will i persist the audit data from the 
interceptor / listener ? (i.e how do i get a entitymanager for that ? look up 
the entitymanager factory and get the em ?)

Thanx

Kevin

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down

2006-11-29 Thread bcosnefroy
Hi,

Sorry to reply to my own topics...

I've found how to solve my problem.
There is a jndi.properties file in the twiddle.jar file.

In the jndi.properties file, I've added the line:
jnp.disableDiscovery=true

Now when my Jboss server is down, twiddle.sh returns an Exception.
I still have to modify the check_jbossjmx nagios script to deal with this 
exception.

Thanks Dimitris for your answer.
Bruno

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

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


[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used

2006-11-29 Thread ellenzhao
anonymous wrote : It becomes deploy error if it describes it in component.xml.
  | 

This sounds really weird to me. Can you please paste the full stack of your 
deploy error here?

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

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


[jboss-user] [JBoss Seam] - Page action with non-null outcome with redirect possible?

2006-11-29 Thread dilator
If I have a page action with a non-null redirect (a JSF outcome with redirect/ 
specified in the navigation rule) I get the following error:


  | java.lang.IllegalStateException: No page context active
  | at org.jboss.seam.core.FacesPage.instance(FacesPage.java:83)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
  | 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.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
myanonymousproject.tracking.TrackingFilter.doFilter(TrackingFilter.java:184)
  | 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 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 

It works fine without the redirect/ element in faces-config.xml or by 
specifying an explicit view id as the return value for my action method.

Is this possible?

Thanks - Ben

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

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


[jboss-user] [EJB/JBoss] - Re: java.net.SocketTimeoutException: Read timed out

2006-11-29 Thread [EMAIL PROTECTED]
The pooled invoker settings are described here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=PooledInvoker

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

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


[jboss-user] [JBoss Portal] - Re: Accessing HttpServletRequest from RenderRequest

2006-11-29 Thread david.hoffman
Sure, I thought I had posted this, but I guess I didn't.

the request object in the sample below is JBossRenderRequest.


  | public String getCookieValue(String cookieName) {
  | 
  | String value = ;
  | 
  | cookieName = JSESSION;
  | 
  | try {
  | HttpServletRequest req = 
(HttpServletRequest)request.getAttribute(javax.portlet.request);
  | Cookie[] cookies = req.getCookies();
  | for (int j=0; jcookies.length; j++) {
  | Cookie cookie = cookies[j];
  | if (cookie.getName().equalsIgnoreCase(cookieName)) {
  | value = cookie.getValue();
  | }
  | }
  | } catch (Exception e) {
  | log.error(Error in getCookieValue(), e);
  | }
  | 
  | return value;
  | }
  | 


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

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


[jboss-user] [JBoss jBPM] - Re: assignment expression

2006-11-29 Thread Ahmed Abd-ElHaffiez
i can't find any documentation concerning this issue. but i think it means some 
kind of hierarchy..for example u want this task to be assigned to the manager 
in the HR department and not every body.

so u would specify previous--group(hr)--member(manager). i am not sure abt my 
answer.

I tried to work on simple assignments, example:
  task name=mystask
  |  assignment expression=user(ernie)/assignment
  |   /task
well, it works fine.

but it didn't work for groups assignment. i don't know y it doesn't work when i 
say
  task name=mystask
  |  assignment expression=group(hr)/assignment
  |   /task
i find that anybody can access the task and not only HR department.

is there any document for the membership assignng in the DB? wt i get is that 3 
tables are responsible for this (grupID, userId, membershipID) anythg else i 
miss?

any one can help me understand wt is the problem abt that?

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

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


[jboss-user] [Management, JMX/JBoss] - While undeploying web application using jmx-console stop met

2006-11-29 Thread avinashwable
When I try to undeploy my web application using stop method of jmx-console it 
halts for some time after the message [StandardService] Stopping service 
jboss.web and then gives following error message 
...---
WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
ERROR [JDBCExceptionReporter] You are trying to use a connection factory that 
has been shut down: ManagedConnectionFactory is null.; - nested throwable: 
(javax.resource.ResourceException: You are trying to use a connection factory 
that has been shut down: ManagedConnectionFactory is null.)
---
This message is repeated forever,
nothing is accesible after that, not even a jboss-console.




Detailed log after I click stop button on jmx-console is given below... Does 
anyone has any idea about it?


19:28:51,503 INFO  [TomcatDeployer] undeploy, ctxPath=/earray, 
warUrl=.../deploy/earray.war/
19:28:51,534 INFO  [Server] Runtime shutdown hook called, forceHalt: true
19:28:51,566 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages
19:28:51,566 INFO  [TomcatDeployer] undeploy, ctxPath=/jmx-console, 
warUrl=.../deploy/jmx-console.war/
19:28:51,566 INFO  [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:52,584 INFO  [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:53,853 INFO  [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:53,963 INFO  [TomcatDeployer] undeploy, ctxPath=/eArrayMonitor, 
warUrl=.../deploy/eArrayMonitor.war/
19:28:53,978 INFO  [TomcatDeployer] undeploy, ctxPath=/downloadservice, 
warUrl=.../tmp/deploy/tmp53638downloadservice-exp.war
/
19:28:54,151 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=earr
ay' from JNDI name 'java:earray'
19:28:54,229 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:service=ConnectionFactoryBinding,na
me=JmsXA' from JNDI name 'java:JmsXA'
19:28:54,245 INFO  [testTopic] Unbinding JNDI name: topic/testTopic
19:28:54,245 INFO  [securedTopic] Unbinding JNDI name: topic/securedTopic
19:28:54,245 INFO  [testDurableTopic] Unbinding JNDI name: 
topic/testDurableTopic
19:28:54,245 INFO  [testQueue] Unbinding JNDI name: queue/testQueue
19:28:54,260 INFO  [A] Unbinding JNDI name: queue/A
19:28:54,276 INFO  [B] Unbinding JNDI name: queue/B
19:28:54,276 INFO  [C] Unbinding JNDI name: queue/C
19:28:54,276 INFO  [D] Unbinding JNDI name: queue/D
19:28:54,276 INFO  [ex] Unbinding JNDI name: queue/ex
19:28:54,292 INFO  [DLQ] Unbinding JNDI name: queue/DLQ
19:28:54,292 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=Defa
ultDS' from JNDI name 'java:DefaultDS'
19:28:55,780 INFO  [HypersonicDatabase] Database standalone closed clean
19:28:55,827 INFO  [TreeCache] stopService(): closing the channel
19:28:56,156 INFO  [TreeCache] stopService(): stopping the dispatcher
19:28:56,172 INFO  [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0-8080
19:28:57,174 INFO  [StandardService] Stopping service jboss.web
19:30:31,441 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:30:31,441 ERROR [JDBCExceptionReporter] You are trying to use a connection 
factory that has been shut down: ManagedConnect
ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You 
are trying to use a connection factory that h
as been shut down: ManagedConnectionFactory is null.)
19:32:31,841 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:32:31,841 ERROR [JDBCExceptionReporter] You are trying to use a connection 
factory that has been shut down: ManagedConnect
ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You 
are trying to use a connection factory that h
as been shut down: ManagedConnectionFactory is null.)

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

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


[jboss-user] [EJB/JBoss] - HttpInvoker for EJBs on 4.0.5GA doesn't work

2006-11-29 Thread Cyberax
HttpInvoker on 4.0.5GA doesn't correctly marshal exceptions from EJB methods.

I'm getting this exception:

  | org.jboss.remoting.CannotConnectException: Can not connect http client 
invoker.
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
  | at $Proxy1.getPossibleFAs(Unknown Source)
  | at com.sd.sdmain.gui.login.LoginDialog$5.run(LoginDialog.java:163)
  | at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
  | at java.util.concurrent.FutureTask.run(FutureTask.java:123)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.io.StreamCorruptedException: invalid stream header
  | at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
  | at java.io.ObjectInputStream.init(ObjectInputStream.java:268)
  | at 
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.init(ObjectInputStreamWithClassLoader.java:73)
  | at 
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:52)
  | at 
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:119)
  | at 
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
  | at 
org.jboss.remoting.marshal.http.HTTPUnMarshaller.read(HTTPUnMarshaller.java:131)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
  | ... 23 more
  | 
on the CLIENT when I'm throwing from server method (or receive 
EJBAccessException from JBoss). All necessary class definitions are available 
on the client.

I've tried to change serialization type from java to jboss:

  |mbean code=org.jboss.remoting.transport.Connector  
  |   
name=jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
  |   dependsjboss.aop:service=AspectDeployer/depends  
  |   !--attribute 
name=InvokerLocatorsocket://${jboss.bind.address}:3873/attribute--
  |   attribute 
name=InvokerLocator${custom.server.connector}://${custom.server.host}:${custom.server.port}/servlet-invoker/ServerInvokerServlet?serializationtype=jboss/attribute
  | 
  |   attribute name=Configuration
  |  handlers
  | handler 
subsystem=AOPorg.jboss.aspects.remoting.AOPRemotingInvocationHandler/handler
  |  /handlers
  |   /attribute
  |/mbean
  | 

But now I get ANOTHER exception:

  | org.jboss.remoting.CannotConnectException: Can not connect http client 
invoker.
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 

[jboss-user] [JBoss jBPM] - Customizing jBBM using own jsp's

2006-11-29 Thread hade79
Hi,

i'm trying to customize a jbpm process by for example integrate other 
datafields than a textfield.

Is there any tutorial about how to do that?
When you create a new jbpm project in eclipse there is no way to do so. Do I 
have to create a dynamic web project to get more functionality into the sites 
like storing attachements from the frontend.

I'm new in this environment and i'm searching for a howto for a long time now.

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

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


[jboss-user] [JBossCache] - Re: Configuring JBossCluster

2006-11-29 Thread [EMAIL PROTECTED]
anonymous wrote : 
  | Do you have any comments regarding the fact that the cache will be used 
from within the context of an ejb container? That is, thread management and 
network IO isn't exactly ideal to be done from an ejb, and is kind of 
forbidden by the spec 
  | 

You don't necessarily need to start and manage the cache from an EJB in WLS.  
Try some of the techniques on 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic



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

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


[jboss-user] [JBossCache] - Re: Monitoring puts and evictions

2006-11-29 Thread [EMAIL PROTECTED]
Also, a much richer CacheListener interface in JBoss Cache 2.0.0 supercedes 
TreeCacheListener and ExtendedTreeCacheListener of 1.x.y.

See the 2.0.0 CacheListener javadoc (currently available as ALPHA1) for more 
info.

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

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


[jboss-user] [JBossCache] - Re: Transactions problem

2006-11-29 Thread [EMAIL PROTECTED]
If they run simultaneously, both transactions won't succeed.  One of them will 
fail since there will be a race condition to commit at the same time, and both 
transactions will have locks on the node in question.  

If you removed your sleep time, chances of success are higher, but there will 
still be that race condition.  This is expected since cluster-wide locks are 
not obtained when you read your node using a cache.get().

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

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


[jboss-user] [JBoss Seam] - Re: Using Jboss Seam and Struts

2006-11-29 Thread [EMAIL PROTECTED]
Not being able to use Java 5 is a different issue than integrating with struts. 
 There are articles on the web about using struts with JSF.  I don't know the 
techniques, but if you can sensibly combine them using those techniques, then I 
don't see why you couldn't do so in seam.   (I'm not sure you'd REALLY want to 
though)

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

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


  1   2   3   >