[jboss-user] [JBoss Portal] - Problems using jsp in Jboss Portal

2008-06-26 Thread [EMAIL PROTECTED]
Hi i am experimenting with that jsp example helloworldjspportlet.war that is 
provided for jboss portal 2.6.5
and have problems with quite basic things. In the java portlet i can see that 
there are jsp pages
used for each of those 3 modes (View, Edit and Help), view.jsp, view2.jsp, 
edit.jsp and help.jsp
So i figured i should be able to use other jsp pages like that (forex 
index.jsp) but the portal just dont seem to except anything else but view.jsp 
and view2.jsp in view mode so then i simply take a copy of view.jsp and change 
text in it i still get the old view.jsp. And yes i am sure i am building and 
deploying stuff correctly, i was actually been able to change context of 
view.jsp to
something else but not to use index.jsp or something instead.
 
 rRequest.setAttribute("yourname", sYourName);
 PortletRequestDispatcher prd = 
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/index.jsp");
 prd.include(rRequest, rResponse);
 
Another problem i experienced is that i dont seem to be able to bundle images 
in the same .war
When i use http://localhost:8080/portal/cotent/default/> way of 
refering to the picture then no problem
but if i place the picture in the same map in the .war as the jsp page and 
directly refer to it then no, it wont find it.
 
I am using Jboss Portal 2.6.5 GA
 
Any Experiences, Ideas on that matter ?

/Alexander

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

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


[jboss-user] [JBoss jBPM] - Re: How to deploy a BPEL process using the APIs?

2008-06-26 Thread jsports
I have made a mistake.
The following is right.
jbpm-bpel-1.1.GA\examples\common\bpel-build.xml.

deploy.process>deploymentservlet--->jbpm processdefination 
deploy-->webmodulebuilder 



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

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


[jboss-user] [JBoss Tools (users)] - Re: JBT 2.1.1.GA doesn't work to me

2008-06-26 Thread [EMAIL PROTECTED]
recent commits have broken some archives unit tests. they will be looked into

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

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


[jboss-user] [JBoss Tools (users)] - JBT 2.1.1.GA doesn't work to me

2008-06-26 Thread FabBoco
Hi,

I have been trying jboss tools 2.1.1.GA and nightly builds with Eclipse 3.x and 
Ganymede (CR and 3.4.0), always the same result: only the jar is partially 
created (only META-INF empty directory).

These is my project packages file


  | 
  | 
  | 
  |
  |   
  |  
  |   
  |   
  |  
  |   
  |   
  |  
  |   
  |   
  |  
  | 
  |  
  |  
  |   
  |   
  |  
  |   
  |
  |
  |   
  |  
  |   
  |   
  |  
  | 
  |
  | 
  | 
  |
  | 
  | 
  |  
  |  
  |   
  |   
  |  
  |   
  |
  |
  |   
  |  
  |   
  |   
  |  
  |   
  |   
  |  
  |   
  |   
  |  
  | 
  |  
  |  
  |   
  |   
  |  
  | 
  |  
  |  
  | 
  |  
  |  
  | 
  |  
  |  
  | 
  |  
  |  
  | 
  |  
  |  
  |   
  |   
  |  
  |   
  |
  |
  | 
  | 

The same project file works well with JBT 2.0.1.GA (jar, war and ear are 
created).

Any help or suggestion ?

Thank you

Fab.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployment Problem -- Unable to replace existing file

2008-06-26 Thread Tarch82
"rweed" wrote : 
  | I had the file locking issue on Windows with 5.0.0.beta4, so I tried the 
Linux version and there is no locking problem there.
  | 
  | JBoss goes through the undeploy/deploy process, BUT it is still accessing 
the old classes. SO, under Linux, you still need to restart the server to 
effect your changes even without the file locking issue.
  | 

I have the same problem of rweed with Linux...this is quite annoying, mainly 
because of the long start time. Is there some known workaround?

Thank you in advance,
bye Tarch!

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

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


[jboss-user] [JBoss jBPM] - Re: Jbpm-jpdl failed to launch login console in JBoss-4.0.2G

2008-06-26 Thread lblaauw
Hi,

Seems to me you have the wrong jdom/dom4j on the classpath somewhere...

Regards,
Leo

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

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


[jboss-user] [JNDI/Naming/Network] - Re: How to Access EJB over HTTP in remote machine?

2008-06-26 Thread ritesh163
Thank you for your suggestion and now I am trying on it. If I find any problem 
I will inform you. Hope you will cooperate with me. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - [JBoss 4.2.2GA] Flat file or SQLite as Default

2008-06-26 Thread klapcio
Hi folks,

After greping thru the Docs and Wiki I've found just nothing how to set a flat 
file (or SQLite) as DefaultDS. Is it possible? How to make it ?

Thnx in advance.

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

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


[jboss-user] [Beginners Corner] - maven 2 and the jboss jars

2008-06-26 Thread mbreuer
I am developing against several jboss servers, e.g. 4.0.3SP1 or 4.2.2.GA.
While using maven it's very tricky to handle the correct classpath. Is there a 
way to say maven "use all client jar's coming with server release x.y.z"?

I searched repository.jboss.org for dependencies. It seems there's no generic 
structure. Any jboss release uses a different structure, also often only one 
version is supported.
My need is a pom-dependency, which collects all necessary jars. The pom should 
be referenced by the jboss version.

Any ideas?

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

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


[jboss-user] [JBoss Tools (users)] - Re: Thi first impressions whith Ganimade - ERROR

2008-06-26 Thread krasig
I'm using the  night build from June 26 2008

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

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


[jboss-user] [Beginners Corner] - Re: Implementing POST metod with RESTEasy

2008-06-26 Thread vivekmk2006
@RequestParameter 
Long userId;

You need getter and setter methods in ur action class or in its interface if u 
have an interface.

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

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


[jboss-user] [JBoss Tools (users)] - Re: deployment error 404

2008-06-26 Thread bmuralirao1980
ok it worked thanks.


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

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


[jboss-user] [JBoss Portal] - Forgot password and New Registration

2008-06-26 Thread shankarkhanna
Can i seperate New registration and Forgot password option from one User 
Identity Portlet to two diffrent portlets? 

So that i can place forgot password in one page and new registration in other 
page?

Or can i use same protlet but having different views for different pages?

Please help.

Thanks
Shankar

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

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


[jboss-user] [JBoss Portal] - WSRP: images, css, and javascript from ICEfaces not coming a

2008-06-26 Thread Lightguard
After going back through the WSRP v1 spec and seeing 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102961 I'm thinking 
this is a problem in ICEfaces, where they're not using 
response.createRenderURL().  The portal that I'm trying to remote is actually a 
seam and ICEfaces portlet, so I'm quite sure how urls that are put into the 
facelets templates are handled, but I'll take it one step at a time.

I assume Chris would know if this is an ICEfaces problem or something within 
JBoss Portal.  Thanks for any help anyone has to offer.

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

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


[jboss-user] [EJB 3.0] - Re: When will be JBoss EJB 3.1 implementation ?

2008-06-26 Thread grdzeli_kaci
Thank you very much jaikiran.

this is exactly what i needed.

___
Regards,
Paata Lominadze.
Magticom LTD.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Sub Folder is not supporting .xhtml(seam)

2008-06-26 Thread vivekmk2006
Hi Peter Johnson ,
   
   Thanks for your replay first.I didnt understand what you are 
saying.Bellow is my we.xml. Can you please help me again? 

  
http://java.sun.com/xml/ns/javaee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; 
 version="2.5">




org.richfaces.SKIN
blueSky

 
   

   
  org.jboss.seam.servlet.SeamListener
   


Seam Filter
org.jboss.seam.servlet.SeamFilter



Seam Filter
/*


   
  Seam Resource Servlet
  org.jboss.seam.servlet.SeamResourceServlet
   

   
  Seam Resource Servlet
  /seam/resource/*
   
   
   
   
   
  facelets.DEVELOPMENT
  true
   

   
   
   
  javax.faces.DEFAULT_SUFFIX
  .xhtml
   

   
  Faces Servlet
  javax.faces.webapp.FacesServlet
  1
   

   
  Faces Servlet
  *.seam
   
  

   Restrict raw XHTML Documents
   
   XHTML
   *.xhtml
   
   
   
   
   
   



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

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


[jboss-user] [Clustering/JBoss] - Re: using db instead of sticky sessions

2008-06-26 Thread [EMAIL PROTECTED]
Not sure if you are talking about web sessions or SFSBs or both.  The 
referenced doc is about web sessions.

Anyway, for SFSBs at least, JBoss has no option to use a DB to persist your 
bean after every request.  Passivation to the file system is supported, but 
that doesn't write the session to disk after every update; only when the bean 
should be swapped to disk to conserve memory.

So, if you want to cluster SFSBs you need to replicate them, and that requires 
sticky sessions.

Same basically applies to web sessions, although there is a web session manager 
in Tomcat (and perhaps in JBoss Web) that can write to a db.  Not sure if 
that's only for passivation as well.  Last I looked at it a couple of years ago 
it wasn't really production ready.  Could have changed though.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem when configure JBoss with SQL Anywhere 10.0

2008-06-26 Thread tomywu
Great!! It works. Thanks a lot!

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem when configure JBoss with SQL Anywhere 10.0

2008-06-26 Thread PeterJ
Rename the file to asa-ds.xml (the suffix but be '-ds.xml')

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

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


[jboss-user] [Beginners Corner] - Re: Integrating Seam with GWT

2008-06-26 Thread maheshkumar
ok

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Creating URL Resource

2008-06-26 Thread PeterJ
I agree that JNDI is an old technology, but there is still no service within 
JBossAS that you can use to define generic JNDI contents.

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

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


[jboss-user] [JBoss Messaging] - Re: I write a mbean which integrate stompconnect with jboss

2008-06-26 Thread armgong
ok, i fill it at http://jira.jboss.org/jira/browse/JBMESSAGING-1384

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem when configure JBoss with SQL Anywhere 10.0

2008-06-26 Thread tomywu
I have encountered the following problem while I try to deploy the datasource 
file asads.xml under the \deploy. Could anyone please help?

asads.xml

  | 
  |
  |   ASADS
  |   jdbc:sybase:Tds:localhost:2638
  |   com.sybase.jdbc2.jdbc.SybDriver
  |   dba
  |   sql
  |
  | 

Error in server.log (once I copy the asads.xml to the deploy folder)
2008-06-27 10:34:59,528 DEBUG [org.jboss.deployment.MainDeployer] Deployment of 
package: file:/C:/jboss-4.0.4.GA/server/default/deploy/asads.xml is waiting for 
an appropriate deployer.
2008-06-27 10:34:59,528 ERROR 
[org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment 
listing:

--- Packages waiting for a deployer ---
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.4.GA/server/default/deploy/asads.xml 
}
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/asads.xml
  altDD: null
  lastDeployed: 1214530337283
  lastModified: 1214530337283
  mbeans:

--- Incompletely deployed packages ---
[EMAIL PROTECTED] { url=file:/C:/jboss-4.0.4.GA/server/default/deploy/asads.xml 
}
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/asads.xml
  altDD: null
  lastDeployed: 1214530337283
  lastModified: 1214530337283
  mbeans:


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

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


[jboss-user] [Beginners Corner] - Implementing POST metod with RESTEasy

2008-06-26 Thread pranav.r.parikh
Hi all,

I'm new to RESTEasy. I'm implementing a RESTful interface for my application.

I need to read the form parameters from the request using HTTP POST. Can 
anybody please help me how to get the parameters? 


Thanks,
Pranav

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

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


[jboss-user] [JBoss Portal] - Portal evaluation : JBoss vs. Liferay

2008-06-26 Thread guybedo
Hi,
i'll have to develop web solutions in the near future using java portal 
technology.
These projects are about developping enterprise intranets/portals and the main 
frameworks i'd like tu use are jsf/richfaces/spring.

Given this, i'm currently trying to evaluate different portal solutions and i 
have ended up with two choices : JBoss & liferay.
Not having enough time to fully test & try developping, customizing, etc... 
these 2 portals, i read all the stuff i can find about the subject.

It seems to me that liferay & jboss are both great solutions, jboss having 
better support for ajax portlets thanks to protletbridge/richfaces but maybe 
missing some functionnalities / standard portlets offered by liferay.

I'd like to have your views about the 2 products, regarding to ease of 
developmet & cutomization, jsf/ajax/gwt integration, features, performance, etc 
...

Thanks for your coments.

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

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


[jboss-user] [JBoss Portal] - Re: Change Locale portlet

2008-06-26 Thread ericmacau
The client's language locale.

For example, as I know JBossPortal will check the default language in client's 
browser and use it as the page language, right?

And how can I force JBossPortal to use a specific language? For example, the 
language of the client's browser is 'en_US', but I want to force the 
JBossPortal to display all the pages in 'jp_JP', is it possible in programming 
level (in a portlet)?

Best regards,
Eric


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

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


[jboss-user] [JBoss Portal] - Re: Two WSRP question

2008-06-26 Thread fbrubbo
Hi Chris

At few months ago I've started to work in a Portal project. In this project, we 
have a large number of applications that are accessed remotely by a portal 
adapter. As I told you before, we have an in house solution that uses http 
connection to access the backend applications.

We are starting to develop our new portlets using WSRP and we are thinking to 
migrate the current ones. For that, we are working in a prof-of-concept 
checking different vendors and configurations to see which one fits better our 
necessity. Finished that POC, we will need point out a portal vendor as our 
preferred solution for WSRP producer.

Actually, we would like that every new application be developed as WSRP 
producer, but we have found that things are not so simple as it seems to be. 
Unfortunately, WSRP do not work well in our current reality, which is different 
vendors for consumer and producer. 

Currently we have WPS 5.1 (using portlet adapter http connections) accessing 
apps from WPS 5.1, WPS 6.0, WPS 6.1, Tomcat, .Net and some php apps. For WSRP 
we have WPS 5.1 and WPS 6.0 as consumer, and NetUnit as producer.

Thanks,
Fernando



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

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


[jboss-user] [JBoss Tools (users)] - Re: deployment error 404

2008-06-26 Thread dgolovin
You also need download and unpack WTP patch from this location 
http://repository.jboss.org/eclipse/webtools/patches/wtp-P-P20080506003122-20080506003122.zip

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

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


[jboss-user] [JBoss Tools (users)] - Re: VPE Source tab gone in 2.1.0?

2008-06-26 Thread dgolovin
That's right you can minimize Visual part now and it will work the same way as 
separate source page. That means Visual Part will not process changes until you 
show it again.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Thi first impressions whith Ganimade - ERROR

2008-06-26 Thread dgolovin
What JBoss Tools build did you try?

JBoss Tools 2.1.1.GA requires Europa and WTP 2.0.2.
JBoss Tools 3.0.0.alpha nightly builds is still using Ganimede 3.4RC3.

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

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


[jboss-user] [Remoting] - Re: Problem for Timer of BisocketServerInvoker

2008-06-26 Thread [EMAIL PROTECTED]
Ahaaa.  JBossMessaging essentially disables the 
BisocketServerInvoker.ControlMonitorTimerTask by setting its frequency to a 
huge number.  I had forgotten about that.  So ControlMonitorTimerTask gets 
removed the next time it runs after getting cancelled, but it "never" runs so 
it "never" gets cancelled.  

I've created a JIRA issue to track this problem:  JBREM-1005: "Prevent build up 
of cancelled TimerTasks in bisocket transport" 
(http://jira.jboss.com/jira/browse/JBREM-1005).  When it's ready I'll attach a 
jboss-remoting.jar with the fix to the JIRA issue.

Until then

"qingsongjian" wrote : 
  | Could you tell me what value I should set pingFrequency to, as after set it 
a small value such as 1, I get a lot of exception while starting jboss
  | 

I would say set "pingFrequency" to the smallest number that doesn't lead to 
exceptions.  Maybe 6?

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

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


[jboss-user] [JBoss Tools (users)] - Re: deployment error 404

2008-06-26 Thread dgolovin
Here is Installation instruction 
http://wiki.jboss.org/auth/wiki/InstallingJBossTools?action=e&windowstate=normal&mode=view

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss4.2.1 -Getting out of memory while Message Recovery

2008-06-26 Thread [EMAIL PROTECTED]
anonymous wrote : We are using HSQL only for JBOSS MQ state Mangement.

You shouldn't!

But anyway.. if you need more help with this issue... the MQ guys might be able 
to help you.. but I'm telling you exactly what they would tell you.


Also... maybe you should move to JBoss Messaging ;-)

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

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


[jboss-user] [JBoss AOP] - Re: JBoss IDE support for compile time aspects

2008-06-26 Thread fr0w
Is there any plan for updating it?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss-4.2.2GA SSI

2008-06-26 Thread edgoquist
Can anyone at least tell me where to find servlets-ssi.renametojar?

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

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


[jboss-user] [Performance Tuning] - JBoss Profiler 0.00 ms results?

2008-06-26 Thread sleight42
I've recently begun tuning our JBoss 4.2.1 (and I must stay on this version) 
app using JBoss Profiler 2.  While the profiler seems to be correctly 
identifying the classes loaded, it is reporting 0.00ms of CPU time used within 
all of the classes.

Clearly, something is amiss.

Suggestions?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: trying to increase thoroughput to server, what am I miss

2008-06-26 Thread PeterJ
Ran JMeter on my laptop (dual core AMD) and JBossAS on my desktop (quad core 
Intel). Laptop showed about 70-80% CPU usage. Desktop barely registered 10% 
usage. I was getting 333 requests/second.  Hmm, that was using wireless on my 
laptop. Turned off wireless and used a wired connection. Now my laptop shows 
100% CPU (desktop 10-15% CPU) and I got 534 requests/second.

Have you tried running JMeter on the CentOS box? That would at least eliminate 
the network as a possibility. 

In JMeter, when you specify the host, do you use hostname or IP address? How 
many routers/switches are you going through between the JMeter and JBossAS 
boxes?

Do other network operations run acceptably on the CentOS box? Things like 
ftping a large file.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - jboss 4.2.2 and 'all' server config

2008-06-26 Thread gjeudy
Hi,

I've been trying to use jmx-console and jms with 'all' server config and I got 
a ClassNotFoundException see 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138207 and a 
javax.naming.NameNotFoundException: DLQ not bound.

I setup a websphere MQ but server/all/deploy/jms/jbossmq-service.xml is missing 
from the 'all' config, causing i'm guess the DLQ not bound exception...

Has this problem been acknowledged? 

Fortunately I use 'default' config which is in a much better state, I'm a 
little worried about the problems exhibited by 'all' config and count me 
fortunate that I don't need services available only in 'all' (clustering, etc..)


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

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


[jboss-user] [JBoss Tools (users)] - Re: JBoss aren't getting the newest files

2008-06-26 Thread [EMAIL PROTECTED]
you might not have downloaded and installed the custom wtp patch we provide. 
You'll probably need to get that. 

http://repository.jboss.org/eclipse/webtools/patches/wtp-P-P20080506003122-20080506003122.zip

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jmx-console throws ClassNotFoundException

2008-06-26 Thread gjeudy
the class was in jasper-jdt.jar (I didnt look properly the first time around), 
I can't tell why I was getting the ClassNotFoundException.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jmx-console throws ClassNotFoundException

2008-06-26 Thread gjeudy
I reverted using 'all' config, now I use 'default' and it works great.

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

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


[jboss-user] [JBossWS] - Re: document response

2008-06-26 Thread randiz
I meant < and > get translated to < and >

thanks
randiz

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Creating URL Resource

2008-06-26 Thread njtajboss
There has to be somethinglike for defining DataSources we put the xml in 
the deploy folder similary for the url jndi there must be something...its a vv 
old technology

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

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


[jboss-user] [Beginners Corner] - Re: .xhtml files are not supporting sub folders

2008-06-26 Thread PeterJ
Continued at http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160980

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Creating URL Resource

2008-06-26 Thread PeterJ
Oh, so you are looking for a way to load values into the JNDI tree. There is no 
such service in JBossAS, as far as I know.

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

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


[jboss-user] [JBossWS] - Re: document response

2008-06-26 Thread randiz
 sorry for typo again < and > gets translated to lt; and gt;

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Sub Folder is not supporting .xhtml(seam)

2008-06-26 Thread PeterJ
Yes it must be a configuration error because it works fine for me. Please post 
your web.xml file. Make sure you bracket the XML text in [ code ] brackets 
(select the text and clcik the Code button).

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Creating URL Resource

2008-06-26 Thread njtajboss
Let me be more specific...

The code is something like this

String propertyUrl = "url/myURLFilePprocessor";
ic = new InitialContext();
java.net.URL url = (java.net.URL) ic.lookup(propertyUrl);
if (url != null) {
propertyFile = url.getPath();
logger.info(" PROPERTY FILE NAME IS : " + propertyFile);
}

In Websphere there is way to create the url resource wherein you can define the 
file location for the url jndi...how do u do it in jBoss?

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

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


[jboss-user] [JBossWS] - Re: JBossWs 3.0.1 client IllegalAnnotationsException

2008-06-26 Thread zeko
A bit late but maybe of interest for others:
For us it helped to use a custom Jaxb-binding.
Serializable is not importent here - the trick isusing the 
"generateElementProperty" attribute to chagne the way
some attributes are generated.
anonymous wrote : 
  | 
  | http://java.sun.com/xml/ns/jaxb";
  | xmlns:xs="http://www.w3.org/2001/XMLSchema";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb 
http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd";
  | xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"; 
  | >
  | 
  | 
  | 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Creating URL Resource

2008-06-26 Thread PeterJ
Here is one way (there are many others). Add something like 
-Dmy.property.file= to the JAVA_OPTS in the run script. Then 
in your app, use:

String propFile = System.getProperty("my.property.file");

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

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


[jboss-user] [JBoss Tools (users)] - Re: profile jboss in jboss tools?

2008-06-26 Thread snjeza
You would profile the JBoss Server in the following way:

1) download TPTP and find org.eclipse.tptp.platform.ac plugin for your OS
For instance,
org.eclipse.tptp.platform.ac.win_ia32_4.4.1.v200806171132 - TPTP 4.5.0 Windows 
32 bit
org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200806171132 - TPTP 4.5.0 Linux 
32 bit

2) add \agent_controller\bin to the PATH variable on windows or 
/agent_controller/lib to LD_LIBRARY_PATH on Linux

3) call SetConfig.bat on Windows or SetConfig.sh on Linux.
These scripts are placed in the bin directory.
If you have some issue with jaxp, it is probably caused by your JDK. 
What JDK are you using? What error are you getting?

4) Start Eclipse

5) Open the Launch configuration of the JBoss server and add 
-XrunpiAgent:server=enabled to the VM arguments tab

6) Start JBoss Server 

7) Open the Profiling and Logging perspective and call the Profile 
Configurations action

8) Create a new "Attach to agent" configuration, select some data collector in 
the Agents tab

9) call Profile

In the meantime, I solved JBIDE-2093. Hoping that the profile action will be 
available in some next JBoss Tools version. 

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

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


[jboss-user] [JBoss AOP] - Re: Multiple ClassLoaders problem?

2008-06-26 Thread fr0w
After some careful debuggin I managed to trace what's probably causing my 
issues:

That's the execution Stack of my thread.

  | Thread [FtpConn thread 20 from  - pool-3-thread-1] (Suspended)
  | AspectManager.registerClassLoader(ClassLoader) line: 762
  | AspectManager.findClassPool(ClassLoader) line: 750  
  | 
MethodJoinPointGenerator(JoinPointGenerator).doGenerateJoinPointClass(ClassLoader,
 JoinPointInfo) line: 283 
  | JoinPointGenerator.access$300(JoinPointGenerator, ClassLoader, 
JoinPointInfo) line: 77  
  | 
JoinPointGenerator$GenerateJoinPointClassAction$2.generateJoinPointClass(ClassLoader,
 JoinPointGenerator, JoinPointInfo) line: 1729 
  | 
MethodJoinPointGenerator(JoinPointGenerator).generateJoinPointClass(ClassLoader,
 JoinPointInfo) line: 250   
  | 
DirectoryHandle$DirectoryHandleAdvisor(GeneratedClassAdvisor).generateJoinPointClass(MethodInfo)
 line: 1042 
  | 
DirectoryHandle$DirectoryHandleAdvisor(InodeHandle$InodeHandleAdvisor).toString6853976482757027775(InodeHandle)
 line: not available 
  | DirectoryHandle(InodeHandle).toString() line: not available 
  | String.valueOf(Object) line: 2827   
  | StringBuilder.append(Object) line: 115  
  | LIST.list(CommandRequest, boolean) line: 364
  | LIST.doLIST(CommandRequest) line: 406   
  | NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method]  
  | NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39  
  | DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25  
  | Method.invoke(Object, Object...) line: 597  
  | StandardCommandManager.execute(CommandRequestInterface) line: 238   
  | BaseFtpConnection$CommandThread.run() line: 634 
  | ThreadPoolExecutor$Worker.runTask(Runnable) line: 885   
  | ThreadPoolExecutor$Worker.run() line: 907   
  | Thread.run() line: 619  
  | 

And here is the code from AspectManager.findClassPool(ClassLoader) line: 750


  |public ClassPool findClassPool(ClassLoader cl)
  |{
  |   if (!(cl instanceof Translatable))
  |   {
  |  // findClassPool has problems with boot and system classes.
  |  return 
registerClassLoader(SecurityActions.getContextClassLoader());
  |   }
  |   return registerClassLoader(cl);
  |}
  | 

Through the debug interface I managed to see that the "cl" argument of the 
findClassPool() method is a JPF ClassLoader but seems like this ClassLoader 
isn't an instance of Translatable (whatever this means, maybe you can explain 
me). So the class loader that is passed as an argument of 
AspectManager.registerClassLoader() is actually something that is returned by 
SecurityActions.getContextClassLoader() (I also managed to see what kind of 
ClassLoader this method returns and it is an instance of 
Launcher$AppClassLoader (Sun's JVM main ClassLoader)), then even though the 
ClassLoader was correct the ClassPool that is returned by the findClassPool() 
method has the 'classLoader' property set to something improper!


  | Thread [FtpConn thread 20 from  - pool-3-thread-1] (Suspended)
  | StandaloneClassPool(ClassPool).get(String) line: 430
  | 
MethodJoinPointGenerator(JoinPointGenerator).generateJoinpointClass(ClassPool, 
JoinPointInfo, ClassLoader, ProtectionDomain) line: 359  
  | 
MethodJoinPointGenerator(JoinPointGenerator).doGenerateJoinPointClass(ClassLoader,
 JoinPointInfo) line: 285 
  | JoinPointGenerator.access$300(JoinPointGenerator, ClassLoader, 
JoinPointInfo) line: 77  
  | 
JoinPointGenerator$GenerateJoinPointClassAction$2.generateJoinPointClass(ClassLoader,
 JoinPointGenerator, JoinPointInfo) line: 1729 
  | 
MethodJoinPointGenerator(JoinPointGenerator).generateJoinPointClass(ClassLoader,
 JoinPointInfo) line: 250   
  | 
DirectoryHandle$DirectoryHandleAdvisor(GeneratedClassAdvisor).generateJoinPointClass(MethodInfo)
 line: 1042 
  | 
DirectoryHandle$DirectoryHandleAdvisor(InodeHandle$InodeHandleAdvisor).toString6853976482757027775(InodeHandle)
 line: not available 
  | DirectoryHandle(InodeHandle).toString() line: not available 
  | String.valueOf(Object) line: 2827   
  | StringBuilder.append(Object) line: 115  
  | LIST.doLIST(CommandRequest) line: 406   
  | NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method]  
  | DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25  
  | LIST.list(CommandRequest, boolean) line: 364
  | Method.invoke(Object, Object...) line: 597  
  | NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39  
  | StandardCommandManager.execute(CommandRequestInterface) line: 238   
  | BaseFtpConnection$CommandThread.run() line: 634 
  | ThreadPoolExecutor$Worker.runTask(Runnable) line: 885   
  | ThreadPoolExecutor$Wo

[jboss-user] [JBoss Portal] - core-admin portlet error

2008-06-26 Thread Shazzaam
Hi,

I'm trying to copy the admin portlet code into a separate portlet with a maven 
build.  I have it compiling successfully but when I deploy it I get this 
message, can someone tell me if it's possible to deploy the core-admin portlet 
as a standalone war?


  | 14:24:08,901 ERROR [[/my-admin]] Servlet /my-admin threw load() exception
  | java.lang.NullPointerException
  | at 
org.jboss.portal.faces.loader.FacesLoaderServlet.init(FacesLoaderServlet.java:68)
  | at javax.servlet.GenericServlet.init(GenericServlet.java:212)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
  | at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
  | at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
  | at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
  | at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at 
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy169.start(Unknown Source)
  | at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
  | at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source)
  | at 
sun

[jboss-user] [Beginners Corner] - Re: shutdown.bat and cntrl-c not working but web-console and

2008-06-26 Thread amast
Thanks!  Alright, very cool info.  I'll run with it.   Have a good one. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jmx-console throws ClassNotFoundException

2008-06-26 Thread PeterJ
The missing class should be in the 
server/xxx/deploy/jboss-web.deployer/jasper-jdt.jar file. Perhaps that jar was 
corrupted during the copy.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Stored procedure calls made easy

2008-06-26 Thread wkudla
Hi!

Since there is a lot of stored procedure invocations in my current project (on 
Oracle db) I decided to isolate a dedicated component for completing this task.
The project is called JProcedure and being hosted on google code at the moment: 
http://jprocedure.googlecode.com.
There is some wiki documentation showing how to use the stuff.
The basic concept for this project was to simplify stored procedure invocations 
from java code (which can be a pain in the *** sometimes) by leveraging java 
annotations.
The only thing you have to do is annotate a class that represents stored 
procedure definition and then annotate any method that reflects a stored 
procedure. For transforming the statement output you will have to write your 
custom ResultTransformer and that's it.
The engine supports automated caching (which you can turn on and off using 
annotations) and custom invocation interceptors that allow you to add 
additional logic before and after a stored procedure call.
Current limitations:
1. There is only Oracle support implemented at the moment, but supporting other 
db vendors is just a matter of implementing a single StatementBuilder interface.
2. The Connection object is being obtained from JNDI given a DataSource path 
and does not support caching Datasource object - this will be enchanced to 
support different ways of obtaining a connection
3. There is no specific exception handling policy (on to do list)
4. No transaction management which means you have to use the component in 
transactional context or manage transaction yourself  (To be done)

The engine works and occured to be extremely handy, hence the decision of 
open-sourcing it.

If you find few spare minutes and take a look at what has been done so far, I 
will very much appreciate any positive and negative feedback.

Once again: http://jprocedure.googlecode.com/

Thanks in advance

Wojciech Kudla 

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

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


[jboss-user] [JBoss Messaging] - Re: Client Connect Fails with

2008-06-26 Thread timfox
The user guide install section explains exactly what jars you need, where to 
get them from, and which order they should appear on the classpath.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Latest Jboss deployment package

2008-06-26 Thread PeterJ
ebayne, are you looking for an exe so that you can run JBossAS as a service? If 
so, see http://wiki.jboss.org/wiki/RunJBossAsAServiceOnWindows

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

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


[jboss-user] [JBoss/Spring Integration] - Re: CastClassException NamedXmlApplicationContext

2008-06-26 Thread Saish
Ok.  I finally figured it out.  For those experiencing the same problem, do not 
name your .spring (or -spring.xml) file with the same name as your EAR or WAR.  
The EJB was being bound to [ear name] which was the same as [spring name] in 
JNDI.  If you make them different, the problem goes away.

- Saish

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

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


[jboss-user] [JBossWS] - document response

2008-06-26 Thread randiz
Is there a way I can send and return a xml document as a response from a web 
service  method ? when I specify a document (dom4j) as response from method  eg 
Document method() {... }  then jboss will not deploy the ear. When I try to 
return a xml string eg String method() { ...} then all the <  > characters get 
translated to '<' and '>'which is not acceptable ( even   
does not work ). Jboss version is 4.2.2GA.

thanx
randiz


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

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


[jboss-user] [Beginners Corner] - Re: shutdown.bat and cntrl-c not working but web-console and

2008-06-26 Thread PeterJ
Yes, it is critical to know the JNDI port to help shut JBossAS down.

If I recall correctly, some older versions of JBossAS used to log the JNDI port 
to the console log, but the more recent versions do not appear to do that.  
Knowing the JNDI port is somewhat crucial.  Wonder if there is an MBean that 
has that info? Yes there is: jboss:service=Naming, the Port attribute.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - jmx-console throws ClassNotFoundException

2008-06-26 Thread gjeudy
Hi,

I downloaded jboss-4.2.2-GA.zip and unzipped it, then I copied the contents of 
'all' dir into a new server instance dir.

I started this instance with a new port configuration using 
ServiceBindingManager, ports-03 config.

Now when I access the jmx-console I get the following exception thrown in the 
server logs:

2008-06-26 14:27:38,787 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]]
 Servlet.service() for servlet jsp threw exc
  | eption
  | java.lang.NoClassDefFoundError: 
org/eclipse/jdt/internal/compiler/problem/ProblemReporter
  | at 
org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:256)
  | at 
org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:149)
  | at 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:399)
  | at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
  | at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  | 2008-06-26 14:27:23,568 DEBUG [org.ajax4jsf.webapp.BaseFilter] Finished 
request processing total time 2ms for uri: 
/ReferenceDataManager/a4j_3_2_1-SNAPSHOTorg.
  | richfaces.renderkit.html.GradientA/DATB/eAH7..3Tj2v7mAAZZAV3
  | 2008-06-26 14:27:35,820 DEBUG 
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying 
pools, interval: 3
  | 2008-06-26 14:27:38,787 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]]
 Servlet.service() for servlet jsp threw exc
  | eption
  | java.lang.NoClassDefFoundError: 
org/eclipse/jdt/internal/compiler/problem/ProblemReporter
  | at 
org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:256)
  | at 
org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:149)
  | at 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:399)
  | at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
  | at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
  | at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
  | at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
  | at java.lang.Thread.run(Thread.java:595)
  | 

Has anyone run into similar issues ?

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

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


[jboss-user] [JBoss Portal] - Re: portlet not deployed properly

2008-06-26 Thread PeterJ
Please use the [ code ] tags when posting XML text (select the text and click 
the Code button).

As far as I can tell from the config files you posted, your portlet should show 
up on the default page when you bring up the portal.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: trying to increase thoroughput to server, what am I miss

2008-06-26 Thread PeterJ
Hmm, I was using GET. Though I doubt that using POST would be different 
(doPost() calls doGet()).

What are all of the JMeter components in your Thread Group? All I have are:

* HTTP Request Defaults
* HTTP Request (doe the single GET)
* Summary Report

The only other thing I can think of is that I ran JMeter on the same box as 
JBossAS. I'll try running JMeter on another box. Maybe there is some network 
issue. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Latest Jboss deployment package

2008-06-26 Thread klapcio
"ebayne" wrote : Where can I find the latest GA version of Jboss for a x86 
machine in a exe format?
  | 

Nowhere, seriously. JBoss is Java Based so to run it you will need JDK (you 
will find it at http://java.sun.com/javase/downloads/)

Then just Run JBoss as described at http://wiki.jboss.org/wiki/StartStopJBoss

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

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


[jboss-user] [Management, JMX/JBoss] - Re: JDBC Metrics

2008-06-26 Thread PeterJ
I do not know of anything that keeps those specific statistics.

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

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


[jboss-user] [JBoss Portal] - Re: Two WSRP question

2008-06-26 Thread [EMAIL PROTECTED]
Could you please specify your use case in greater details so that I can see how 
to best address it (as I am still not clear about what you are trying to 
accomplish)?

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Creating URL Resource

2008-06-26 Thread njtajboss
Hi I am new to jBoss. How do I configure a url resource to point to a property 
file that the application needs



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

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


[jboss-user] [Beginners Corner] - Patch for drools examples pom.xml

2008-06-26 Thread nuttycom
I found that I had to make some changes to the pom.xml file of the drools 
examples project to get it to build. Here's the patch:


  | --- pom.xml 2008-06-26 11:24:57.0 -0600
  | +++ pom.xml 2008-06-26 11:26:42.0 -0600
  | @@ -5,21 +5,23 @@
  |
  |  drools
  |  org.drools
  | -4.0.7.SNAPSHOT
  | +4.0.7
  |
  |  
  |
  | +  org.drools
  |drools-examples
  |jar
  |Drools :: examples
  |  
  |
  |  
  | -  basedir
  | -  file://${basedir}/../m2_repo
  | +  drools
  | +  JBoss Drools Repository for Maven
  | +  http://repository.jboss.com/maven2
  |  
  |  
  | 

I switched the examples to use the jboss maven2 repository because the m2_repo 
directory is empty in the examples zipfile.

Kris

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

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


[jboss-user] [JNDI/Naming/Network] - JNDI EJB local lookup is ok, but the bean cannot be invoked

2008-06-26 Thread j2ee4cxw
We are building application based on Struts 2 and EJB 3. The server we use is 
JBOSS 4.2.2 GA. In the struts action class, we try to save data to database via 
ejb session bean.  When the ejb was obtained via jndi romote look up, 
everything is fine. The bean is found and data is saved. However, when we do a 
local jndi lookup, the bean is found, but upon invoking the bean JBOSS threw 
following error:

javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class 
com.boeing.he.bessy.bean.ShipperManagerBean for public long 
com.boeing.he.bessy.bean.ShipperManagerBean.createShipper(com.boeing.he.bessy.domain.Shipper)
 throws com.boeing.he.bessy.exception.BessyException.

This has happened to three of our developers with different beans. The bottom 
line is the local lookup is succeful, but the bean cannot be invoked. Any kind 
of suggestion is greatly appreciated. Thanks. Here are our codes:

This is the save method of our Struts action class/
public String save()
 {   
 try
 {

//Shipper(spr) is our entity. 
 com.boeing.he.bessy.domain.Shipper spr = new 
com.boeing.he.bessy.domain.Shipper();
 spr.setManifest("ABC"); 
 spr.setSite("PHL100");
 spr.setLocation("PHL");
 spr.setDocTypeCode("DOC100");
 
 
 //remote call. WORKS!
// String SHIPPER_JNDI_NAME = "BessyEAR/ShipperManagerBean/remote";
// Object ref1 = ServiceLocator.getEJB(SHIPPER_JNDI_NAME);//jndi lookup
// ShipperManagerRemote smbean1  = (ShipperManagerRemote)ref1;
// long shipperId1 = smbean1.createShipper(spr); 
// setMessage("Shipper Created with Id:" + shipperId1);  
 
 //local call. Errors
 String SHIPPER_JNDI_NAME = "BessyEAR/ShipperManagerBean/local";
 
 Object ref2 = ServiceLocator.getEJB(SHIPPER_JNDI_NAME);//jndi lookup
 ShipperManagerLocal smbean2 = (ShipperManagerLocal) ref2;   
 long shipperId2 = smbean2.createShipper(spr);<==ERROR 
OCURRED ON THIS LINE. ERROR OCURRED ON THIS LINE
 setMessage("Shipper Created with Id:" + shipperId2);
 
 }
 catch(Exception ex)
 {   
 log.error(ex);  
 setMessage("some error occurred");
 }
 
 return SUCCESS;
 }

///Interfaces
public interface IShipperManager {

public long createShipper(Shipper shipper) throws BessyException; 
}

@Local
public interface ShipperManagerLocal extends IShipperManager{}

@Remote
public interface ShipperManagerRemote extends IShipperManager {}

The EJB session bean/
@Stateless
public class ShipperManagerBean implements 
ShipperManagerLocal,ShipperManagerRemote {
@PersistenceContext(unitName="BessyPU") 
private EntityManager manager;

public long createShipper(Shipper shipper) throws BessyException

  
{
manager.persist(shipper);
return shipper.getShipperId();
}
}

ServiceLocator///
public static Object getEJB(String jndiName) {
Object object = null;
try {
InitialContext ctx = new InitialContext();
object = ctx.lookup(jndiName);
} catch (Exception e) {
e.printStackTrace();
}
return object;
}

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

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


[jboss-user] [Beginners Corner] - Re: shutdown.bat and cntrl-c not working but web-console and

2008-06-26 Thread amast
Good news!  I found a port-bindings.xml file and run the shutdown in each of 
them, FINALLY finding one that would respond.  Thanks a bunch for helping me 
out.  Very much appreciated!

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

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


[jboss-user] cluster problem

2008-06-26 Thread Stefan Lambrev

Greetings,

I'm having a weird problem with jboss4 under freebsd7 amd64
I'm trying to get two instances of jboss4 to run on two servers in 
cluster mode.
The problem is that when they try to exchange the TreeCache it just does 
not work.


I'm getting this error message (on the server that is launched second) :

---
GMS: address is 192.168.2.188:58346
---
18:26:44,311 INFO  [TreeCache] viewAccepted(): [192.168.3.202:54013|1] 
[192.168.3.202:54013, 192.168.2.188:58346]
18:26:44,322 INFO  [TreeCache] TreeCache local address is 
192.168.2.188:58346
18:27:14,340 WARN  [ServiceController] Problem starting service 
jboss.cache:service=TomcatClusteringCache
org.jboss.cache.CacheException: Initial state transfer failed: 
Channel.getState() returned false
   at 
org.jboss.cache.TreeCache.fetchStateOnStartup(TreeCache.java:3363)

   at org.jboss.cache.TreeCache.startService(TreeCache.java:1555)
   at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:94)
   at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
   at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

   at $Proxy0.start(Unknown Source)
   at 
org.jboss.system.ServiceController.start(ServiceController.java:417)

   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
   at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy4.start(Unknown Source)
   at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy9.deploy(Unknown Source)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
   at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
   at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
   at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
   at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

   at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
   at 
sun.reflect

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: [Fatal Error] :1:1: Premature end of file.

2008-06-26 Thread edavis
bump

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Override annotations using JBoss.xml

2008-06-26 Thread jej2003
Typo on my part, EJB name was not correct.

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

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


[jboss-user] [JBoss Portal] - Re: Create a new Portal Object through the API?

2008-06-26 Thread Shazzaam
Hi,

So I was actually hoping to use the API library to add a new Portal instance 
through my Portlet's interface (similar to how the Core-Admin portlet works, 
you enter a Portal Name in a text box and it creates a new Portal)

Is that Possible?

Thanks!


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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaging and Bisocket Transport

2008-06-26 Thread rajan11
What do you mean by "much lower performance"? Do you have any numbers? Why is 
http transport not stable?



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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Checking DB connectivity from JMX console

2008-06-26 Thread Gap_Tooth
Is there a way to check and see if you can get a valid database connection from 
the JMX console?

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

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


[jboss-user] [JBoss/Spring Integration] - Re: CastClassException NamedXmlApplicationContext

2008-06-26 Thread Saish
Sorry [all other Spring JAR files] should be [all other spring bean definitions]

- Saish

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

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


[jboss-user] [JBoss/Spring Integration] - CastClassException NamedXmlApplicationContext

2008-06-26 Thread Saish
I have been trying to integrate JBoss, EJB3, JPA and Spring together.  After a 
*lot* of experimentation, I finally stumbled on how to have the WAR Spring 
beans access the EAR Spring beans via JNDI.  

However, this solution has in some way interfered with regular SLSB deployment 
within JBoss.  I am getting a CastClassException on 
org.jboss.naming.util.createSubcontext:69 
org.jboss.spring.factory.NamedXmlApplicationContext.

I am running JBoss 4.2.2-GA and Spring 2.5.4.  I have tried both the 2.0 and 
2.1 distros of the Spring Deployer.  My application set-up (from the EAR down) 
is:


  | META-INF
  |   application.xml
  |   jboss-app.xml
  | foo.sping
  |   META-INF
  |jboss-spring.xml
  |[all other Spring JAR files]
  | foo.jar
  |   META-INF
  |ejb.jar.xml
  |persistence.xml
  | foo.war
  |   META-INF
  |beanRefContext.xml (loads the EAR application context via JNDI)
  |   WEB-INF
  |applicationContext.xml (blank)
  |web.xml
  | 

The SLSB is extremely simple.  Basically it just has an isAlive() method 
returning boolean.  Here is the stack.


  | java.lang.ClassCastException: 
org.jboss.spring.factory.NamedXmlApplicationContext
  | at org.jboss.util.naming.Util.createSubcontext(Util.java:69)
  | at org.jboss.util.naming.Util.rebind(Util.java:125)
  | at org.jboss.util.naming.Util.rebind(Util.java:113)
  | at 
org.jboss.ejb3.stateless.BaseStatelessProxyFactory.bindProxy(BaseStatelessProxyFactory.java:231)
  | at 
org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:216)
  | at 
org.jboss.ejb3.stateless.StatelessLocalProxyFactory.start(StatelessLocalProxyFactory.java:101)
  | at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:105)
  | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:157)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:102)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy84.start(Unknown Source)
  | at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
  | at 
org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
  | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
  | 

This first SLSB is causing the issue.  Existing JPA entity beans load fine.


  | @Local
  | @Stateless
  | 
  | public class TestEjb implements Test {
  | 
  | public boolean isAlive() {
  | return true;
  | }
  | }
  | 

I did read in another post that the issue was having Spring JAR files in the 
deployer that are incompatible with those in server/default/lib.  I have the 
full-blown 

[jboss-user] [JBoss Messaging] - Re: Dealing with lost JMS sessions

2008-06-26 Thread timfox
ykonrad - what Linux version are you using? (I'm assuming you're running linux)

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

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


[jboss-user] [JBoss Messaging] - Re: Dealing with lost JMS sessions

2008-06-26 Thread timfox
JBM 1.x will use something like 2 threads per session (I would have to check to 
be sure), so if you create a lot of sessions, you'll have a lot of threads. On 
later Linux kernels - this is rarely an issue - they can support very large 
numbers of lightweight threads.

If you're clients are disconnecting without closing connections, then they're 
badly behaved clients - if you have access to change their code so they do 
close before exiting then I suggest you do that. Or perhaps the clients are 
crashing so there is little chance to do that.

In any case JBM will detect such clients and clean up their resources, however  
this takes a while (maybe 30 seconds or a minute) depending on the ping 
settings. (That's the purging mechanism).

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Override annotations using JBoss.xml

2008-06-26 Thread jej2003
I am attempting to override the annotations in a message driven bean using a 
JBoss.xml file.  
My environment is Windows running JBoss 4.2.2GA

The relevant section of my MDB is as follows:

  | @MessageDriven(activationConfig={
  | @ActivationConfigProperty(propertyName="destinationType", 
propertyValue="javax.jms.Topic"),
  | @ActivationConfigProperty(propertyName="destination", 
propertyValue="topic/securedTopic")
  | }
  | ...
  | 

my jboss.xml looks like:

  | 
  | 
  | 
  | TestEJB
  | topic/otherTopic
  | 
  | 
  | 
  | 

but when this is deployed it always connections to securedTopic not otherTopic. 
 Any ideas as to what could be causing this?

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

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


[jboss-user] [JBoss Messaging] - Re: Dealing with lost JMS sessions

2008-06-26 Thread jthinaka
Hi Konrad,
Did you find a resolution to this problem yet?
Thanks,
TJ

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

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


[jboss-user] [JBoss Tools (users)] - VPE Source tab gone in 2.1.0?

2008-06-26 Thread jstockton
Was just wondering why the VPE source tab was removed in JBoss Tools 2.1.0? Or 
I guess a better question would be why wasn't an option added to the VPE 
preferences to default to a source only view? It gets awfully annoying to have 
to close the preview tab every time I open a new screen (though the shift+F6 
shortcut does help).

- Justin

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss4.2.1 -Getting out of memory while Message Recovery

2008-06-26 Thread Unnijboss
Thanks for the reply.

We are using HSQL only for JBOSS MQ state Mangement. Our actual database is 
Oracle.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: MDB and secure topics

2008-06-26 Thread jej2003
I got this working, I was unaware of two ActivationConfigProperty values user 
and password.  Using them worked like a champ.



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

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


[jboss-user] [Management, JMX/JBoss] - Re: Remote JBoss Management, conceptual doubt.

2008-06-26 Thread eduterio
I found the answer me myself.

To invoke the JBoss JVM with the JMX management available, it is to be done 
like specified here:

http://wiki.jboss.org/wiki/UseJDK5JConsole

But to make inner JBoss accessible from the JConsole, it has to be done like it 
is said here:

http://wiki.jboss.org/wiki/UseJDK5JConsole

Thanks!
Gracias!



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

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


[jboss-user] [Javassist user questions] - Problem Instrumenting System classes

2008-06-26 Thread mansu
Hi all,

I am trying to instrument java.lang.String class. For starters, I tried using 
the example code in the javassist manual, but it doesn't seem to work. 

The class that adds a new field to the java.lang.String is as follows:


  | package sample;
  | 
  | import javassist.*;
  | 
  | public class AddFieldToString {
  | 
  | public int f(int i) {
  | return i + 1;
  | }
  | 
  | public static void main(String[] args) throws Exception {
  | ClassPool pool = ClassPool.getDefault();
  | CtClass cc = pool.get("java.lang.String");
  | cc.addField(new CtField(CtClass.intType, "hiddenValue", cc));
  | cc.writeFile(".");
  | }
  | }
  | 

A sample application is as follows:


  | package sample;
  | 
  | public class MyApp {
  | public static void main(String[] args) throws Exception {
  | 
System.out.println(String.class.getField("hiddenValue").getName());
  | }
  | }
  | 

After compiling and running the above program as shown below, I get a 
FieldNotFound exception. 


  | ./installs/javassist-3.8.0 % rm -rf ./java ;
  | j  javac -cp javassist.jar sample/AddFieldToString.java 
; 
  |java -cp .:javassist.jar sample/AddFieldToString ; 
  |javac sample/MyApp.java ; 
  |java -Xbootclasspath/p:. sample/MyApp
  | 
  | Exception in thread "main" java.lang.NoSuchFieldException: hiddenValue
  | at java.lang.Class.getField(Class.java:1507)
  | at sample.MyApp.main(MyApp.java:5)
  | 

I am sure that the generated code has a something about hidden field, but the 
decompiler is unable to find it too:


  | ./installs/javassist-3.8.0 % cat java/lang/String.class | grep hiddenValue
  | Binary file (standard input) matches
  | 
  | /installs/javassist-3.8.0 % javap java/lang/String | grep hiddenValue
  |  

Am I missing something obvious? Any pointers would be helpful. Thanks for your 
time.

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

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


[jboss-user] [Performance Tuning] - read-ahead cache invalidate before any data access

2008-06-26 Thread dchsalmon
Hi,

I am trying to implement a read-ahead on-find strategy for a CMP bean using 
jboss 4.0.2.

The finder method appears to cache all the required data and return a 
collection of local objects with cached data as evidenced by log output like

2008-06-26 07:13:43,875 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.StockData#findByPing] Executing 
SQL: SELECT DISTINCT t0_o.id, t0_o.ticker, t0_o.name, t0_o.currency, 
t0_o.quote, t0_o.open, t0_o.high, t0_o.low, t0_o.delta, t0_o.volume, 
t0_o.marketcap, t0_o.range, t0_o.divdate, t0_o.divyield, t0_o.exchange, 
t0_o.divrate, t0_o.pubdate, t0_o.provider, t0_o.updated FROM stockdata t0_o 
LEFT OUTER JOIN stockping t1_o_ping ON t0_o.id=t1_o_ping.id WHERE 
t1_o_ping.ping > ? AND t0_o.quote IS  NOT NULL
2008-06-26 07:13:43,875 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.StockData#findByPing] param: 
i=1, type=INTEGER, value=20240053
2008-06-26 07:13:43,875 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.StockData#id] 
result: i=1, type=java.lang.Integer, value=36
2008-06-26 07:13:43,875 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.StockData#ticker] 
result: i=2, type=java.lang.String, value=USTYN
2008-06-26 07:13:43,875 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.StockData] Add preload data: 
entity=StockData pk=36 field=ticker

However, when I call the value method for each of the local objects in the 
collection I get:

2008-06-26 08:02:00,437 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.StockData] RESET PERSISTENCE 
CONTEXT: id=36
2008-06-26 08:02:00,437 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.StockData] load data: 
entity=StockData pk=36
2008-06-26 08:02:00,437 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.StockData] No preload data 
found: entity=StockData pk=36
2008-06-26 08:02:00,437 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.StockData] Default 
eager-load for entity: readahead=null
2008-06-26 08:02:00,437 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.StockData] Executing SQL: 
SELECT ticker, name, currency, quote, open, high, low, delta, volume, 
marketcap, range, divdate, divyield, exchange, divrate, pubdate, provider, 
updated FROM stockdata WHERE (id=?)
2008-06-26 08:02:00,437 TRACE 
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.StockData#id] 
param: i=1, type=INTEGER, value=36


This indicates to me that all the cached data is tossed out and reloaded.

The method invoked is running as a transaction and consists essentially of

Collection coll = 
StockDataUtil.getLocalHome().findByPing(currMinutes);
for (Iterator i = coll.iterator(); i.hasNext(); )
{
StockDataLocal sdl = (StockDataLocal)i.next();
StockUpdateValue val = sdl.getUpdateValue();
stockMap.add(val);
}

Any help would be appreciated.

Dave Salmon
FreeRange Communications, Inc

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss4.2.1 -Getting out of memory while Message Recovery

2008-06-26 Thread ataylor
also it looks like you are using Jboss mq, this is the Jboss Messaging forum

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss4.2.1 -Getting out of memory while Message Recovery

2008-06-26 Thread ataylor
I wouldn't recommend using HSQL in a production environment, If you use a 
'proper' database you shouldn't get this issue. HSQL is only used out of the 
box for ease of use but it doesnt support transactions etc.

If you do want to use HSQL i'm sure one of the HSQL forums could answer your 
question, or you could adapt the start script to delete the database.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - JBoss4.2.1 Out of Memory while restart

2008-06-26 Thread Unnijboss
I am getting an exception while restarting our production server. 
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. 
Message recovery may not be accurate; - nested throwable: 
(java.sql.SQLException: out of memory) 


But when I delete the files under 
jboss4.2.1/server//data/hypersonic, the server is coming up. 

I think it is trying to recover the messages in the queue, which we do not 
require. Is there any way to disable the recovery while restart in HSQL/JMS? 

2008-06-25 21:36:17,774 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false 
2008-06-25 21:36:17,774 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true 
2008-06-25 21:36:17,778 WARN [org.jboss.system.ServiceController] Problem 
starting service jboss.mq:service=PersistenceManager 
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. 
Message recovery may not be accurate; - nested throwable: 
(java.sql.SQLException: out of memory) 
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:495)
 
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1809)
 
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
 
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
 
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:585) 
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
 
at $Proxy0.start(Unknown Source) 
at org.jboss.system.ServiceController.start(ServiceController.java:417) 
at org.jboss.system.ServiceController.start(ServiceController.java:435) 
at org.jboss.system.ServiceController.start(ServiceController.java:435) 
at org.jboss.system.ServiceController.start(ServiceController.java:435) 
at org.jboss.system.ServiceController.start(ServiceController.java:435) 
at org.jboss.system.ServiceController.start(ServiceController.java:435) 
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:585) 
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 
at $Proxy4.start(Unknown Source) 
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:585) 
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 
at $Proxy42.start(Unknown Source) 
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197) 
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) 
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) 
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:585) 
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
at 
org.jboss.mx.interceptor.A

[jboss-user] [Beginners Corner] - Re: Integrating Seam with GWT

2008-06-26 Thread vivekmk2006
For doing this alone u took one day leave...!.R u a 
foo!!!

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

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


[jboss-user] [JBoss Messaging] - JBoss4.2.1 -Getting out of memory while Message Recovery

2008-06-26 Thread Unnijboss
I am getting an exception while restarting our production server.
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  
Message recovery may not be accurate; - nested throwable: 
(java.sql.SQLException: out of memory)


But when I delete the files under 
jboss4.2.1/server//data/hypersonic, the server is coming up.

I think it is trying to recover the messages in the queue, which we do not 
require. Is there any way to disable the recovery while restart in HSQL/JMS?

2008-06-25 21:36:17,774 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2008-06-25 21:36:17,774 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2008-06-25 21:36:17,778 WARN  [org.jboss.system.ServiceController] Problem 
starting service jboss.mq:service=PersistenceManager
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  
Message recovery may not be accurate; - nested throwable: 
(java.sql.SQLException: out of memory)
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:495)
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1809)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy42.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Sou

[jboss-user] [Datasource Configuration] - Re: org.jboss.resource.JBossResourceException - Please help

2008-06-26 Thread iam123
Hi Sujith,
Any luck with this prblm. I have it too.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: [JBoss 4.2.2GA]Problem with PostgreSQL as DefaultDS

2008-06-26 Thread klapcio
OK, now everything is working

In deploy/jms I had only:

- rename hsqldb-jdbc-state-service.xml into jbossmq-destinations-service.xml
- copy postgres-jdbc2-service.xml form $JBOSS_HOME/docs/examples/jms into 
deploy/jms and lightly adapt it. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Server Sizing

2008-06-26 Thread jett

Does anyone have any information regarding hardware sizing for JBoss AS and 
JBoss Portal? We are proposing the use of the portal to a client but we need to 
identify the hardware requirements.

I can't seem to find any sizing document or hardware sizing "calculator".

Thank you

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

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


[jboss-user] [JNDI/Naming/Network] - Jboss JNDI / Remote access to datasource

2008-06-26 Thread bluenote
Hi everyone,

I'm accessing a datasource looked up through JNDI from a Java client using 
Ibatis framework from outside the container.

When performing queries I always end up getting this error:

  | java.lang.IllegalAccessException: Method=public abstract 
java.sql.Connection java.sql.Statement.getConnection() throws 
java.sql.SQLException does not return Serializable 
  | 
  | Stacktrace:
  | 
org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doStatementMethod(WrapperDataSourceService.java:411),
  | 
org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:223),
  | sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source),
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25),
  | java.lang.reflect.Method.invoke(Method.java:585),
  | 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155),
  | org.jboss.mx.server.Invocation.dispatch(Invocation.java:94),
  | org.jboss.mx.server.Invocation.invoke(Invocation.java:86),
  | 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264),
  | org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659),
  | 

My Datasource:

  | 
  |   
  | jdbc/xDS
  | 
jdbc:oracle:thin:@x:1521:xxx
  | false
  | oracle.jdbc.driver.OracleDriver
  | 
  | xx
  | 
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
  | 5
  | 20
  | 
  | 
  | 

I'm using JBoss 4.0.4.GA. Any help is much appreciated!

Thanks in advance,

Michael

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

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


[jboss-user] [JBoss AOP] - Re: JBoss IDE support for compile time aspects

2008-06-26 Thread [EMAIL PROTECTED]
Sadly, the IDE team did not have enough resources to invest in the AOP stuff, 
so it has been deprecated

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

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


[jboss-user] [JBoss AOP] - JBoss IDE support for compile time aspects

2008-06-26 Thread alebu
Hello, as I remember in the past there was a support for aspects in JBoss IDE 
but for now JBoss IDE is moved into JBoss Tools. But JBoss Tools have no 
support for AOP at all. Or I miss somethink? I am very interested in JBoss 
aspects because differently from AspectJ JBoss AOP supports java 1.4 and it is 
critical requirement for me. Also, I need compile time aspects - I mean, 
compiled code must be just java classes without any requirements to container. 
Maybe I miss something but I think all that was in the past. Strange that  I 
can't find anything about it now.

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

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


  1   2   >