[jboss-user] [EJB/JBoss] - Minimize the CPU Utilization on Database Server that is (96

2008-01-23 Thread Scorpio1
Hi,

I have deployed J2EE application on JBoss(jboss-4.0.3SP1)server with 
JDK(j2sdk1.4.0).

Now we wants to minimize the Resource Utilization (CPU Utilization ) on 
Database Server that is very high ( Around   96 %). 

Hoping someone could help me .

Thanks in advance
--Scorpio1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122896#4122896

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122896
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: modify entity after persist from same method

2008-01-23 Thread nickarls
Please show the code (especially the entities since the exception seems to 
originate from hibernate validator)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122895#4122895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Validation messages are inconsistent

2008-01-23 Thread nickarls
This is probably because the required=true means that it hits JSF validation 
first and therefore the message displayed (and the key you want to change) is 
the JSF one. 

Probably the "javax.faces.component.UIInput.REQUIRED" but do look it up 
somewhere.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122894#4122894

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - reg: return types

2008-01-23 Thread extasy
I want to have javabean as a return type and parameter type of my web service 
method instead of primitive types. 

Can any one tell me how that could be acheived and what are the things that I 
need to do for that?


Babu

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122892#4122892

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122892
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Exceptions during load testing

2008-01-23 Thread gayatri.ramamurthi
we are using 1.2.1GA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122891#4122891

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122891
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - JBossMessaging 1.4.1.Beta1 Released

2008-01-23 Thread [EMAIL PROTECTED]
We just released 1.4.1.Beta1.

This is release was done basically to deliver a functionality required by JBoss 
5. (SecurityMetadataStore as a pluggable interface).  Because of this new 
functionality, this release will require a change on a config file 
(messaging-service.xml).
This is the task list for this release:

Release Notes - JBoss Messaging - Version 1.4.1.beta1

** Bug
* [JBMESSAGING-1216] - getJMSDestination() is returning an incorrect object 
type after a message has been delivered.
* [JBMESSAGING-1221] - Memory Leak in MessagingXAResource


** Feature Request
* [JBMESSAGING-1223] - Make SecurityStore Configurable


You can also see this list at this URL:

http://jira.jboss.org/jira/secure/ReleaseNote.jspa?version=12311969&styleName=Html&projectId=12310061&Create=Create



Clebert

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122888#4122888

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122888
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: JBoss Federated SSO: Does it support?

2008-01-23 Thread [EMAIL PROTECTED]
Arjun-

Here is the detailed documentation for the JBoss Federated SSO project 
http://labs.jboss.com/wiki/Jboo

As per your questions:

anonymous wrote : 
  | Q1) Is JBoss SX a pre requisite for JBoss SSO?? 
  | 
JBoss SX is not a requirement for JBoss SSO. It supports both JAAS based 
authentication mechanism as well as an custom authentication mechanism. The 
wiki has detailed information related to both approaches

anonymous wrote : 
  |  3.1. Ability to attach a Web filter (Servlet 2.3 Sepc) in the 3rd part App 
which can be on any App/Web Server. The filter will communicat with the SSO 
server. This reduces integration cost. 
  | 
With JBoss SSO, Single Sign On orchestration/Token management is provided 
out-of-the-box using Tomcat Valve approach. This mechanism takes care of all 
communication/secure exchanges between your web application and the SSO 
Federation Server. All your application needs to do is provide the web 
application integration discussed in the wiki. Hence, you don't need a Servlet 
Filter in your web application to communicate with the SSO Server

anonymous wrote : 
  | Do I have to recompile it for JDK1.4 
  | 

The framework in its current codebase is fully compliant with JDK1.4. It should 
also run out-of-the-box in JDK5 as well

anonymous wrote : 
  | Is there a dependency on a specific JBoss App Server version or can we run 
it on a JBoss 3.2.7 also? 
  | 

The JBoss AS versions supported are 4.0.4 and 4.0.5. Integration with newer 
versions is on the roadmap. Backporting for older versions is not

anonymous wrote : 
  | Can I run it on Tomcat? 
  | 

No at the moment. It runs within the Tomcat integrated with the AS

anonymous wrote : 
  | Configure, SSO sessions time outs 
  | 

Yes. This is the exact same as your Tomcat's http session timeout of your 
application. And if one application is logged out, the Federated Logout 
function performs corresponding logout in the other web applications as well

anonymous wrote : 
  | Attach a Bean(s) to a SSO session; so we can expose a serivce to request 
for information about that session without hitting the database 
  | 

Not sure if I understand. Are you referring to the availability of an 
HttpSession for your web application here? Whats the usecase? Think of JBoss 
SSO as a black box layer on top of your web application for orchestrating 
Single Sign On between a group of Federated web applications. Hence, nothing 
changes for your web application functionality including your use of 
HttpSession etc

anonymous wrote : 
  | Configure things like Person can login once with credentials only, or can 
have multiple login-ins. 
  | 

JBoss SSO does not dictate the application requirements for your login usecase. 
It comes into play (SSO orchestration) once an authentication is successfull 
and a Logged In Principal is established

anonymous wrote : 
  | SSO Sessions should extend or be normal Web Server sessiosn or if not then 
provide support for clustering, for session replication. 
  | 

Web Server Sessions remain as is. Nothing changes here. Your web application is 
completely unaware of the presence of an SSO layer, and all facilities like 
HttpSession clustering/replication are available the same way before the SSO 
layer was integrated

anonymous wrote : 
  | Whats the underlysing principle behind the SSO? Like CAS is based ona 
Kerberosv5 based protocol. 
  | 

Underlying principles for the approach is:

1/ De-centralized approach using a Federation of independent web applications 
that could possibly even live in completely different web domains.

2/ A standard based approach using SAML so that independent web applications 
like say your companies internal portal and your SAAS provider (like 
SalesForce) can exchange SSO Assertions and Trust Handshake securely

Hope this helps

Thanks


 






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122886#4122886

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122886
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: JBoss 4.2 Spring Deployer + Spring 2.08

2008-01-23 Thread devnulled0
Thanks for the quick reply.  I've spent the day looking at other classloader 
issues and am finally back to this issue, and I think I'd like to try and build 
this against a current version of Spring.

I checked-out the project from Sourceforge from trunk, and when I run the 
build.sh script under spring-int, I get this error:


  | tobin:~/dev/jbossas/spring-int brandon$ ./build.sh
  | Searching for build.xml ...
  | Buildfile: /Users/brandon/dev/jbossas/spring-int/build.xml
  | /Users/brandon/dev/jbossas/thirdparty/libraries.ent could not be found
  | 
  | BUILD FAILED
  | java.io.FileNotFoundException: 
/Users/brandon/dev/jbossas/thirdparty/libraries.ent (No such file or directory)
  | 
  | Total time: 0 seconds
  | 

Any suggestions?  I looked for documentation but didn't find much.  FWIW, I'm 
on OS X running Java 6.

Also, should I be doing anything specific to get the version which works with 
JBoss 4.x?

Thanks,

- Brandon

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122883#4122883

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss/Spring Integration] - Re: JBoss 4.2 Spring Deployer + Spring 2.08

2008-01-23 Thread devnulled0
Oh, and FWIW, the current Spring version for JBoss seems to be Spring 2.0 M3.  
Thanks for the help and creating this deployer-- if I can manage to get it 
updated to a current version it will be super helpful and I can pass back any 
patches needed, etc.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122884#4122884

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Unexpected Unicode interpretation for HTTPServletRequest on

2008-01-23 Thread Nat_Tul
After several try of HttpServletRequest's getParameter(String) method.
When dealing with UTF-8 encoded URL containing code point between 
0x0E01(encoded as %E0%B8%81) and 0x0E1F(encoded as %E0%B8%9F) inclusive.
The outcome of getParameter(String) will always be 0xE0 0xB8 0x3F, which is not 
a valid encoded form for UTF-8 and not what expected value.

My machine using JBoss AS 4.2.2.GA and JDK 6 Update 4

Any suggestion?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122881#4122881

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122881
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - JBoss Federated SSO: Does it support?

2008-01-23 Thread ArjunDhar
Hi,
 I'm in the process of evaluating certain OpenSource Solutions. I've looked at 
CAS, JOSSO and OpenSSO. Also our owd solution but then the security audit on 
that would be more stringent and hence consume more time, apart from 
development.

For better or for worse my client has bought support from JBoss. So we would 
rather go for a JBoss solution.

Now, I read about JBossSX and then the JBoss SSO. 

Q1) Is JBoss SX a pre requisite for JBoss SSO?? 
Q2) If so, how and why? (For HOW a link would suffice that talks of 
integration). (I hope not!)

Q3) More Importantly, I'm lookin at the following features in JBoss SSO:
 3.1. Ability to attach a Web filter (Servlet 2.3 Sepc) in the 3rd part App 
which can be on any App/Web Server. The filter will communicat with the SSO 
server. This reduces integration cost.
 3.2. Do I have to recompile it for JDK1.4
 3.3. Is there a dependency on a specific JBoss App Server version or can we 
run it on a JBoss 3.2.7 also?
 3.4. Can I run it on Tomcat?
 3.5. Configure, SSO sessions time outs
 3.6. Attach a Bean(s) to a SSO session; so we can expose a serivce to request 
for information about that session without hitting the database
 3.7. Configure things like Person can login once with credentials only, or can 
have multiple login-ins.
 3.8. SSO Sessions should extend or be normal Web Server sessiosn or if not 
then provide support for clustering, for session replication.
 3.9. Whats the underlysing principle behind the SSO? Like CAS is based ona 
Kerberosv5 based protocol.

... Would appreciate help in any way.

Thanks,
Arjun

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122879#4122879

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Found non-jar deployer error

2008-01-23 Thread Smartsid81
Well the jar file sid.jar is not a web module. It contains few beans and its 
supporting classes to interact with the database. Therefore I do not think that 
sid.jar has to be put under WEB-INF/lib.

Can somebody please help me out for the error still persists and I am stuck in 
my project.

Regards

Siddhartha 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122880#4122880

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: exception encountered in jbpm bpel examples

2008-01-23 Thread shefagarwal
hey thanks for the solution...
I tried the same and its working fine now...
Thanks again :)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122878#4122878

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122878
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Problem during marshalling/unmarshalling

2008-01-23 Thread ocsamuel
I also get this error...how to resolve it?
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during 
marshalling/unmarshalling; nested exception is:
java.io.OptionalDataException 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122877#4122877

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread squ1rr3l
Ok, I have my code working now.  There were a couple of things that didn't work:

1)  Initially I tried using the 

  | JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);
  | 
for passing the outputStream from the Response object to the 
JasperExportManager.  AFAIK, that's what produced the "Writer not possible" 
error.

2)  In the session EJB, using FacesContext.getCurrentInstance() does not 
provide a usable context - at least not one that can be used to obtain the 
Response object.  So maybe that's usable in a POJO component, but not an EJB 
component, and that's possibly by design, I don't know.  Scope doesn't really 
seem to matter.

Anyway, what works is this:

- In the session EJB:

  | @In 
  | private FacesContext facesContext;
  | private byte[] report1;
  | 
  | ...
  | 
  |  String reportName = "/reports/myreport.jrxml";
  |  CreateReport cr = new CreateReport();
  |  report2 = cr.getReport(reportName);
  |  try {
  |   HttpServletResponse response = (HttpServletResponse)
  |facesContext.getExternalContext().getResponse();
  |   response.setContentType("application/pdf");
  |   OutputStream os = response.getOutputStream();
  |   os.write(report2);
  |   os.flush();
  |   os.close();
  |   facesContext.responseComplete();
  |  } catch(Exception ex) {
  |   ex.printStackTrace();
  |  }
  | 

Just for completeness - the CreateReport.getReport method just does the jasper 
stuff to load and fill the report, then return the byte array:

  | public byte[] getReport(String reportName)
  | {
  |  try
  |  {
  |ServletContext sCtxt = ServletLifecycle.getServletContext();
  |File reportFile = new File(sCtxt.getRealPath(reportName));
  |if( !reportFile.exists()) {
  | throw new JRRuntimeException("File " + reportName + " not 
found.");
  |}
  |   
  |JasperDesign jasperDesign = JRXmlLoader.load(reportFile);
  |JasperReport jasperReport = 
JasperCompileManager.compileReport(jasperDesign);
  |JasperPrint jasperPrint = 
JasperFillManager.fillReport(jasperReport, parameters, conn);
  |  
  |if (jasperPrint != null) {
  | byte[] reportPDF = 
JasperExportManager.exportReportToPdf(jasperPrint);
  | return reportPDF;
  |} else {
  | throw new JRRuntimeException("null jasperPrint");
  | return null;
  |}
  |  } 
  |  catch (Exception e)
  |  {
  |e.printStackTrace();
  |  }   
  |  return null;
  | }
  | 

Thanks for the help!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122875#4122875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122875
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Detect client disconnection

2008-01-23 Thread cogauthier
Hi,

I have a jsp page that call stateless session bean (ejb3).
The stateless session execute processes during 45 seconds and return result to 
de jsp page. If a client called the jsp and close internet browser after 15 
seconds. The stateless session bean and the jsp page continu to run during 45 
seconds without catch the client disconnection.

My question, Is it possible to stop stateless session bean and the jsp when a 
client closing the browser session?

Thanks!

Charles

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122874#4122874

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam with RichFaces

2008-01-23 Thread damianharvey
There's nothing wrong with that approach.

To call another bean from inside a bean you can either:
a) inject the bean using @In; or
b) create it inline using Component.getInstance("mybean")

Cheers,

Damian

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122873#4122873

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Topic Subscription only works with JBoss Libraries?

2008-01-23 Thread [EMAIL PROTECTED]
Yes, sorry.  I should have remembered there was something extra messy you 
needed besides XML.  We had to make changes to those classes to add support for 
the new JBoss Messaging project instead of the current JBossMQ support that is 
there now.  

Shane - is there really no way to push all this configuration out to XML?  It 
seems like we ought to be able to do a bit more than we are.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122872#4122872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: 2 JBoss servers pointing to 1 database

2008-01-23 Thread waynebaylor
i haven't had any problem with multiple instances pointing to the same oracle 
install.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122871#4122871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Topic Subscription only works with JBoss Libraries?

2008-01-23 Thread samdoyle
Thanks Shane, I'll take a look.

S.D.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122870#4122870

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122870
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread squ1rr3l
Well I'm not sure why this isn't working for Jasper output, then.  My code is 
very similar (although there is more involved, of course).  I was actually 
getting the context before using injection, which worked better.  I'm also 
using a session EJB - I assume your test code is not.

In any case, using 

  | FacesContext context = FacesContext.getCurrentInstance();
  | 
causes errors even earlier.  When I do

  | HttpServletResponse response = (HttpServletResponse) 
context.getExternalContext().getResponse();
  | 
I get an exception:

  | 20:00:28,098 ERROR [STDERR] java.lang.IllegalStateException
  | 20:00:28,108 ERROR [STDERR]  at 
com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:428)
  | 20:00:28,108 ERROR [STDERR]  at 
com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:149)
  | 20:00:28,108 ERROR [STDERR]  at 
org.my.project.session.I9CertForm.generateCertificate(I9CertForm.java:145)
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122868#4122868

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122868
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Servlets in long running conversations

2008-01-23 Thread andrey.chorniy
I have some news. it is start working for me, but to achieve that I have to add 
cookie parameter JSESSIONID to identify the session in which that conversation 
was originally created.

ContextFilter and the underlying code uses the HTTP-Session to restore 
Conversation-Entries.

If I make request with plain http-get request like:
http://server-host/context/servlet/some-servlet?cid=2
from another browser - it doesn't work. 

If I use two tabs of FireFox - in the first tab I open the conversation, in the 
second I make a servlet-request - IT WORKS.

So, it start working after I've added JSESSIONID cookie to my call 
servlet-request.
I make a programmatic call (not a browser reauest), so I have control over 
cookies.
But it seems that it is impossible to do it if you don't know the JSESSIONID 
value or have no controll over cookies. To do it via plain URL approach you 
have to turn-off cookies in the browser to add the jsessionid parameter to the 
get-request.
>From one side - it add some additional security, from the other side - you not 
>always can use it, since you are not always can establish the HTTPSession for 
>that


Here is the code which is used to load current Conversation context.
It is stored in the sessionContext, which is based on the HTTPSession object

org.jboss.seam.contexts.Lifecycle
  |public static void beginRequest(ServletContext servletContext, 
HttpSession session, ServletRequest request) 
  |{
  |   log.debug( ">>> Begin web request" );
  |   Contexts.eventContext.set( new WebRequestContext( 
ContextAdaptor.getRequest(request) ) );
  |   Contexts.sessionContext.set( new WebSessionContext( 
ContextAdaptor.getSession(session) ) );
  |   Contexts.applicationContext.set( new 
WebApplicationContext(servletContext) );
  |   Contexts.conversationContext.set(null); //in case endRequest() was 
never called
  |}
  | 
  | org.jboss.seam.core.ConversationEntries 
  |public static ConversationEntries instance()
  |{
  |   if ( !Contexts.isSessionContextActive() )
  |   {
  |  throw new IllegalStateException("No session context active");
  |   }
  |   return (ConversationEntries) 
Component.getInstance(ConversationEntries.class, ScopeType.SESSION);
  |}
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122867#4122867

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122867
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

2008-01-23 Thread terryb
I have removed some code for clarity. also this will change further as I use 
other Identity events.


  | MyAuthenticator.java
  | 
  | 
  | package au.edu.tisc.session;
  | 
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Observer;
  | import org.jboss.seam.log.Log;
  | import org.jboss.seam.security.Identity;
  | 
  | import au.edu.tisc.exception.ActivityLoggerException;
  | 
  | @Name("authenticator")
  | public class Authenticator {
  | @Logger
  | Log log;
  |  
  | @In
  | Identity identity;
  | 
  | @In(value = "orgUserAuthenticate", required = false, create = true)
  | private OrgUserAuthenticate orgUserAuthenticate;
  | 
  | @In(value = "orgUserAuthenticated", required = false)
  | private OrgUserAuthenticated orgUserAuthenticated;
  | 
  | @In(value = "activityLogger", required = false, create = true)
  | private ActivityLogger activityLog;
  | 
  | public boolean authenticate() {
  | 
  | log.info("INFO: authenticating #0", identity.getUsername());
  | return orgUserAuthenticate.authenticate();
  | }
  | 
  | @Observer(Identity.EVENT_LOGGED_OUT) 
  | public void logout() {
  | try {
  | activityLog.logOrgUser(orgUserAuthenticated.getUser(), 
ActivityLogger.Code.LOGOUT, null);
  | } catch (ActivityLoggerException e) {
  | //do nothing
  | }
  | }
  | }
  | 
  | 
  | 

  | package au.edu.tisc.session;
  | 
  | import java.util.Calendar;
  | import java.util.List;
  | 
  | import javax.faces.application.FacesMessage;
  | 
  | import org.jboss.seam.Component;
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Observer;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.faces.FacesMessages;
  | import org.jboss.seam.log.Log;
  | import org.jboss.seam.security.Identity;
  | 
  | import au.edu.tisc.entity.OrganisationUser;
  | import au.edu.tisc.exception.ActivityLoggerException;
  | import au.edu.tisc.home.OrganisationUserHome;
  | import au.edu.tisc.util.JCrypt;
  | import au.edu.tisc.util.Strings;
  | 
  | @Name("orgUserAuthenticate")
  | public class OrgUserAuthenticate {
  | 
  | //TODO auto unlock check, change to configuration parameter
  | boolean autoUnlock = true;
  | 
  | @Logger
  | Log log;
  | 
  | @In
  | Identity identity;
  | 
  | @In(value = "activityLogger", required = false, create = true)
  | private ActivityLogger activityLog;
  | 
  | @In(value="orgUserService", required=false, create=true)
  | private OrgUserService orgUserService;
  | 
  | @In(value = "orgUserAuthenticated", required = false, create = true)
  | @Out(value = "orgUserAuthenticated", required = false, scope = 
ScopeType.SESSION)
  | private OrgUserAuthenticated orgUserAuthenticated; 
  | 
  | OrganisationUser organisationUser = null;
  | 
  | private boolean isAutoLocked = false;
  | private boolean isAccountLocked = false;
  | private boolean isAccountSuspended = false;
  | private boolean isSystemError = false;
  |  
  | public boolean authenticate() {
  | 
  | boolean isAuthenticated = false;
  | try {
  | isAuthenticated = _authenticate();
  | } catch (ActivityLoggerException e) {
  | 
  | this.isSystemError = true;
  | FacesMessages.instance().getCurrentMessages().clear();
  | 
FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, 
"au.edu.tisc.SystemErrorWhileLoggingIn", e.getMessage());
  | } finally {
  | ... 
  | }
  | 
  | return isAuthenticated;
  | }
  | 
  | private boolean _authenticate() {
  | 
  | if (Strings.isNull(identity.getUsername()) || 
Strings.isNull(identity.getPassword())) {
  | 
  | 
FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR, "Please enter 
username and password.");
  | return false;
  | }
  | 
  | //validate username
  | if (organisationUser == null) {
  | 
  | activityLog.logOrgUser(organisationUser, 
ActivityLogger.Code.LOGIN_FAILED, String.format(
  | 
ActivityLogger.Code.Desc.INVALID_USERNAME, identity.getUsername()));
  | 
  | 
Fa

[jboss-user] [JBossWS] - Re: Dispatch WS-Security Bug

2008-01-23 Thread cavani
http://jira.jboss.org/jira/browse/JBWS-1966

Thanks,



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122865#4122865

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Dispatch WS-Security Bug

2008-01-23 Thread cavani
Further exploration and minimal code change seems to fix this issue:

First, changing direction (pivotation) from out- to in-bound.


  | (...)
  | resMsg = getRemotingConnection().invoke(reqMsg, epInfo, false);
  | 
  | msgContext = MessageContextJAXWS.processPivot(msgContext);
  | msgContext.setMessageAbstraction(resMsg);
  | 
  | // Call the  response handler chain, removing the fault type 
entry will not call handleFault for that chain
  | handlerPass = callResponseHandlerChain(portName, 
handlerType[2]);
  | (...)
  | 

With this, WS-Security Handler is called to decrypt the response message, but 
it result in an NPE.

In class WSSecurityDispatcher, method handleInbound, I change string definition 
with null test.


  | (...)
  |  OperationMetaData opMetaData = ctx.getOperationMetaData();
  |  if (opMetaData == null)
  |  {
  | // Get the operation meta data from the soap message
  | // for the server side inbound message.
  | EndpointMetaData epMetaData = ctx.getEndpointMetaData();
  | opMetaData = soapMessage.getOperationMetaData(epMetaData);
  |  }
  | 
  |  String operation = opMetaData == null ? null : 
opMetaData.getQName().toString();
  |  String port = opMetaData == null ? null : 
opMetaData.getEndpointMetaData().getPortName().getLocalPart();
  | 
  |  List> operations = 
buildRequireOperations(config, operation, port);
  | (...)
  | 

It is working now, but I don't have sure if this is all, but it is almost good 
(I really like upstream fix).

Thanks,

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122863#4122863

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Is passivation enabled twice?

2008-01-23 Thread javidjamae
So is this a bug? Any insight?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122862#4122862

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] Disable caching in Jboss.

2008-01-23 Thread Eglia Koncurat
This is the situation, I have a directory outside of JBOSS_HOME which
contents are updated on a regular basis. The application looks into
this directory to show search results. When I update this directory,
my application doesn't see the changes up until when I bounce Jboss.
What settings can I set in Jboss to disable caching?
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Accessing USERNAME_PROPERTY from Web Service class

2008-01-23 Thread mjhammel
In my client I do this to authenticate with BASIC authentication:

/* Setup to authenticate with the server. */
  | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, 
subscriberID);
  | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, 
pw);
  | 

I'd like to access the USERNAME_PROPERTY from within my web services class.  
With JBOSS 4.0.5GA and Axis 1.1 (I think) I did this:

final MessageContext msgContext = MessageContext.getCurrentContext();
  | msgContext.getUsername();
  | 

With JBOSS WS 2.0.2 GA (running under JBOSS 4.2.2GA) I've dropped Axis and so 
I've tried things like this, but none seem to work:


  | @Resource
  | WebServiceContext wsContext;
  | 
  | ...
  | 
  | MessageContext msgContext = wsContext.getMessageContext();
  | String username = (String) 
msgContext.get(BindingProvider.USERNAME_PROPERTY) ;
  | 

What's the correct way to access this message property from the server side?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122860#4122860

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Logger is null

2008-01-23 Thread svadu
No idea, it works fine

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122859#4122859

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122859
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Validation messages are inconsistent

2008-01-23 Thread ristretto
Can anyone explain why I can control the message for @Pattern, but the message 
for @NotNull is ignored.

Explanation:  

If I annotate a field on an @Entity with these annotations


  | @NotNull(message="field is null")
  | @Pattern("^\W$",message="field not valid")
  | 

and then reference the entity in a JFS/Facelets page like this


  | 
  | 
  | 
  | 
  | 

and then test it, the @NotNull message doesn't doesn't display.  I get the 
default message:  {0}: Validation Error: Value is required.

But, when I test it for the Pattern validation, the @Pattern message DOES 
display!?

I haven't tested using a message.properties, and from what I know, we don't 
have one (though there could be a default one in a jar somewhere that is setup 
for NotNull but not Pattern.)

Can anyone clear this up for me?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122854#4122854

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - modify entity after persist from same method

2008-01-23 Thread jsutherland
Just wondering if it is possible to change a newly persisted entity instance 
(from EntityHome) in the same action method.  

I can't seem to find any information about this anywhere.It is certainly 
hibernate related..

My action method injects 3 types of EntityHome objects  

My problem is that I have to create these 3 different entities (one of each 
type) in this action and they all refer to each other but they need to be 
persisted in a certain order.  So after they are all persisted I need to modify 
some of the relations on the new entities.  Whenever I add these new 
relationships I get an exception:

[lifecycle] #{Register.registerUser}:  
avax.ejb.EJBTransactionRolledbackException: validation failed for: 
com.example.User
...

Caused by: org.hibernate.validator.InvalidStateException: validation failed 
for: com.vivapop.calendar.entity.User
at 
org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
at 
org.hibernate.validator.event.ValidateEventListener.onPreUpdate(ValidateEventListener.java:172)
at 
org.hibernate.action.EntityUpdateAction.preUpdate(EntityUpdateAction.java:217)
at 
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:65)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)


Is it possible to do the updates in the same action after persist?  If not 
there must be another approach that I can't see?  


Thanks for any input.


Jon


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122851#4122851

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122851
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Error Accessing java:comp/env from SAR

2008-01-23 Thread vikas_sm
Hello All,


I have an Mbean which tries to bind an object to 
"java:comp/env/jbi/ClientFactory" name.


The binding fails as env is not available under java: Namespace.

How can I make env available under java: namespace? In other words i want to 
bind   the given name from SAR.

Any help will be appreciated.
Regards/Vikas

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122850#4122850

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122850
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam with RichFaces

2008-01-23 Thread tulip
I have a very basic question.

We have a bunch of session and entity beans. On the presentation tier, we need 
to use RichFaces component such as tree etc.
Now the session bean methods returns a list of entity objects. For the front 
end, I need to take this list and construct a richFaces tree and hence use the 
richFaces classes like org.richfaces.model.TreeNode etc
I cannot include the richfaces specific classes in the core session bean as I 
want to keep the presentation specfic stuff out of the core classes. 

That means I need an additional session bean which will make a call to the core 
session bean, get the data from the core session bean and then construct the 
rich faces tree. From my JSF, I will be making Seam calls to this new session 
bean instead of the core session bean.

Is this the correct approach ? Please advice.

Also how can a session bean to session bean call be made within Seam.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122848#4122848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Cannot build JBPM source from CVS

2008-01-23 Thread kukeltje
1: could be a slip of the keyboard. I'm not sure. 
2: linux, no not needed. only the java files of eclipse are  needed.

Regarding the error. 

 [java] 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/genericTargets.xml:63:
  |  Unable to find plug-in: org.jbpm.gd.jpdl_0.0.0. Please check the error log 
for more details. seems to be the cause. I know Koen has done some refactoring. 
Maybe not all is done yet. You can disable building the GPD in de ant file. See 
if that helps.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122847#4122847

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: FacesContext is null in Identity.initCredentialsFromCook

2008-01-23 Thread [EMAIL PROTECTED]
What does FacesContext.getCurrentInstance() return when it's an a method 
invoked by a JSF action?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122846#4122846

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Issues moving from postgresql to oracle

2008-01-23 Thread rbreault
They were database connection issues When I copied the ds files I must have 
done something wrong after I used scp to move the examples over it worked.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122845#4122845

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: roles redirecting methods

2008-01-23 Thread [EMAIL PROTECTED]
Ok, I think I finally understand what you're saying.  Unfortunately no, we 
won't be implementing anything like this, from what I can see it will 
complicate the security model tremendously without any substantial benefit.  
Your example use case of filtering orders by role can easily be achieved with 
entity security and a rule-based permission.  

If you have another use case that isn't currently supported by the existing 
security features then please let me know, and we'll see if it can be addressed 
in some other way.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122843#4122843

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread dustismo
The code I posted works fine for me..  Here is a working example.

Component:

  | @Name("testController")
  | @Scope(ScopeType.PAGE)
  | public class TestController {
  | public void hello() {
  | try {
  | FacesContext context = 
FacesContext.getCurrentInstance();
  | HttpServletResponse response = (HttpServletResponse) 
context.getExternalContext().getResponse();
  | response.setContentType("text/plain"); //fill in 
contentType 
  | OutputStream os = response.getOutputStream();
  | os.write("HELLO THERE".getBytes()); //fill in bytes
  | os.flush();
  | os.close();
  | context.responseComplete();
  | } catch (Exception x) {
  | x.printStackTrace();
  | }
  | }
  | }
  | 

View:


  | 
  | http://www.w3.org/1999/xhtml";
  | xmlns:s="http://jboss.com/products/seam/taglib";
  | xmlns:ui="http://java.sun.com/jsf/facelets";
  | template="templates/template.xhtml"
  |>
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122839#4122839

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122839
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Topic Subscription only works with JBoss Libraries?

2008-01-23 Thread [EMAIL PROTECTED]
Set the connectionProvider property for the subscriptionRegistry component to 
the class name of the JMSConnectionProvider implementation you want to use.  
Look at JBossConnectionProvider for an example implementation.  All of these 
classes are in the org.jboss.seam.remoting.messaging package.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122838#4122838

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122838
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam remoting in seam app = loose of principal

2008-01-23 Thread [EMAIL PROTECTED]
We currently don't support any kind of integration with container security, I'm 
actually surprised that it works with regular seam action calls (by 'regular' I 
assume you mean a JSF call).  How is your container security configured?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122837#4122837

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: problem with multiple seam component jars in a WAR

2008-01-23 Thread srini.ragu
in case you want relative path

try this..
file:my-application.war!/WEB-INF/lib/myapp1.jar 

otherwise the best/cleaner option is to bundle your application as ear, with 
the entity jars directly inside the ear

myapp.ear
---entity.jar
---mywebapp.war
--WEB-INF
-lib

on that case you will just need to specify as entity.jar in 
the persistence.xml

or just bundle your persistence.xml inside the entity.jar/META-INF

post this question in hibernate forum, you could get better answers.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122836#4122836

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122836
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Help! JBoss 4.0.5, Log4J, and PojoCache

2008-01-23 Thread joe_shabadoo
I'm currently deploying multiple web applications (WAR's) to a JBoss 4.0.5 AS. 

Each web application contains the necessary Cache & PojoCache resources, and it 
works as expected until I attempt to share cached data between them.For 
example in web application A I'm able to attach and find objects added from 
application A through the PojoCache api, however if I attempt to find these 
object in web application B  I receive the following:

  | java.lang.ExceptionInInitializerError
  | at 
org.jboss.cache.pojo.impl.CachedType.analyzeFields(CachedType.java:215)
  | ...
  | Caused by: org.apache.commons.logging.LogConfigurationException: 
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
  | at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538)
  | at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
  | at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
  | at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:353)
  | at 
org.jboss.cache.pojo.memory.PersistentReference.(PersistentReference.java:44)
  | ... 42 more
  | 
  | Caused by: java.lang.NullPointerException
  | at 
org.apache.commons.logging.impl.Log4jProxy$1.run(Log4jProxy.java:66)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
org.apache.commons.logging.impl.Log4jProxy.threadContextClassLoader(Log4jProxy.java:88)
  | at 
org.apache.commons.logging.impl.Log4jProxy.(Log4jProxy.java:94)
  | 
  | at 
org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:39)
  | at sun.reflect.GeneratedConstructorAccessor24.newInstance(Unknown 
Source)
  | at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  | at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  | at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
  | ... 46 more
  | 

The web applications both use their own log4j.xml files 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector).
I have also tested the applications w/out their own logging and get the same 
exception.  

I'm currently using the following cache configuration:

  | 
  |
  |   jboss:service=Naming
  |   jboss:service=TransactionManager
  | 
  |   org.jboss.cache.transaction.JBossTransactionManagerLookup
  |   
  |   REPEATABLE_READ
  |   
  |   REPL_SYNC
  |   
  |   false
  |   
  |   0
  |   
  |   0
  |   
  |   JBossCache-Cluster-1
  |   
  |   
  |   
  |   
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |   
  |   
  |   true
  |   
  |   15000
  |   
  |   15000
  |   
  |   1
  |   
  |   true
  |
  | 
  | 


Any hints or pointers would be appreciated.
Thanks



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122835#4122835

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122835
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2008-01-23 Thread ristretto
I want thank the posters of this thread so much for this topic.  I am learning 
JSF, Seam and Facelets all at the same time.  (I have been coding Java since 
version 1.0.2, but slipped a bit behind the curve as of late.)  I didn't see 
the messages.properties connection in the Seam documentation I have, and I 
didn't make the connection on my own, so I was totally lost.

I ended up with #3 for now.  



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122832#4122832

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122832
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Select item from table and convertEntity

2008-01-23 Thread brachie
Ok, thanks for your help! It works like I want it now :-)

But can anyone explain to me what happens behind the scene when passing the 
entity-object (pers in my example) directly as method parameter? Well, it 
works, but how?

Alexander

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122828#4122828

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122828
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using rich:datascroller With Seam and Hibernate Paginati

2008-01-23 Thread brachie
Hi,

have a look here:

http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112998

Regards,

Alexander

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122827#4122827

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122827
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iText (PDF) support in Seam

2008-01-23 Thread elponderador
Excuse my ignorance, but I don't appear to be able to add JIRA issues or simply 
do not know how. Maybe it relies on my contributors agreement being approved.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122823#4122823

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Value is not Valid with

2008-01-23 Thread franck93
The equals method is being called many times.

Here's what happens :
The object passed to the equals method as a parameter is always null. The 
object this (on which the method is invoked) is the one that was selected from 
the dropdown list.

What does that mean?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122822#4122822

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122822
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?

2008-01-23 Thread nickarls
Well, at least that's I'll believe until someone corrects me...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122820#4122820

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122820
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Why unable to get client certificate serial number?

2008-01-23 Thread waterhead77br
Hi, 

I'm having the same issue. How did you solve it? Can't figure out how to 
setup Apache mod_jk + ajp13 + client cert chain.

Looking in the mod_jk.log in the debug mode. I have the following log:
The interesting thing is that the mod_jk doesn't send the whole 
certificate, it seems to truncate it. 

 Why does the mod_jk does it? Is it misconfigured?

[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
uri_worker_map_update::jk_uri_worker_map.c (786): File 
/etc/httpd/conf/uriworkermap.properties  is not modified
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (678): Found session identifier 
';jsessionid=rkx1vvqyIC4B9H24XVEogA**.node1' in url 
'/consignacao/inicial.do;jsessionid=rkx1vvqyIC4B9H24XVEogA**.node1'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI 
'/consignacao/inicial.do' from 10 maps
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/internet_base/*=loadbalancer' source 'uriworkermap'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/jmx-console/*=loadbalancer' source 'uriworkermap'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/web-console/*=loadbalancer' source 'uriworkermap'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/consignacao/*=loadbalancer' source 'uriworkermap'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
find_match::jk_uri_worker_map.c (516): Found a wildchar match 
'/consignacao/*=loadbalancer'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] jk_handler::mod_jk.c 
(): Into handler jakarta-servlet worker=loadbalancer r->proxyreq=0
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker loadbalancer
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] wc_maintain::jk_worker.c 
(323): Maintaining worker loadbalancer
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
maintain_workers::jk_lb_worker.c (556): decay with 2^95
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'lb'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] init_ws_service::mod_jk.c 
(775): SSL client certificate (5558 bytes): -BEGIN CERTIFICATE-
MIIFsjCCBJqgAwIBAgIERDVUhDANBgkqhkiG9w0BAQUFADBwMQswCQYDVQQGEwJC
UjETMBEGA1UEChMKSUNQLUJyYXNpbDE1MDMGA1UECxMsQXV0b3JpZGFkZSBDZXJ0
...
skiping the whole certificate
...
Hcr23ijE9hMUvHrKpIQgHb6xIUa5WUFW1er+ms4ViuDgZSHWuwIi3dhXGlaLWkah
mGkm/0/nH+fd5KAK4tR234nc6iZ5Dg==
-END CERTIFICATE-
-BEGIN CERTIFICATE-
MIIFlTCCBH2gAwIBAgISMjAwNjA0MDcxNTM2NDYwMDAxMA0GCSqGSIb3DQEBBQUA
MFAxCzAJBgNVBAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMSwwKgYDVQQDEyNB
...
skiping the whole certificate
...
YaAQAK0TZ14JCLipeAnivAoR+7OsIT9gk6JF+C2fQDkAWd/GX+PPsnSGJvUntoz/
CKCkL+YS/e1kh3EqUMEXYmTKZm9lwDpzZSPVdpRieCqQNtcjXm5R2L8=
-END CERTIFICATE-
-BEGIN CERTIFICATE-
MIIEODCCAyCgAwIBAgIBFTANBgkqhkiG9w0BAQUFADCBtDELMAkGA1UEBhMCQlIx
EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
...
skiping the whole certificate
...
Kr1tz8mC+Wd8WR8ieeWwcEDt7frV1vXHSeqA8n0QwaNWfYneDWqklcr7Z9Z6bu6B
yQfHRF6V/bSFpw6nZkYHZs7JO3w+3wmyJvc7Tg==
-END CERTIFICATE-

[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] init_ws_service::mod_jk.c 
(888): Service protocol=HTTP/1.1 method=GET host=(null) addr=10.8.1.74 
name=www.trt9.gov.br port=8443 auth=(null) user=(null) laddr=10.1.2.62 
raddr=10.8.1.74 
uri=/consignacao/inicial.do;jsessionid=rkx1vvqyIC4B9H24XVEogA**.node1
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] service::jk_lb_worker.c 
(940): service sticky_session=1 id='rkx1vvqyIC4B9H24XVEogA**.node1'
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] service::jk_lb_worker.c 
(962): service worker=node1 route=node1
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
ajp_get_endpoint::jk_ajp_common.c (2579): acquired connection pool slot=0
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (553): ajp marshaling done
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
ajp_service::jk_ajp_common.c (2050): processing node1 with 2 retries
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
ajp_send_request::jk_ajp_common.c (1352): (node1) all endpoints are 
disconnected, detected by connect check (0), cping (0), send (0)
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
jk_open_socket::jk_connect.c (548): trying to connect socket 19 to 
10.1.2.62:8009
[Wed Jan 23 19:35:22 2008][12604:3086853840] [debug] 
jk_open_socket::jk

[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?

2008-01-23 Thread Oberiko
Really?  That's very useful then.  I've been smacking my head trying to figure 
out how to get what I needed (ideally something similar to the Page scope since 
I'm trying to avoid the session scope, but that's not allowed for stateful 
beans) until I just tried the default and it worked.

Thank you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122818#4122818

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122818
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Value is not Valid with

2008-01-23 Thread nickarls
Tried putting debug code in hashCode and equals to see that they are called and 
returning expected results?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122817#4122817

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122817
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iText (PDF) support in Seam

2008-01-23 Thread [EMAIL PROTECTED]
Please open a JIRA issue for the changes.  I have no problem including this 
type of functionality.

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122816#4122816

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122816
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread nickarls
Is FacesContext.getCurrentInstance().getResponseStream() useable?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122815#4122815

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122815
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - inline image email attachment

2008-01-23 Thread sandy_brydon
i'm am resurrecting my old post 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100391#4100391
 which i got little traction (probably because i just hung it off another 
chain).



I am having trouble with how an inline attachment is supposed to work since it 
doesn't seem to be creating a boundary with Content-Type: multipart/related 
around the attachment, it merely relies on the outer multipart/mixed boundary 
defined in the header of the email.

The effect is that my email client (Thunderbird) is treating the image as an 
attachment and is not placing it inline.


  | ...
  | 
  | 
  | ... 
  | 

(the attachment value references a java.net.URL - i doubt this matters, but 
just in case)

everything else appears to be correct:
- the header for the logo:


  | Content-Type: image/gif; charset=ISO-8859-1; name=logo.gif
  | Content-Transfer-Encoding: base64
  | Content-ID: 
  | Content-Disposition: inline; filename=logo.gif  
  | 

- the corresponding img tag:


  |
  | 

is this incorrect? perhaps i have misconfigured something?

jboss-4.2.1.GA
jboss-seam-2.0.0.CR3

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122813#4122813

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122813
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?

2008-01-23 Thread nickarls
Then you are in a temporary conversation and you're done with the bean when you 
are done with the conversation, which is about when the request ends.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122814#4122814

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122814
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?

2008-01-23 Thread Oberiko
Yeah, but I'm not explictly calling @Start or @End on any of my methods.  How 
does Seam determine when I'm finished with this session bean?


  | package org.domain.myProject.session;
  | 
  | import static javax.persistence.PersistenceContextType.EXTENDED;
  | 
  | import java.util.List;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.ejb.Stateless;
  | import javax.persistence.EntityManager;
  | 
  | import javax.persistence.PersistenceContext;
  | 
  | import org.domain.myProject.entity.EmailAddress;
  | import org.domain.myProject.entity.Person;
  | import org.domain.myProject.session.local.EditPersonLocal;
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.contexts.Context;
  | import org.jboss.seam.contexts.Contexts;
  | import org.jboss.seam.faces.FacesMessages;
  | import org.jboss.seam.log.Log;
  | 
  | @Stateful
  | @Name("editPerson")
  | //@Scope(ScopeType.EVENT)
  | public class EditPersonForm implements EditPersonLocal {
  | 
  | @Logger
  | private Log log;
  | 
  | @In
  | FacesMessages facesMessages;
  | 
  | @PersistenceContext(type = EXTENDED)
  | private EntityManager em;
  | 
  | @In(required=false)
  | @Out(scope=ScopeType.PAGE)
  | private Person person;
  | 
  | @In(required=false)
  | @Out(required=false)
  | private EmailAddress emailAddress;
  | 
  | public void addEmail() {
  | person.addEmailAddress(emailAddress);
  | 
  | log.info("Email address " +emailAddress.getUrl() + " Added to 
"+ person.getName());
  | 
  | emailAddress = new EmailAddress();
  | }
  | 
  | public void removeEmail(EmailAddress emailAddress) {
  | log.info("Removing Email address " +emailAddress.getUrl());
  | person.removeEmailAddress(emailAddress);
  | }
  | 
  | public void savePerson() {
  | if (person.getId()!=null)
  | em.merge(person);
  | else
  | em.persist(person);
  | 
  | //Note that the id of our person was generated and populated.  
  | facesMessages.add("Person was saved with an id of "+ 
person.getId());
  | 
  | log.info(person.getName() +" was saved.");
  | }
  | 
  | public void editPerson(Person person) {
  | log.info("Getting Id: " + person.getId());
  | person = (Person) em.createQuery("from Person p where p.id =" 
+person.getId()).getSingleResult();
  | }
  | 
  |  @Destroy @Remove   
   
  |public void destroy() {}
  | 
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122810#4122810

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122810
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread nickarls
Hmm, using a ServletOutputStream os shouldn't make a difference, should it? One 
one think that it's the same code called...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122811#4122811

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam/Portlet Architecture and Deployment

2008-01-23 Thread stephanos
Hi guys,

I am planning to use Seam within a portlet (for the JBoss Portal to be more 
specific). Basically I am just trying to figure how to construct the 
architecture for that.

Should I put all the business logic and persistence stuff into the portlet or 
should (can?) I seperate that stuff into multiple jars? I am thinking about the 
options in regards to performance, ease of delopyment and basically if it 
simply works.

Regards,
Stephan

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122809#4122809

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122809
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Pageflow recurence

2008-01-23 Thread blabno
BTW. If I annotate countryCreator.init method as @Begin then I get :
java.lang.IllegalStateException: begin method invoked from a long-running 
conversation, try using @Begin(join=true) on method: init
This does not give me the clue that I must supply pageflow name :
@Begin(pageflow="addCountry")

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122808#4122808

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122808
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ending default scope SFSB's needed?

2008-01-23 Thread nickarls
Seam should take care of the recycling when the conversation ends. Of course, 
if there are and special cleanups to be made in order to release special 
resources, you can use a @Destroy method

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122806#4122806

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Pageflow recurence

2008-01-23 Thread blabno
I have following pages :
1)/locations/browseLocations.jspx
2)/locations/addCountry.jspx
3)/locations/complete.jspx
I want to add country to DB. So I place button on browseLocations.jspx :

Now the page flow should start. But when there is a problem during 
countryCreator.addCountry method invocation, then I want to stay on 
addCountry.jspx but if I write transition to /locations/addCountry.jspx then I 
get Exception : 
ERROR [SeamPhaseListener] uncaught exception
  | java.lang.IllegalStateException: begin() called from long-running 
conversation, try join=true

addCountry.jpdl.xml

  | http://jboss.com/products/seam/pageflow";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://jboss.com/products/seam/pageflow 
http://jboss.com/products/seam/pageflow-2.0.xsd";
  | name="addCountry">
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
pages.xml

  |
  | 
  | 
  | 

Now, if I cut out everything from pages.xml then there is no conversation at 
all, and I cannot add anything, nor can display FacesMessages.
Is there other solution than introducing  and inserting method 
annotated with @Begin(pageflow="addCountry") in countryCreator bean ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122805#4122805

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122805
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to terminate a running servlet from JMX?

2008-01-23 Thread ramboid
How can stop, undeploy, start, etc one servlet that runs in a context?  I can 
stop, start, undeploy, deploy, etc all the servlets of a context via the JMX 
concole by using the MainDeployer MBean operations.  I would like to carry out 
these operations in just one servlet of the context.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122804#4122804

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122804
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to download a file via Seam& JSF,

2008-01-23 Thread squ1rr3l
Thanks for the reply.  Is that code working for you?  Because that's exactly 
what I tried, but I get the 

  | Servlet response already use stream, Writer not possible 
  | 

error when I do that.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122803#4122803

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122803
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Scaling BPEL processes

2008-01-23 Thread meghanai_99
Hello,

We have been using JBPM-BPEL for a while now and have developed number of BPEL 
processes. As we move forward we expect a lot more getting deployed to single 
instance of JBoss server. 

Currently each BPEL process has corresponding 'war' file. When we go beyond 
certain number of war files, JBoss starts giving PermGenError. So we are 
looking into solutions to scale BPEL processes. Has anyone come accross this 
situation? Any suggestions?

Thanks,
Meghana

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122802#4122802

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122802
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Ending default scope SFSB's needed?

2008-01-23 Thread Oberiko
Hello.

If I have a stateful session bean in the default (i.e. undeclared) conversation 
scope, do I need (or is it good practice) to end it somehow?  Or can I just let 
Seam take care of it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122801#4122801

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122801
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Displaying dataTable row numbers with uiComponent, what

2008-01-23 Thread Oberiko
Hmm... I was hoping to avoid binding and creating additional components if 
possible.  It's not a highly needed feature, and I think the solution on that 
thread outweighes the benefits.

Still, nothing about the uiComponent?  That looked like the nice and simple 
solution I was looking for.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122800#4122800

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122800
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Using rich:datascroller With Seam and Hibernate Pagination

2008-01-23 Thread neilac333
I prefer to handle all my pagination on the server with Hibernate, but I also 
want to use the  component. My Seam component "knows" the 
following information:

1) The total number of page results
2) The current page number of results
3) The desired number of results per page
4) The search results for the current page

For example, let's say I search for something that returns 43 results, and the 
user wants 10 results per page. The component knows that there are 5 total 
pages, that there are 10 results per page, and which results go with which page 
(page 0 has results 0-9 and page 4 has results 40-42 for example). The 
component also serves out the results one page at a time.

All the rich:datascroller needs to know is that it is getting one page of five, 
but it can retrieve information about the entire result set (like total pages) 
from the Seam component. 

How do I use rich:datascroller with the information I have in my Seam component 
to facilitate pagination?  Is this even possible without essentially writing my 
own component?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122798#4122798

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122798
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: NotContextException when I deploy ejb3 and ejb2 in the s

2008-01-23 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : somebody knows why the NamingServer class can get 
an instance Of org.jnp.interfaces.MarshalledValuePair instead an instance of 
class Reference, when i pass the jndiname of my session bean 
("MySessionBeanName/remote"). That's is the problem, because this class is not 
an instance of Reference and in the lookup method of NamingServer class throw 
an NotContextException when the object obtained is not an instance of Reference 
class.
  | 
  | Somebody have an idea about it?
  | 
  | Thanks

Corrected :)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122799#4122799

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: NotContextException when I deploy ejb3 and ejb2 in the s

2008-01-23 Thread [EMAIL PROTECTED]
somebody knows why the NamingServer class can get an instance Of 
org.jnp.interfaces.MarshalledValuePair instead when i pass the jndiname of my 
session bean ("MySessionBeanName/remote"). That's is the problem, because this 
class is not an instance of Reference and in the lookup method of NamingServer 
class throw an NotContextException when the object obtained is not an instance 
of Reference class.

Somebody have an idea about it?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122797#4122797

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122797
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Displaying dataTable row numbers with uiComponent, what

2008-01-23 Thread ristretto
Check out this post
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=105780

Last post in that thread.  Using binding as described worked for me.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122796#4122796

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122796
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: getInstance causing a ClassCastException

2008-01-23 Thread jrwsampson
Thanks - works like a champ.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122794#4122794

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122794
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Dispatch WS-Security Bug

2008-01-23 Thread cavani
I was trying to use WS-Security with JAX-WS Dispatch from version 2.0.2 but the 
response message returned still encrypted (it works with generated client). 
After some debug and code reading, I think that I figured it out.

On DispatchImpl, the code is:


  | (...)  msgContext.put(MessageContextJAXWS.MESSAGE_OUTBOUND_PROPERTY, 
Boolean.TRUE);
  |   
  |   QName portName = epMetaData.getPortName();
  |   try
  |   {
  |  // Call the request handlers
  |  boolean handlerPass = callRequestHandlerChain(portName, 
handlerType[0]);
  |  handlerPass = handlerPass && callRequestHandlerChain(portName, 
handlerType[1]);
  |  handlerPass = handlerPass && callRequestHandlerChain(portName, 
handlerType[2]);
  | 
  |  // Handlers might have replaced the message
  |  reqMsg = (SOAPMessageImpl)msgContext.getSOAPMessage();
  | 
  |  MessageAbstraction resMsg = null;
  |  if (handlerPass)
  |  {
  | Map callProps = new HashMap(getRequestContext());
  | EndpointInfo epInfo = new EndpointInfo(epMetaData, 
targetAddress, callProps);
  | resMsg = getRemotingConnection().invoke(reqMsg, epInfo, false);
  | 
  | // Call the  response handler chain, removing the fault type 
entry will not call handleFault for that chain 
  | handlerPass = callResponseHandlerChain(portName, 
handlerType[2]);
  | faultType[2] = null;
  | handlerPass = handlerPass && callResponseHandlerChain(portName, 
handlerType[1]);
  | faultType[1] = null;
  | handlerPass = handlerPass && callResponseHandlerChain(portName, 
handlerType[0]);
  | faultType[0] = null;
  |  }
  | (...)
  | 

But on CommonClient / ClientImpl, the similar code block is a bit different, 
but, essentially, the direction change after invocation.


  | (...)
  |   DirectionHolder direction = new DirectionHolder(Direction.OutBound);
  | 
  |   // Get the order of pre/post handlerchains 
  |   HandlerType[] handlerType = new HandlerType[] { HandlerType.PRE, 
HandlerType.ENDPOINT, HandlerType.POST };
  |   HandlerType[] faultType = new HandlerType[] { HandlerType.PRE, 
HandlerType.ENDPOINT, HandlerType.POST };
  | 
  |   QName portName = epMetaData.getPortName();
  |   try
  |   {
  |  // Get the binding from the provider
  |  CommonBinding binding = 
(CommonBinding)getCommonBindingProvider().getCommonBinding();
  |  binding.setHeaderSource(this);
  | 
  |  // Create the invocation and sync the input parameters
  |  epInv = new EndpointInvocation(opMetaData);
  |  epInv.initInputParams(inputParams);
  | 
  |  // Set the required outbound properties
  |  setOutboundContextProperties();
  | 
  |  // Bind the request message
  |  MessageAbstraction reqMessage = 
binding.bindRequestMessage(opMetaData, epInv, unboundHeaders);
  | 
  |  // Add possible attachment parts
  |  addAttachmentParts(reqMessage);
  | 
  |  // Call the request handlers
  |  boolean handlerPass = callRequestHandlerChain(portName, 
handlerType[0]);
  |  handlerPass = handlerPass && callRequestHandlerChain(portName, 
handlerType[1]);
  |  handlerPass = handlerPass && callRequestHandlerChain(portName, 
handlerType[2]);
  | 
  |  // Handlers might have replaced the message
  |  reqMessage = msgContext.getMessageAbstraction();
  | 
  |  if (handlerPass)
  |  {
  | String targetAddress = getTargetEndpointAddress();
  | 
  | // Fall back to wsa:To
  | AddressingProperties addrProps = 
(AddressingProperties)msgContext.get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND);
  | if (targetAddress == null && addrProps != null && 
addrProps.getTo() != null)
  | {
  |AddressingConstantsImpl ADDR = new AddressingConstantsImpl();
  |String wsaTo = addrProps.getTo().getURI().toString();
  |if (wsaTo.equals(ADDR.getAnonymousURI()) == false)
  |{
  |   try
  |   {
  |  URL wsaToURL = new URL(wsaTo);
  |  log.debug("Sending request to addressing destination: 
" + wsaToURL);
  |  targetAddress = wsaToURL.toExternalForm();
  |   }
  |   catch (MalformedURLException ex)
  |   {
  |  log.debug("Not a valid URL: " + wsaTo);
  |   }
  |}
  | }
  | 
  | // The endpoint address must be known beyond this point
  | if (targetAddress == null)
  |throw new WSException("Target endpoint address not set");
  | 
  | Map callProps = new HashMap(getRequestContext());
  | E

[jboss-user] [JBoss Seam] - Re: How to do a redirect to something *not* a viewId?

2008-01-23 Thread [EMAIL PROTECTED]
I think there is already a JIRA feature request for that, search. And if there 
isn't please open one.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122790#4122790

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122790
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Topic Subscription only works with JBoss Libraries?

2008-01-23 Thread samdoyle
Ah thanks Norman, I assume this is where this entry comes into play?


  | 
  | topic/chatroomTopic
  | 
  | 

The only thing I have set in my components.xml is the jndi-pattern


  | 
  | 

Thanks, S.D.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122791#4122791

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122791
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: FAILED CONFIGURATION: @BeforeClass init

2008-01-23 Thread vikramchhetryy
seam-2.0.1.CR1
jboss-4.2.2.GA 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122787#4122787

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122787
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - SOLVED: Re: NullPointerException @ DatabaseServerLoginModule

2008-01-23 Thread jahebe
So it would seem that you need to enable 

  | 
  | 

in jboss-web.deployer/server.xml!

Even though there's only one web-app in the EAR... weird.

Anyway - now it's OK, thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122785#4122785

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122785
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Some explanation on SubscriptionManager endpoint and Subscri

2008-01-23 Thread asouza_2000
Hi, guys

I'm recently implementing some notifications using ws-eventing with 
jbossws-2.0.1-SP2.

I've got some doubts and maybe any of you guys could help me out.

I don't understand why I need to declare a subscription manager endpoint. 
If JBoss already has a Subscription Manager MBean, and if its really necessary 
for my Event Source to work, JBoss should provide it out-of-the-box.

Plus, I already found 2 minor bugs working with it. So... do you guys think 
it's really safe for me to put it into production ? Or should I design a 
different solution as this technology gets more "grown up" ?

If any of you guys have the time to explain this little somethings to me. I'd 
appreciate it.

Thanks in advance.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122783#4122783

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122783
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Cannot build JBPM source from CVS

2008-01-23 Thread clandestino_bgd
Hi all, problem is in the subject.
My environment is:
Ubuntu 7.04
JDK Sun 1.5.0 
ANT 1.7.0

I have followed instructions from jbpm.3/build/readme file.
All dependencies are downloaded in my user.home/jbpm/repository folder.

I have checked out clean copy.
In my local build.properties, I override only software.installation.dir entry.

I am posting trace below.
Two things more:
1. I do not understand is how it is possible that GPD 3.1.2 is released 2 weeks 
ago, but in jbpm.3/build/build.properties stands: 
lib.jbpm.designer.version=3.1.1
2. There is only zip archive of latest eclipse for windows in repository,  
there is no such for linux. Since there is difference only in couple of files, 
wouldn't it be useful to include it, too?


  | rget.eclipse:
  | [mkdir] Created dir: /home/agaton/projects/jbpm.3/eclipse
  | [touch] Creating 
/home/agaton/projects/jbpm.3/eclipse/eclipse-SDK-3.3.1.1-win32.zip.txt
  | [touch] Creating 
/home/agaton/projects/jbpm.3/eclipse/GEF-SDK-3.3.1.zip.txt
  | [touch] Creating 
/home/agaton/projects/jbpm.3/eclipse/emf-sdo-xsd-SDK-2.3.1.zip.txt
  | [touch] Creating 
/home/agaton/projects/jbpm.3/eclipse/wtp-sdk-R-2.0.1-20070926042742.zip.txt
  | [touch] Creating 
/home/agaton/projects/jbpm.3/eclipse/dtp-sdk_1.5.1.zip.txt
  | [unzip] Expanding: 
/home/agaton/jbpm/repository/eclipse/sdk/3.3.1.1/eclipse-SDK-3.3.1.1-win32.zip 
into /home/agaton/projects/jbpm.3
  | [unzip] Expanding: 
/home/agaton/jbpm/repository/eclipse/webtools/2.0.1/wtp-sdk-R-2.0.1-20070926042742.zip
 into /home/agaton/projects/jbpm.3
  | [unzip] Expanding: 
/home/agaton/jbpm/repository/eclipse/gef/3.3.1/GEF-SDK-3.3.1.zip into 
/home/agaton/projects/jbpm.3
  | [unzip] Expanding: 
/home/agaton/jbpm/repository/eclipse/emf-sdo-xsd/2.3.1/emf-sdo-xsd-SDK-2.3.1.zip
 into /home/agaton/projects/jbpm.3
  | [unzip] Expanding: 
/home/agaton/jbpm/repository/eclipse/dtp/1.5.1/dtp-sdk_1.5.1.zip into 
/home/agaton/projects/jbpm.3
  |  [copy] Copying 1 file to /home/agaton/projects/jbpm.3/eclipse/plugins
  | 
  | prepare.workspace:
  | [mkdir] Created dir: 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/features
  | [mkdir] Created dir: 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/plugins
  |  [copy] Copying 4 files to 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/features/org.jbpm.gd.jpdl.feature
  |  [copy] Copying 497 files to 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/plugins/org.jbpm.gd.jpdl
  | 
  | run-eclipse-plugin-builder:
  |  [java] Buildfile: mainTargets.xml
  |  [java]
  |  [java] main:
  |  [java]
  |  [java] preBuild:
  |  [java]
  |  [java] preSetup:
  |  [java]  [echo] doing preSetup
  |  [java]
  |  [java] getMapFiles:
  |  [java]  [echo] doing getMapFiles
  |  [java]  [copy] Copying 1 file to 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/workspace/maps
  |  [java]
  |  [java] postSetup:
  |  [java]  [echo] doing postSetup
  |  [java]
  |  [java] fetch:
  |  [java]
  |  [java] generate:
  |  [java]
  |  [java] preGenerate:
  |  [java]  [echo] doing preGenerate
  |  [java]  [echo] baseLocation is /home/agaton/projects/jbpm.3/eclipse
  |  [java]
  |  [java] allElements:
  |  [java]
  |  [java] init:
  |  [java]
  |  [java] generateScript:
  |  [java] [eclipse.buildScript] Some inter-plug-in dependencies have not 
been satisfied.
  |  [java] [eclipse.buildScript] Bundle org.jbpm.gd.jpdl:
  |  [java] [eclipse.buildScript]   Missing required plug-in 
org.jbpm.gd.common_0.0.0.
  |  [java]
  |  [java] BUILD FAILED
  |  [java] 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/mainTargets.xml:23:
 The following error occurred while executing this line:
  |  [java] 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/mainTargets.xml:63:
 The following error occurred while executing this line:
  |  [java] 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/customTargets.xml:8:
 The following error occurred while executing this line:
  |  [java] 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/genericTargets.xml:63:
 Unable to find plug-in: org.jbpm.gd.jpdl_0.0.0. Please check the error log for 
more details.
  |  [java]
  |  [java] Total time: 1 second
  |  [java] Java Result: 13
  | 
  | create.manifest:
  | [mkdir] Created dir: 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/manifest
  | 
  | build-feature:
  | [mkdir] Created dir: 
/home/agaton/projects/jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.build/target/temp
  |   [get] Getting: http://repository.jboss.com/licenses/JBossORG-EULA.txt
  |   

[jboss-user] [JBoss Seam] - How to do a redirect to something *not* a viewId?

2008-01-23 Thread Toby451
We are applying the URLRewriteFilter to get nice and SEO-friendly URLs. 

At some places we would like to be able to do a redirect to the nice URL such 
as "/foo-bar" instead of the viewID... To be specific we want that almost all 
of the time since we don't want that the user is able to escape the realm of 
nice URLs. 

If we put that in a redirect-tag in the pages.xml seam add ".seam" as a suffix 
since it ... somehow treat "/foo-bar" as a viewid. 

So my question is: How can I redirect to ... whatever I like? 

/Tobias

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122781#4122781

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122781
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NonUniqueObjectException and EntityManager

2008-01-23 Thread blabno
Abrakadabra !

I have stateful CountryCreatorBean, that has a reference to stateless 
LocationBean. When CountryCreatorBean.addCountry() is called then in the body 
of that method LocationBean.addCountry(country) is called. Country variable is 
injected into CountryCreatorBean by the SEAM, by the way.
It is responsibility of LocationBean, who plays role of location manager, to 
check if entity already exists in DB. If such a country already exists then 
some exception should be thrown by LocationBean. 

Now is the fun part. At first I've decided to use 
org.hibernate.NonUniqueObjectException, since it fits the purpose perfectly. Of 
course in CountryCreatorBean.addCountry method I prepaired try/catch for such 
an ocasion. But guess what ! Transaction gets rolled back and exception is not 
caught, and web page gets filled with stack trace.
After a while I figured that in stead of org.hibernate.NonUniqueObjectException 
the javax.ejb.EJBTransactionRolledbackException gets to try/catch block.

Remember to read stack trace carefully ! By the way, what do you think about 
such approach to move persistance to stateless bean ? I chose this way to write 
business logic independently from web-framework.

@Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("countryCreator")
  | public class CountryCreatorBean implements CountryCreatorLocal {
  | 
  | @In(create = true)
  | private Country country;
  | @EJB
  | private LocationLocal locationBean;
  | 
  | public void addCountry() {
  | try {
  | locationBean.add(country);
  | } catch (javax.ejb.EJBTransactionRolledbackException exc) {
  | System.out.println("RuntimeException caught !"+exc);
  | 
FacesMessages.instance().add("#{messages.countryAlreadyExists}");
  | }
  | }
  | 
  | @Remove
  | public void destroy() {
  | }
  | }

@Stateless
  | public class LocationBean implements LocationLocal {
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | public void add(Country country) throws NonUniqueObjectException {
  | if( em.find(Country.class,country.getId()) == null )
  | em.persist(country);
  | else throw new 
NonUniqueObjectException(country.getId(),Country.class.getCanonicalName());
  | }
  | }

And one more thing, nobody noticed stupid condition from previous post

if( em.find(Country.class,country.getId()) != null )//this triggers 
exception
  | em.persist(country);

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122780#4122780

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122780
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How Do I Run JBoss Messaging TestSuite in Q1 2008

2008-01-23 Thread cmagidcmagid
Thank you so much for your reply. 

I am following the directions at url: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingBuildInstructions. BTW I 
added the workaround for  je-3.2.44.jar.   I get up to the step 3 where I 
execute: ./build.sh report and get the error I reported.From step 1. I 
checked out the head yesterday.

I will need more clarification as to the target of the jbm-beans.xml file you 
mentioned above.  I can not find that file on my system.  I am guessing that 
these instructions are out of date and I will need to install the AS before I 
can get the tests working.  I am including the stacktrace and the FIT test 
results below.  thnx in advance.



I am not sure where the embeded Exceptions end so I
may be providing more than the single trace you requested.

[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.015 sec
[junit] Running 
org.jboss.messaging.core.remoting.test.unit.ConnectorRegistryTest
[junit] NioProcessor-4 11:50:42,062 WARN  [RequestResponseFilter] 
[localhost/127.0.0.1:9090] Unknown request ID '0' for the response message. 
Timed out already?: PACKET[type=TEXT, version=1, correlationID=0, 
targetID=NO_ID_SET, callbackID=NO_ID_SET, text=tuoemiThtiWgnikcolBdneStset]
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
[junit] Running 
org.jboss.messaging.core.remoting.test.unit.PacketDispatcherTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.015 sec
[junit] Running 
org.jboss.messaging.core.remoting.test.unit.ServerLocatorTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0 sec
[junit] Running 
org.jboss.messaging.core.remoting.wireformat.test.unit.PacketTypeTest
[junit] Tests run: 44, Failures: 0, Errors: 0, Time elapsed: 0.078 sec
[junit] Running org.jboss.messaging.core.tx.test.unit.MessagingXidTest
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.016 sec
[junit] Running org.jboss.test.messaging.jms.AcknowledgementTest
[junit] main 11:50:42,296 INFO  [AcknowledgementTest] 
### Start IN-VM test: 
testPersistentMessagesForTopicDropped
[junit] main 11:50:43,671 INFO  [JBMBootstrapServer] JBM Server Started
[junit] main 11:50:43,765 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. 
Using -53e0bd4e:fd4:47977063:1
[junit] main 11:50:43,812 INFO  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service 
com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4052
[junit] main 11:50:43,812 INFO  [arjLogger] TransactionStatusManagerItem - 
host: 172.31.66.178 port: 4052
[junit] main 11:50:43,828 INFO  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - 
TransactionStatusManager started on port 4052 with service 
com.arjuna.ats.arjuna.recovery.ActionStatusService
[junit] main 11:50:44,171 INFO  [ServerManagement] Attempting to create 
local server 0
[junit] main 11:50:44,187 INFO  [LocalTestServer] Deleted dir: C:\Documents 
and Settings\Charles Magid\bdbje\env deleted: false
[junit] main 11:50:45,343 ERROR [AbstractKernelController] Error installing 
to Instantiated: name=MinaService state=Described
[junit] java.lang.IllegalArgumentException: No enum const class 
org.jboss.messaging.core.remoting.TransportType.tcp
[junit] at java.lang.Enum.valueOf(Enum.java:196)
[junit] at 
org.jboss.reflect.plugins.ValueConvertor.convertValue(ValueConvertor.java:130)
[junit] at 
org.jboss.reflect.plugins.ClassInfoImpl.convertValue(ClassInfoImpl.java:485)
[junit] at 
org.jboss.beans.metadata.plugins.StringValueMetaData.getValue(StringValueMetaData.java:107)
[junit] at 
org.jboss.kernel.plugins.config.Configurator.getParameters(Configurator.java:857)
[junit] at 
org.jboss.kernel.plugins.config.Configurator.getConstructorJoinPoint(Configurator.java:186)
[junit] at 
org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getConstructorJoinPoint(AbstractKernelConfigurator.java:110)
[junit] at 
org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:51)
[junit] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:137)
[junit] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:47)
[junit] at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
[junit] at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
[junit] at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
[junit] a

[jboss-user] [JBoss Seam] - Re: s:decorate and javaScript update ?

2008-01-23 Thread enda
I know that it is not a javaScript variable that is more than obvious ;D. 

I was trying to find a way for client side validation as trinidad offers. 

I read in JIRA that Gavin agreed with client side validation in Seam, so I am 
curious how to ;D

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122778#4122778

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Force rescan for .war deployment.

2008-01-23 Thread dmfarb
Thanks, that seems to work, although why it doesn't work any longer to just 
drop the .war in the deploy directory is a question for another day.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122772#4122772

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122772
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Force rescan for .war deployment.

2008-01-23 Thread dmfarb
Dropping a .ear in the directory works fine... 

Well, its all magic anyway. Must be the phase of the moon or something

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122773#4122773

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122773
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to start the JBoss Server on Mac OS X.

2008-01-23 Thread chrisrjcox
Thank you PeterJ and itsme.

With your help I have managed to start and test my JBoss Installation!

After running the chmod a+x *.sh command (from the bin directory)

I ran the following:

./run.sh -c jbpm (I'm using the JBoss jBPM installation)

And it works.

Thank you so much, I'm not sure why this information is not included in the 
installation guide, but now its in the Forum, I hope others can use this thread.

Thanks again. Your both Stars :)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122776#4122776

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122776
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: ManagedConnectionFactory.setLogger

2008-01-23 Thread vickyk
"iit" wrote : If I cannot disable it then it's a bug in JBoss because once a 
logger has been set
I don't see anything going against JCA specs here ,  this can be as the feature 
request .


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122774#4122774

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122774
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: Destroying connection that could not be successfully mat

2008-01-23 Thread vickyk
"daphnaw" wrote : 
  | What did you mean by "these connections are already matched " ? Where are 
they matched? Could this be the problem?
They are matched before the free connection is taken from the subpool .
   // Determine the pool key for this request
  |  boolean separateNoTx = false;
  |  if (noTxSeparatePools)
  | separateNoTx = clf.isTransactional();
  |  Object key = getKey(subject, cri, separateNoTx);
  |  SubPoolContext subPool = getSubPool(key, subject, cri);
  |  
  |  InternalManagedConnectionPool mcp = subPool.getSubPool();
Here is the code 
http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss/resource/connectionmanager/JBossManagedConnectionPool.java

The MCF's matchManagedConnection(..) should be implemented properly .



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122771#4122771

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122771
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: HotDeploy from Eclipse work folder

2008-01-23 Thread PeterJ
No, you cannot define two different deployment scanners.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122768#4122768

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122768
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: HotDeploy from Eclipse work folder

2008-01-23 Thread frank1russo
Sorry. I meant two different DeploymentScanners...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122767#4122767

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122767
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: HotDeploy from Eclipse work folder

2008-01-23 Thread frank1russo
Is it possible to define to different DeploymentScanner mbeans?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122766#4122766

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122766
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Pageflow hides stacktrace

2008-01-23 Thread Kruno
If I understood you correctly this thing can not be solved.
It is very inconvenient thing for slowing those especially nasty bugs that can 
not be reproduced easily, 
Would it make any difference if I post request on JIRA for JBPM.

Anyway thank you for your trouble.
Regards Kruno.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122765#4122765

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122765
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to start the JBoss Server on Mac OS X.

2008-01-23 Thread PeterJ
You have to first change the permissions on run.sh to make it executable.  Try 
this (from the bin directory):

chmod a+x *.sh

Then try running it again:

./run.sh

By the way, su is the 'switch user' command used to switch to any user. In your 
case, you asked to switch to the user whose name is "./run.sh" and the system 
asked you for the password for that user. Not what you intended. To run 
something as 'root', you could enter:
su
(enter the password for root)
./run.sh

or do the following:

sudo ./run/sh
(enter your password)

Of course, to use sudo you have to first configure it (Ubuntu does this 
automatically, not sure if OS/X does)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122764#4122764

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122764
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - connection factories and JMS

2008-01-23 Thread sagimann
Hi,
I've starting using JMS over JBoss not long ago, and I've been reading the docs 
over and over. Something is still not clear to me: when I send messages, I can 
configure a  and reference it in my code/jboss.xml, so 
that messages I send go through that connection factory... BUT: where do I 
specify a connection factory for INCOMING messages?

Or maybe I don't understand something about JBoss architecture...
thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122763#4122763

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122763
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Force rescan for .war deployment.

2008-01-23 Thread PeterJ
You can manually deploy an application (including a war file), by invoking the 
deploy method on the jboss.system:service=MainDeployer mbean.  You can do this 
through the JMX Console or twiddle.  (There are two deploy() methods, you can 
use either one but the one that takes a String is probably a little simpler. 
Pass it the full path name of the war file.)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122761#4122761

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122761
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: JBoss starts but no access

2008-01-23 Thread PeterJ
Another thought.

Get the listdlls utility from sysinternals 
(http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ListDlls.mspx).
 Start JBossAS, open a second command prompt, enter:

listdlls java

and post the output.  This will provide some information on the winsock dll 
being used.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122760#4122760

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122760
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: HotDeploy from Eclipse work folder

2008-01-23 Thread PeterJ
You could set up additional deploy directories by adding to the URLs attribute 
in the last mbean in server/xxx/data/jboss-service.xml. (See the comments in 
that file for instructions)

The only difficulty is that either the archive file or the directory must end 
with .war or else the hot deployer will not know what it is that it is supposed 
to deploy.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122758#4122758

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122758
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: programmatic starting a list of conversations

2008-01-23 Thread tschnoelzer
One can start multiple "long" running conversations  in seam using the API. But 
I have to start simple "short" conversations that are managed in the workspace 
manager / switcher. Here i miss the API to do this...

:-(

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122757#4122757

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122757
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to start the JBoss Server on Mac OS X.

2008-01-23 Thread chrisrjcox
Hi,

Thanks for the fast reply :)

I have just tried the below command in terminal from within the bin directory.

host46:bin Chris$ ./run.sh
-bash: ./run.sh: Permission denied

host46:bin Chris$ su ./run.sh
Password:
su: Sorry

Then tried the below from within the server directory.

host46:server Chris$ ./start.sh
-bash: ./start.sh: Permission denied

host46:server Chris$ su ./start.sh
Password:
su: Sorry

None seam to work, I assume su ./start.sh would run the application as a 
superuser as the ./start.sh replies with Permission denied

Any clues?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122755#4122755

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122755
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Logger is null

2008-01-23 Thread kasim

Not sure why this is happening.

I upgraded our app from Seam 1.2 to Seam 2.0. 

Went through the seam2migration document, adjusting items as needed.

Now for some reason @Logger does not inject anything, so the log is null and 
hence throwing lots of NPE exceptions.

Any ideas as to why it could be? I am sure its user error, but other items are 
being injected fine. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122754#4122754

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122754
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - JBoss 4.2.2.GA + JDK 1.6.0_03

2008-01-23 Thread apinto
Hi there!

I'm having some problems with the standard AOP distribution that comes with 
JBoss 4.2.2.GA running on JDK 1.6.0_03: there are no interceptions. I can see 
the jboss-aop.xml deployment, but when the methods to intercept are invoked, 
nothing happens. Can anyone help me please? Thanks a lot in advance.

AP

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122753#4122753

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122753
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >