[jboss-user] [JBoss Portal] - Portal developement questions

2007-12-25 Thread anantj
Hi ,

I am new to JBoss portal.

Wanted to know certain things if it is possible with JBoss portal.

1. Is it possible that I can create own page dynamically not from the Admin 
portal. By some coding?

2. I want to pass some request parameters to all the portlets on the page at a 
same time when I click on a link on the same page.

3. For the point 2 there is one more problem. Can I have certain links on the 
page along with portlets, or I need to create another portlet for some links 
which are responsible for refreshing all the portlets on the page as well as 
pass some parameters.

I have searched a lot on the net but not able to figure out proper way to do so.

Any help will be appreciated.

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

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


[jboss-user] [JBoss Seam] - How to access conversational components in the popup window

2007-12-25 Thread tangdazhu
I got the problem by the following scenario:

1.Create the seam component in conversation scope

2.in this component , i initialized a list called parametersList

3.I used window.showModalDialog() open a popup window 

but i can't access this parametersList in this child page, because it is null.

i can fix it by change the component context scope to Session instead of 
conversation. but i don't want to maintain so many objects in memory, is there 
some ways to call the conversation objects in the popup window.

Note: the way that i open this popup window like this :

1. window.showModalDialog(baseURL.value + 
pages/cpi/Calculation_parameters_add.jsf, , 
dialogHeight:300px;dialogWidth:500px);
2.the page structure for Calculation_parameters_add.jsp like this :


f:view



...

/f:view



Can someone give me some tips about this kind of situation?

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

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


[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php

2007-12-25 Thread nitm
ok, that did the trick..  now the server runs outside localhost as well..
thanks!

any ideas on the php problem?

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: jboss AS + hibernate + mysql

2007-12-25 Thread jaikiran
There are 2 ways of changing the default database in JBoss. In the approach 
that you followed, you have changed the jndi-name of the default datasource. 
However, if you want to lookup the datasource using java:DefaultDS then you 
will have to follow the Approach#1 mentioned at  
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ManyToMany, sort by field in mapping table

2007-12-25 Thread dkane
Dear colleagues, 

I have Termnal and Firmware entities , with Terminal_Firmware table that 
defines many-to-many relationship. 
Terminal has a collection of bound Firmwares : 

@ManyToMany(cascade = {CascadeType.PERSIST})
  | @JoinTable(
  | name=Terminal_Firmware, 
  | [EMAIL PROTECTED](name=tId,  referencedColumnName=tId),
  | [EMAIL PROTECTED](name=fId, referencedColumnName=Id)
  | )   
  | 
  | public ListFirmware getFirmwares()
  | {
  | return firmwares;
  | }


Terminal_Firmware also contains integer column position, which I want 
firmwares to be sorted by. 

Problem can be solved by adding a separate entity for Terminal_Firmware and 
making a query to all 3 tables, but I'd like to avoid that . 

@OrderBy annotation does not work for fields in mapping table. 

Do you know the way ? 
Many thanks in advance. 

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

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


[jboss-user] [JBoss Seam] - Possible to turn off validation for search value object in E

2007-12-25 Thread SunFire
I have a User class which has an email string field annotated with @NotNull 
@Email.
I used seam-gen to generate everything for it. UserList, UserHome, etc. Now 
when I try to search for a username in the generated UserList.xhtml I get an 
error must be a well-formed email address. So I guess that even for the 
object used to hold the search parameters validation is enabled. Is it possible 
to turn this off? Don't think it makes any sense at all to validate search 
strings. Now I could write an extra class to only hold the search parameters 
but switching validation off for the search parameter object would seem nicer 
to me.

Thanks, Thorsten

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

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


[jboss-user] [JBoss jBPM] - Re: Log retrieval

2007-12-25 Thread kukeltje
It is possible to include everything in the jBPM API, but keep in mind that:
- for everything we include, it shoud perform great, so probably additional 
indexes which in turn reduce performance (updating indexes takes time)
- Many of these kinds of queries reduce the performance overall since the DB 
can get busy
- It probably is more for BI like things so an additional DB is probably better

So it's not that trivial and yes backwards compatibility is a factor, but 
beneath the api is still a 'custom query' ;-)

You could file a Jira issue and see what the core team thinks of it. 
 

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

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


[jboss-user] [Beginners Corner] - Re: No Persistence provider for EntityManager

2007-12-25 Thread jhannoy
Could anybody help me on this please??

-Thanks
James.

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

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


[jboss-user] [JBoss/Spring Integration] - using AspectJ and JBoss

2007-12-25 Thread mnrz
Hello experts,

I am going to use AspectJ and Spring in JBoss AS, would you please show me some 
resources on how to configure AspectJ in JBoss?

Before we migrate to JBoss it was working good but now that we changed the 
Application server it doesn't work.

and JBoss AS 4.2.1

thanks 


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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: not start MDB delivery automatically

2007-12-25 Thread dklio
Thanks a lot, Adrian!

Is there any other way to have MDB not functioning on JBoss startup?
As far as I got from JBoss documentation and sources, JBoss creates MBean for 
each EJB deployed. As for any other MBean, these beans have start and stop 
methods. If I only could have the appropriate MBean stopped on JBoss startup 
the problem would be solved. Could it be achieved in some way or other? May be 
by implementing my own Container class?

Thank you!

Dmitry Klionskiy

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

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


[jboss-user] [JBoss Seam] - Catch-22 with Seam2 and converterId in page parameter - bug?

2007-12-25 Thread terryb
Im having a kind of catch-22 problem since upgrading to Seam 2.

I have date/time fields on xhtml form, and corresponding Seam page parameter in 
.page.xml file. If I don't assign converterId to date/time page param then
it throws error (javax.el.ELException: java.lang.IllegalArgumentException: 
argument type mismatch) and Seam Debug page..

However, if I give page parameter a convertId then xhtml page works but I get 
error in log (...Cannot instantiate converter of type 
org.jboss.seam.ui.converter.DateTimeConverter...).

I have jboss-seam-ui.jar in my .war\WEB-INF\lib folder. jboss-seam-ui.jar 
contains class org.jboss.seam.ui.converter.DateTimeConverter.

I think solution to my problem is to have a converterId - can anyone tell how 
to get rid of error (JSF1006: Cannot instantiate converter of type...)?

Seam2+JSF RI+Facelets+Richfaces, JBoss EAP 4.2.


  | without converterId in page param of .page.xml
  | !DOCTYPE page PUBLIC
  |   -//JBoss/Seam Pages Configuration DTD 2.0//EN
  |   http://jboss.com/products/seam/pages-2.0.dtd;
  | 
  | page   
  |param name=settlementDateFrom  
value=#{paymentReconciliation.settlementDateFrom}/
  | /page
  | 
  | ...
  | ERROR [SeamPhaseListener] uncaught exception
  | javax.el.ELException: java.lang.IllegalArgumentException: argument type 
mismatch
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:116)
  | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
  | at 
com.sun.faces.el.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:93)
  | at 
org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
  | at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
  | at 
org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
  | at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:117)
  | at 
org.jboss.seam.navigation.Pages.applyConvertedValidatedValuesToModel(Pages.java:779)
  | ...
  | 
  | 
  | 
  | with converterId in page param
  | param name=settlementDateFrom 
converterId=org.jboss.seam.ui.converter.DateTimeConverter 
value=#{paymentReconciliation.settlementDateFrom}/
  | 
  | (Similar error is thrown is I use 
converterId=javax.faces.convert.DateTimeConverter).
  | 
  | FATAL [application] JSF1006: Cannot instantiate converter of type 
org.jboss.seam.ui.converter.DateTimeConverter
  | WARN  [Param] could not create converter for: settlementDateFrom
  | javax.faces.FacesException: Expression Error: Named Object: 
org.jboss.seam.ui.converter.DateTimeConverter not found.
  | at 
com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:726)
  | at 
org.jboss.seam.jsf.SeamApplication.createConverter(SeamApplication.java:112)
  | at org.jboss.seam.navigation.Param.getConverter(Param.java:52)
  | at 
org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:142)
  | at 
org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:820)
  | at 
org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:61)
  | at 
org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:317)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)
  | at 
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 

[jboss-user] [EJB 3.0] - Re: Ejb 3 in Jboss 5 Beta 3

2007-12-25 Thread ragavgomatam
Hi Andrew, 

As advised I have sent the merged ejb3-interceptors-aop.xml.

Thanks  Merry Christmas

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

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


[jboss-user] [JBoss Portal] - management API issue

2007-12-25 Thread marimuthub
We are using following block of code to manage the roles,users and 
relationships beetween users and roles. The following code is written inside 
filterand the following block of code is called when user login into our portal 
application. Access previlleges portalnodes are generated based on following 
block codes.

We are having following issue when portal nodes generates for the user.
The user belongs admin role will get the all the portal nodes or tabs 
navigations. 
The user belongs to normal user will get the few portal nodes
or tabs navigations.
The scenario is first time admin user login into our portal application then 
logout close browser. it works fine
open new browser login as normal user. but still the access previlleges(portal 
nodes or tabs navigations) generated for admin role instead of normal user role.
Please help us to resolve the issue
import org.jboss.portal.identity.UserModule; 
import org.jboss.portal.identity.RoleModule; 
import org.jboss.portal.identity.MembershipModule;
 [...] 
UserModule userModule = (UserModule)new 
InitialContext().lookup(java:portal/UserModule); 
RoleModule roleModule = (RoleModule)new 
InitialContext().lookup(java:portal/RoleModule); 
MembershipModule memModule = (MembershipModule)new 
InitialContext().lookup(java:portal/MembershipModule); 
User user = userModule.findUserByUserName(...);
Role role = roleModule.findRoleByName(...)
Set roleSet = new HashSet();
roleSet.add(role);
memModule.assignRoles(user,roleSet);

Regards
Marimuthu

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

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


[jboss-user] [JBoss jBPM] - Re: Log retrieval

2007-12-25 Thread Kotov
My task is to provide the interface for ETL soft (Pentaho, Jasper or Talend) in 
order to retrieve information stored in jBPM logs. I don't want to use jBPM db 
tables directly, because, you know, when you're  running out of API, you must 
be running in the wrong direction.
So this log retrieval interface is planning to be used only once per day or 
even per week. And it should not perform greate because automated ETL process 
can wait.
And yes BI - the end chain of jBPM-SomeInterface-ETL-BI - uses separate db 
even separate server.

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

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


[jboss-user] [Beginners Corner] - the right choice ?

2007-12-25 Thread nitm
hi,

this is a very general question, regarding a lot of JBoss products.
we want to set up a server for development purposes, we are very new to this 
whole server business.
this so called server is a regular pc running a windows xp os, connected to a 
5MB adsl connection with a fixed ip address.

after a lot of searching and reading we found that the JBoss products are right 
for us since we want the server to run mainly on java.
we installed the JBoss AS 4.2.2 and we're having a lot of hard time configuring 
it to work the way we want (you can search for my username and see a lot of 
posts all over the jboss forums).
since we probably made a lot of false configuring we think that it might be 
smart to start over now that we know a bit more (though not enough).

the problem is that there's a new jboss AS now and so our question is this:
should we go with the JBoss AS 5 or the 4.2.x ?
the 4.2.x have more documentation and more examples so it will probably be 
easier to configure BUT we saw that the 5.x has major differences and so it 
might be foolish to start with something that will be deprecated soon.

our goal is a server that will have the following features:
 - J2EE support (including EJBs)
 - MySql database as the jboss datasource
 - hibernate
 - php for the view part of our application
 - a version control software (like subversion)
 - ftp access (does this have anything to do with the jboss at all?)

in addition we might want to use JBoss Cache, Mobicents and probably a few more 
JBoss products (including the JBoss Tools).

how should we go about this?
thanks, nitzan.

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

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


[jboss-user] [JBoss Seam] - Event scope question

2007-12-25 Thread ng.tech
Hey there,

I have a question regarding the event scope.

It seems that if i'm outjecting an object in the event scope, 


  | @Out(scope=EVENT)
  | private Broker broker;
  | 

This object isn't available during the render response phase. I tried to find 
informations in the seam documentation regarding the lifecycle of the event 
scope, but  it says that the event scope last during an entire JSF request 
lifecycle. Which means that the event context should be destroyed after the 
render response phase right ? 

I thougth that the event scope was the same as a temporary conversation scope. 

I'm missing a simple piece here, can anybody help ?

Thanks in advance.
Regards




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

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


[jboss-user] [JBoss Seam] - Re: How to inject a singleton?

2007-12-25 Thread thejavafreak
nickarls wrote : hubaghdadi wrote : I mean a simple POJO that it has to be 
a singleton...
  | 
  | That would be an application scoped component. There can be... only one.
  | 

Wow. Thanks for the information. I didn't know just by Scoping it to 
APPLICATION we already have a singleton :-d. So simple.

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

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


[jboss-user] [JBoss Seam] - Re: How to completely use Servlet instead of Facelets?

2007-12-25 Thread thejavafreak
Perhaps you just use JSP instead and remove the facelets related configuration 
in web.xml

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

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


[jboss-user] [JBoss Seam] - Re: persist entities problem

2007-12-25 Thread thejavafreak
Perhaps you can get a better support from
http://forum.hibernate.org

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

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


[jboss-user] [JBoss Seam] - Re: Using @In to inject a reference to a bean in a different

2007-12-25 Thread thejavafreak
Have you annotated your bean B with @Name yet?

During initialization Seam will make beans with @Name as components and you 
should be able to inject it eventhough it is on several jars. Although I havent 
been in your situation before and haven't tried it yet.

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

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


[jboss-user] [JBoss Seam] - Memory leak in SFSB in session scope in Seam 2.0.0 on JBoss

2007-12-25 Thread susnet
Hi!
I upgraded to Seam 2.0.0.GA and it is running on JBoss 4.2.2.

I have a SFSB in Session scope. The SFSB has an ObjectPool, which is really 
just a Collection of Entities. The entities in the collection are of type 
TeaserRecipe which just maps to a table in my database.
For each httpRequest for certain pages the method  getNextTeaserRecipes() are 
called. This is configured in pages.xml.

Now to the strange behaviour. If I just use the default settings for 
conversation timeout and session timeout OR if i set it to for example:
conversation timeout = 60  ( = 10 minutes)
session timeout = 10
Then the number of instances of TeaserRecipe just grows and gradually leads to 
OutOfMemoryException. I have also tested a lot of other configurations where 
session timeout is much longer than conversation timeout and vice versa, all 
with the same result - Growing number or instances and OutOfMemoryException if 
I just wait long enough before restarting JBoss.

But if don't set any conversation timeout at all AND set session timeout to 2 
minutes it works fine and the instances don't grow and gets garbage collected 
as they should.

Any Ideas 



My SFSB. It has 4 objectPools in reality, but i stripped it to one to save some 
space and making it easier to read.

  | import java.util.*;
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.ejb.Stateless;
  | import javax.persistence.*;
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.*;
  | import org.jboss.seam.log.Log;
  | import recepten.common.ObjectPool;
  | import recepten.entities.db.TeaserRecipe;
  | 
  | @Stateful
  | @Name(recipeTeaserService)
  | @Scope(ScopeType.SESSION)
  | public class RecipeTeaserServiceBean implements
  | recepten.actions.RecipeTeaserServiceLocal {
  | 
  | @Logger Log log;
  | 
  | @PersistenceContext(type = PersistenceContextType.EXTENDED)
  | private EntityManager em;
  | 
  | ObjectPoolTeaserRecipe recipePoolSidebarLeft1;
  | 
  | private TeaserRecipe recipeSidebarLeft1;
  | 
  | public RecipeTeaserServiceBean() {
  | }
  | 
  | @Create
  | public void initPools() {
  | // Create new objectPools
  | recipePoolSidebarLeft1 = new ObjectPoolTeaserRecipe();
  | 
  | // Create a pool of the pools
  | ArrayListObjectPoolTeaserRecipe poolList = new 
ArrayListObjectPoolTeaserRecipe();
  | poolList.add(recipePoolSidebarLeft1);   
  | 
  | // Get recipes from database
  | ListTeaserRecipe teaserRecipeList = em
  | .createQuery(
  | SELECT t FROM TeaserRecipe t 
WHERE t.show = true ORDER BY seq)
  | .getResultList();
  | 
  | int poolListIndex = 0;
  | for (TeaserRecipe teaserRecipe : teaserRecipeList) {
  | poolList.get(poolListIndex).add(teaserRecipe);
  | if (++poolListIndex == poolList.size()) {
  | poolListIndex = 0;
  | }
  | }
  | }
  | 
  | public TeaserRecipe getRecipeSidebarLeft1() {   
  | return recipeSidebarLeft1;
  | }
  | 
  | 
  | public void getNextTeaserRecipes() {
  | // Get next recipe from pool
  | recipeSidebarLeft1 = recipePoolSidebarLeft1.next(); 
  | }
  | 
  | @Destroy
  | @Remove
  | public void destroy() { 
  | }
  | 

ObjectPool:

  | package recepten.common;
  | 
  | import java.util.ArrayList;
  | import java.util.Collections;
  | 
  | public class ObjectPoolT {
  | 
  | ArrayListT list = new ArrayListT();
  | int pointer;
  | 
  | public ObjectPool() {}
  | 
  | public void add(T instance) {
  |   list.add (instance);
  | }
  | 
  | public T next(){
  | if (++pointer == list.size()) {
  | pointer = 0;
  | }
  | if (list.size () == 0) {
  |   return null;
  | }
  | return list.get(pointer);
  | }
  | 
  | public void shuffle() {
  |   Collections.shuffle (list);
  | }
  | }
  | 

TeaserRecipe:

  | @Entity
  | @Table(name = teaserrecipe)
  | public class TeaserRecipe implements Serializable {
  | 
  | @Id
  | @Column(name = recipeid, nullable = false)
  | private Integer recipeid;
  | 
  | @Column(name = headline)
  | private String headline;
  | 
  | @Column(name = teasertext)
  | private String teasertext;
  | 
  | @Column(name = seq, nullable = false)
  | private int seq;
  | 
  | @Column(name = show, nullable = false)
  | private boolean show;
  | 
  | @JoinColumn(name = recipeid, referencedColumnName = recipeid, 
insertable = false, updatable = false)
  | 

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - consumes much memory when number of servlets grows

2007-12-25 Thread unnis
I have one ear with size 140MB and has been deployed in jboss 3.2.5.and
runs smothly.

This ear contains files from 20 different modules. So i planned to split ear in 
to multiple war file in the following manner.

one main.ear contains main.jar and main.war.

Jar contains my EJB classes ( Number of EJB classes are very less in my 
application ). war file contains other common files and common jsp files.

seperate module jar files with following .

java classes of the particular module

pre-compiled Jsp files of the module jsp.( Since jsp's are pre compiled these 
entries will go to web.xml)

main.war will be having servlets entries of all the pre-compiled jsp's. The 
count comes around 6000. All these module jar files and ear is put in to deploy 
folder.But when I deploy it , it is found that jboss is taking 200MB more 
memory than the previous one.But still i am having 350 MB free memory in the 
system. And When I take the applet in jboss web-console memory usage increases 
gradually and finally throws outofmemeory error. But in the case of single ear 
this applet works well.


Any help is appreciated.

thanks  regards

unnis


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

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


[jboss-user] [EJB 3.0] - Re: Ejb 3 in Jboss 5 Beta 3

2007-12-25 Thread ALRubinger
Great; when back from holiday travels I'll take a look for you.

S,
ALR

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

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


[jboss-user] [Beginners Corner] - Re: hostname

2007-12-25 Thread mithilwane
JBoss version is 4.2.2 and jdk is 1.5.0_14

my hosts file has two entries

127.0.0.1 localhost
192.168.0.230 linuxserver myserver.server.com


jndi props looks like this

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://myserver.server.com:1099

i get this exception in my client

Running default port
D:\WorkCVS\EMS
Exception:javax.naming.CommunicationException [Root exception is 
java.rmi.UnknownHostException: Unknown host: myserver.server.com; nested 
exception is: 
java.net.UnknownHostException: myserver.server.com]
javax.naming.CommunicationException [Root exception is 
java.rmi.UnknownHostException: Unknown host: myserver.server.com; nested 
exception is: 
java.net.UnknownHostException: myserver.server.com]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at 
com.alphion.fm.client.FaultManageClient.init(FaultManageClient.java:48)
at 
com.lopsys.nms.client.fault.FaultManagerGUIClient.init(FaultManagerGUIClient.java:54)
at com.alphion.main.MainFrame.(MainFrame.java:111)
at com.alphion.main.MainFrame.main(MainFrame.java:571)
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 com.alphion.main.EMSSplash.main(EMSSplash.java:57)
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 com.alphion.main.WelcomeFrame.main(WelcomeFrame.java:167)
Caused by: java.rmi.UnknownHostException: Unknown host: myserver.server.com; 
nested exception is: 
java.net.UnknownHostException: myserver.server.com
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:572)
at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
... 16 more
Caused by: java.net.UnknownHostException: myserver.server.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.(Socket.java:367)
at java.net.Socket.(Socket.java:180)
at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 21 more
java.lang.reflect.InvocationTargetException
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 com.alphion.main.EMSSplash.main(EMSSplash.java:57)
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 com.alphion.main.WelcomeFrame.main(WelcomeFrame.java:167)
Caused by: java.lang.NullPointerException
at 
com.alphion.fm.client.FaultManageClient.addAlpClientEventListener(FaultManageClient.java:75)
at 
com.lopsys.nms.client.fault.FaultManagerGUIClient.init(FaultManagerGUIClient.java:55)
at com.alphion.main.MainFrame.(MainFrame.java:111)
at com.alphion.main.MainFrame.main(MainFrame.java:571)
... 10 more


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

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

[jboss-user] [JBoss Portal] - Custom Tomcat Value Implementation - Dashboard Access Denied

2007-12-25 Thread groovenarula
I'm trying to integrate JBoss Portal with an existing 'Single Sign On' 
framework that works similar to how Site Minder works. We don't have the option 
to swap out the framework so we don't have a choice but figure out how to get 
this to work. 

The framework authenticates the user and provides the users identity through a 
HTTP Header. I am thinking of creating a custom 'Tomcat Value' that will read 
the user's login name from the HTTP header and then use that to set the 
'request's' principal. In order to test this theory, I have the following code 
that set's the request's principal to 'admin' :

public void invoke(Request request, Response response)
throws IOException, ServletException {

List roles = new ArrayList();
String username = admin;

roles.add(Authenticated);
roles.add(Admin);
roles.add(User);

request.setUserPrincipal(new CustomPrincipal(
  request.getContext().getRealm(), username, roles));

// now execute all other valves
getNext().invoke(request, response);
  }

On accessing the portal, the portal does indicate that I've 'Logged in as: 
admin'. However when I click on the 'Dashboard' link, I get a '403 - Access 
denied error'. 

What am I missing here ? We are in the process of evaluating different portals 
for our next project and am convinced that JBoss portal will be the right fit 
for us. So I really need to get this working with our framework. 

If I'm using the worng technique and please do let me know that as well. Any 
help will be truly appreciated.

Thanks
Groove


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

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


[jboss-user] [Messaging, JMS JBossMQ] - Error in running the example web-service

2007-12-25 Thread Neha2911
When im running my jboss messaging web-service example i encounter following 
error.
Im using 
Java Version : JDK1.5 ,
JBoss Version  : jboss-4.2.2.GA 
Jboss Messaging : jboss-messaging-1.4.0.SP1.

My other examples such as queue n mdb are running fine.

###
  |  [echo] The queue:  testQueue
  |  [echo] The client jar: ../..//jboss-messaging-client.jar
  | 
  | sanity-check:
  | 
  | init:
  | 
  | compile:
  | 
  | war:
  | 
  | deploy:
  | 
  | sleep:
  |  [echo] Sleeping for 10 seconds ...
  | 
  | run-wsdl-client:
  |   [get] Getting: 
http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
  | wsdl
  |   [get] To: 
C:\jboss-messaging-1.4.0.SP1\examples\web-service\output\service
  | .wsdl
  |   [wstools] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: 
file:/C:/jbo
  | ss-messaging-1.4.0.SP1/examples/web-service/./output/service.wsdl
  |   [wstools] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class 
org.j
  | boss.wsf.spi.management.ServerConfigFactory'
  |   [wstools] DEBUG [main] (JavaToXSD.java:175) - Load schema: 
http://endpoint.web
  | 
services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_e
  | ndpoint.webservices.jms.example.jboss.org_24007.xsd
  |   [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=n
  | 
ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
  | s.example.jboss.org_24007.xsd]
  |   [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=h
  | ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - 
Typemapping loo
  | kup failed for null
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling 
back to
  |  identifier generation
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - 
Typemapping loo
  | kup failed for null
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling 
back to
  |  identifier generation
  | 
  | compile-client:
  | [javac] Compiling 4 source files to 
C:\jboss-messaging-1.4.0.SP1\examples\we
  | b-service\output\client-classes
  | 
  | run:
  | 
  | send-and-receive:
  |  [java] DEBUG [main] (JAXRPCClientMetaDataBuilder.java:103) - START 
buildMet
  | aData: 
[service={http://endpoint.webservices.jms.example.jboss.org/}JMSSampleSer
  | vice]
  |  [java] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: 
http://127.0
  | .0.1:8080/jms-web-service/JMSWebServiceExample?wsdl
  |  [java] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class 
org.j
  | boss.wsf.spi.management.ServerConfigFactory'
  |  [java] DEBUG [main] (JavaToXSD.java:175) - Load schema: 
http://endpoint.web
  | 
services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_e
  | ndpoint.webservices.jms.example.jboss.org_35128.xsd
  |  [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=n
  | 
ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
  | s.example.jboss.org_35128.xsd]
  |  [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=h
  | ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
  |  [java] java.lang.IllegalArgumentException: Cannot obtain wsdl service: 
{htt
  | p://endpoint.webservices.jms.example.jboss.org/}JMSSampleService
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceImpl.init(ServiceImp
  | l.java:111)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
  | ice(ServiceFactoryImpl.java:157)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
  | ice(ServiceFactoryImpl.java:142)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.sendMessage(C
  | lient.java:75)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.example(Clien
  | t.java:58)
  |  [java] at 
org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
  | t.java:161)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.main(Client.j
  | ava:117)
  |  [java]
  |  [java] #
  |  [java] ###   FAILURE!   ###
  |  [java] #
  | 
  | BUILD FAILED
  | C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:157: The 
following e
  | rror occurred while executing this line:
  | C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:166: Java 
returned:
  | 

[jboss-user] [JBossWS] - Error in implementing web-service given in JBoss Messaging

2007-12-25 Thread Neha2911
When im running my jboss messaging web-service example i encounter following 
error.
Im using
Java Version : JDK1.5 ,
JBoss Version : jboss-4.2.2.GA
Jboss Messaging : jboss-messaging-1.4.0.SP1.

My other examples such as queue n mdb are running fine.


  | ###
  |  [echo] The queue:  testQueue
  |  [echo] The client jar: ../..//jboss-messaging-client.jar
  | 
  | sanity-check:
  | 
  | init:
  | 
  | compile:
  | 
  | war:
  | 
  | deploy:
  | 
  | sleep:
  |  [echo] Sleeping for 10 seconds ...
  | 
  | run-wsdl-client:
  |   [get] Getting: 
http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
  | wsdl
  |   [get] To: 
C:\jboss-messaging-1.4.0.SP1\examples\web-service\output\service
  | .wsdl
  |   [wstools] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: 
file:/C:/jbo
  | ss-messaging-1.4.0.SP1/examples/web-service/./output/service.wsdl
  |   [wstools] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class 
org.j
  | boss.wsf.spi.management.ServerConfigFactory'
  |   [wstools] DEBUG [main] (JavaToXSD.java:175) - Load schema: 
http://endpoint.web
  | 
services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_e
  | ndpoint.webservices.jms.example.jboss.org_24007.xsd
  |   [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=n
  | 
ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
  | s.example.jboss.org_24007.xsd]
  |   [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=h
  | ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - 
Typemapping loo
  | kup failed for null
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling 
back to
  |  identifier generation
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - 
Typemapping loo
  | kup failed for null
  |   [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling 
back to
  |  identifier generation
  | 
  | compile-client:
  | [javac] Compiling 4 source files to 
C:\jboss-messaging-1.4.0.SP1\examples\we
  | b-service\output\client-classes
  | 
  | run:
  | 
  | send-and-receive:
  |  [java] DEBUG [main] (JAXRPCClientMetaDataBuilder.java:103) - START 
buildMet
  | aData: 
[service={http://endpoint.webservices.jms.example.jboss.org/}JMSSampleSer
  | vice]
  |  [java] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: 
http://127.0
  | .0.1:8080/jms-web-service/JMSWebServiceExample?wsdl
  |  [java] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class 
org.j
  | boss.wsf.spi.management.ServerConfigFactory'
  |  [java] DEBUG [main] (JavaToXSD.java:175) - Load schema: 
http://endpoint.web
  | 
services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_e
  | ndpoint.webservices.jms.example.jboss.org_35128.xsd
  |  [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=n
  | 
ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
  | s.example.jboss.org_35128.xsd]
  |  [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: 
[pub=h
  | ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
  |  [java] java.lang.IllegalArgumentException: Cannot obtain wsdl service: 
{htt
  | p://endpoint.webservices.jms.example.jboss.org/}JMSSampleService
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
  |  [java] at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
  | der.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceImpl.init(ServiceImp
  | l.java:111)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
  | ice(ServiceFactoryImpl.java:157)
  |  [java] at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
  | ice(ServiceFactoryImpl.java:142)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.sendMessage(C
  | lient.java:75)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.example(Clien
  | t.java:58)
  |  [java] at 
org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
  | t.java:161)
  |  [java] at 
org.jboss.example.jms.webservices.client.Client.main(Client.j
  | ava:117)
  |  [java]
  |  [java] #
  |  [java] ###   FAILURE!   ###
  |  [java] #
  | 
  | BUILD FAILED
  | C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:157: The 
following e
  | rror occurred while executing this line:
  | C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:166: Java 
returned:
  

[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException: queue not bound

2007-12-25 Thread bidhudas
Now the queue issue is resolved. But server is not getting started. Its getting 
shutdown after one minute( it shows as restartign in server window). Getting 
following in the console.

Please let me know how to resolve this at the earliest.


anonymous wrote : --- Packages waiting for a deployer ---
  | [EMAIL PROTECTED] { 
url=file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk }
  |   deployer: null
  |   status: null
  |   state: INIT_WAITING_DEPLOYER
  |   watch: 
file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk
  |   altDD: null
  |   lastDeployed: 1198650020906
  |   lastModified: 1198650020906
  |   mbeans:
  | 
  | --- Incompletely deployed packages ---
  | [EMAIL PROTECTED] { 
url=file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk }
  |   deployer: null
  |   status: null
  |   state: INIT_WAITING_DEPLOYER
  |   watch: 
file:/D:/softs/JBoss/jboss-4.2.1.GA/server/DAS-web/deploy/deploy.lnk
  |   altDD: null
  |   lastDeployed: 1198650020906
  |   lastModified: 1198650020906
  |   mbeans:
  | 
  | 
  | 07:20:21,156 INFO  [Http11Protocol] Démarrage de Coyote HTTP/1.1 sur 
http-127.0.0.1-8087
  | 07:20:21,171 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on 
ajp-127.0.0.1-8009
  | 07:20:21,187 INFO  [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: 
SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 8s:703ms

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

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

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


[jboss-user] [JBoss Seam] - Re: Possible to turn off validation for search value object

2007-12-25 Thread jazir1979
Hi Thorsten,

Yes, you just need to make sure your search field is not wrapped in s:validate 
or s:validateAll tags.  There was somebody else with this problem a few days 
ago, and they had s:decorate with the edit.xhtml template which includes the 
validate tags.

Hibernate validation will only occur at the UI level if your fields are wrapped 
in these tags.  It will also occur if you try to persist the entity, but I 
imagine you aren't doing this when using it as a search object.

hope this helps,
Daniel.

SunFire wrote : I have a User class which has an email string field annotated 
with @NotNull @Email.
  | I used seam-gen to generate everything for it. UserList, UserHome, etc. Now 
when I try to search for a username in the generated UserList.xhtml I get an 
error must be a well-formed email address. So I guess that even for the 
object used to hold the search parameters validation is enabled. Is it possible 
to turn this off? Don't think it makes any sense at all to validate search 
strings. Now I could write an extra class to only hold the search parameters 
but switching validation off for the search parameter object would seem nicer 
to me.
  | 
  | Thanks, Thorsten

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

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


[jboss-user] [JBoss jBPM] - which database table used for storing the classes that in t

2007-12-25 Thread rainhust
in jbpm user guide , mention can deploy the delegate classes to jbpm database 
at  18.2.2. The process class loader

Delegation classes are loaded with the process class loader of their respective 
process definition. The process class loader is a class loader that has the 
jBPM classloader as a parent. The process class loader adds all the classes of 
one particular process definition. You can add classes to a process definition 
by putting them in the /classes folder in the process archive. Note that this 
is only useful when you want to version the classes that you add to the process 
definition. If versioning is not necessary, it is much more efficient to make 
the classes available to the jBPM class loader.

If the resource name doesn't start with a slash, resources are also loaded from 
the /classes directory in the process archive. If you want to load resources 
outside of the classes directory, start with a double slash ( // ). For example 
to load resource data.xml wich is located next to the processdefinition.xml on 
the root of the process archive file, you can do 
clazz.getResource(//data.xml) or 
classLoader.getResourceAsStream(//data.xml) or any of those variants.

which table used for storing the classes. thx. 

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

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


[jboss-user] [Beginners Corner] - Re: No Persistence provider for EntityManager

2007-12-25 Thread jhannoy
I'm getting the following exception while running the client app:


  | E:\StateMonitorant run.client
  | Buildfile: build.xml
  | 
  | prepare:
  | 
  | compile:
  | 
  | ejbjar:
  | 
  | run.client:
  |  [java] Created Class...
  |  [java] MonitorRemote Sateless...
  |  [java] java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetExcept
  | ion
  |  [java] at 
org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:526)
  |  [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
  |  [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
 [java] at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
  | )
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
  | StatelessInstanceInterceptor.java:54)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
  | uthenticationInterceptor.java:77)
  |  [java] at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
  | Ejb3AuthenticationInterceptor.java:110)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
  | nInterceptor.java:46)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
  | ynchronousInterceptor.java:106)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
  | telessContainer.java:304)
  |  [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |  [java] at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
  | e(AOPRemotingInvocationHandler.java:82)
  |  [java] at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
  | 9)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.processInvoc
  | ation(ServerThread.java:573)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.dorun(Server
  | Thread.java:373)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
  | read.java:166)
  |  [java] Caused by: java.lang.reflect.InvocationTargetException
  |  [java] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  |  Method)
  |  [java] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
  | onstructorAccessorImpl.java:39)
  |  [java] at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
  | egatingConstructorAccessorImpl.java:27)
  |  [java] at 
java.lang.reflect.Constructor.newInstance(Constructor.java:49
  | 4)
  |  [java] at 
org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:514)
  |  [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:66)
  |  [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
  | )
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
  | StatelessInstanceInterceptor.java:54)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
  | uthenticationInterceptor.java:77)
  |  [java] at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
  | Ejb3AuthenticationInterceptor.java:110)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
  | nInterceptor.java:46)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
  | ynchronousInterceptor.java:106)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
  | telessContainer.java:304)
  |  [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |  [java] at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
  | e(AOPRemotingInvocationHandler.java:82)
  |  [java] at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
  | 9)
  |  [java] at 

[jboss-user] [JBoss Seam] - Integration Testing - Render Response phase

2007-12-25 Thread Nogard
Hi all.

I'm using Seam 2.0.1.CR1 and trying to write Seam integration test. I took one 
from the examples as an example :). Here is the test code (it extends SeamTest):

  | @Test
  | public void testLogin() throws Exception {
  | new FacesRequest(/login.xhtml) {
  | @Override
  | protected void updateModelValues() throws Exception {
  | setValue(#{identity.username}, 
ADMIN_USERNAME);
  | setValue(#{identity.password}, 
ADMIN_PASSWORD);
  | }
  | 
  | @Override
  | protected void invokeApplication() throws Exception {
  | invokeAction(#{identity.login});
  | }
  | 
  | @Override
  | protected void renderResponse() throws Exception {
  | assert (Boolean) 
getValue(#{identity.loggedIn});
  | }
  | }.run();
  | 
Everything works fine updateModelValues and invokeApplication methods are 
invoked, authentication is successfull, but renderResponse method is not 
invoked. I debug it and found this piece of code in emulateJsfLifecycle method 
of BaseSeamTest class:


  | if ( skipRender() )
  |  {
  | // we really should look at redirect parameters here!
  | return false;
  |  }
  |  else
  |  {
  | renderResponsePhase();
  | return true;
  |  }
  | 
so skipRender method always returns true and it has only one row inside:

  | FacesContext.getCurrentInstance().getResponseComplete();
  | 
Could anybody explain why it happens, why response is complete, and why 
renderResponsePhase should be invoked only if it's not? 

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

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


[jboss-user] [Beginners Corner] - Re: No Persistence provider for EntityManager

2007-12-25 Thread jhannoy
Modified the code little bit... and now getting the following exception:


  | E:\E_WSPACE_EURO\StateMonitorant run.client
  | Buildfile: build.xml
  | 
  | prepare:
  | 
  | compile:
  | 
  | ejbjar:
  | 
  | run.client:
  |  [java] Created Class...
  |  [java] MonitorRemote Sateless...
  |  [java] java.lang.RuntimeException: Non matching type for inject of 
field: p
  | rotected javax.persistence.EntityManager session.MonitorBean.em for type: 
org.
  | jboss.ejb3.entity.InjectedEntityManagerFactory of jndiName 
env/session.Monitor
  | Bean/em
  |  [java] intfs: , javax.persistence.EntityManagerFactory, 
java.io.Externaliza
  | ble
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:128)
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:106)
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:63)
  |  [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:111)
  |  [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
  | )
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
  | StatelessInstanceInterceptor.java:54)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
  | uthenticationInterceptor.java:77)
  |  [java] at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
  | Ejb3AuthenticationInterceptor.java:110)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
  | nInterceptor.java:46)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
  | ynchronousInterceptor.java:106)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(Sta
  | telessContainer.java:304)
  |  [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |  [java] at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invok
  | e(AOPRemotingInvocationHandler.java:82)
  |  [java] at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
  | 9)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.processInvoc
  | ation(ServerThread.java:573)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.dorun(Server
  | Thread.java:373)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
  | read.java:166)
  |  [java] Caused by: java.lang.IllegalArgumentException
  |  [java] at 
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFie
  | ldAccessorImpl.java:63)
  |  [java] at java.lang.reflect.Field.set(Field.java:656)
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:116)
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:106)
  |  [java] at 
org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjecto
  | r.java:63)
  |  [java] at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:111)
  |  [java] at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50
  | )
  |  [java] at 
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(
  | StatelessInstanceInterceptor.java:54)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(A
  | uthenticationInterceptor.java:77)
  |  [java] at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(
  | Ejb3AuthenticationInterceptor.java:110)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagatio
  | nInterceptor.java:46)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv
  | ocation.java:101)
  |  [java] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(As
  | ynchronousInterceptor.java:106)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInv