[jboss-user] [EJB/JBoss] - Re: Return from session bean takes ~60 seconds

2007-07-18 Thread kratosh
Hi,
I will do that maybe for a short time when it happens again.
But does anyone have any idea what it can be? did anyone encounter such problem?

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

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


[jboss-user] [JBoss Seam] - Re: seam link with parameter

2007-07-18 Thread grdzeli_kaci
i did it by jsf params, is it correct way ? i don't like url parameters. can 
anybody tell me another way ??


it someone want this component i can give it.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - jsf deployment in jboss 5.0 beta

2007-07-18 Thread walkinwood
hi
 i am deployeing simple hellojsf.war file in jboss 5.0 beta version.but it 
throws an exception

vfsfile:/C:/jboss5/server/ALL/deploy/hellojsf.war -> org.xml.sax.SAXException: T
argetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/j2ee', but the
 target namespace of the schema document is 'http://java.sun.com/xml/ns/javaee'.
 @ http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd[8,20]




[/img]

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

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


[jboss-user] [JBoss Seam] - Re: this forum / max topics per page

2007-07-18 Thread baz
The possibility to edit my own posts will be helpful.
e.g. rrask should mean raise

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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0 Beta - Property 'facesContext' not found on t

2007-07-18 Thread FabBoco
Any idea ?



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

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


[jboss-user] How to do the clustering and load-balancing in JBoss server 4.0.1-RC2

2007-07-18 Thread usharani avirneni
Hi all,
  I am using jboss server(4.0.1-RC2).
   
 I started the jboss server with the default cluster on two different 
machines(say A and B) with the following command: run -c all
   
 Then I copied packaged war file in the farm folder in the machine A. It is 
replicating the war file in the machine B.
   
Now I have one problem. We are using properties file contains the machine 
address/name and this file is part of war file. Whenever I am copying the war 
file in one machine, it is replicating to second machine. I copied the war file 
in A machine with it's address in the properties file. If the machine A's 
server was down and B's server is up and running then how it will handle the 
requests with it's address in the properties. How can I fix this problem.
   
 Am I in right direction or not. If not can anybody please help me to do 
the clustering and load-balancing in JBoss server. I am new to this.
   
 Thanks in advance.

   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - java.sql.SQLException: Bigger type length than Maximum

2007-07-18 Thread Rajesh.Gajula
Hi, 

I have an application deployed in jboss cluster and deployment fine.
when i tried to access the fields in the application , i got the below 
exceptions in the logs .. 

INFO   | jvm 5| 2007/07/19 04:38:25 | 04:38:25,343 ERROR 
[ManualAdjustmentAction] Error in action classINFO   | jvm 5| 2007/07/19 
04:38:25 | com.ge.hc.osb.exception.OSBException: SQL Exception :
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
com.ge.hc.osb.dao.ManualAdjustmentDAO.getDetailList(ManualAdjustmentDAO.java:117)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
com.ge.hc.osb.service.ManualAdjustmentService.getDetailList(ManualAdjustmentService.java:50)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
com.ge.hc.osb.action.ManualAdjustmentAction.viewManualAdjustmentPage(ManualAdjustmentAction.java:113)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
java.lang.reflect.Method.invoke(Method.java:585)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
com.ge.hc.osb.action.OSBActionServlet.process(OSBActionServlet.java:94)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
com.ge.hc.osb.action.AuthorizationFilter.doFilter(AuthorizationFilter.java:109)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:366)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
INFO   | jvm 5| 2007/07/19 04:38:25 |   at 
org.apache.coyote.http11.Htt

[jboss-user] [JCA/JBoss] - Performance Vows ?

2007-07-18 Thread jsbhangra
Hi All...

I have built a web-application , which connects to the Oracle 10g Express 
edition at the backend..

I have set the maximum connection pool size to 1500 connections ..

But while load testing according to the client requirements ,1200 requests per 
minute.

The connection breaks up , which makes some requests   unprocessed ..
I have set my oracle processes to 400 ...

Help me in performance tuning my application 

My Database Connection file is :


 
  | 
  | public class Database {
  | 
  |   
  | public Database() {
  | }
  | 
  |   
  | private static InitialContext ic=null;
  | private static Context ctx=null;
  | private static DataSource ds=null;
  | private static Connection con=null;
  | private static int  makeCount=0;
  | private static int  dropCount=0;
  | 
  | /**
  |  *Makes Connection with database Returns Connection Object
  |  */
  |   
  | public synchronized static Connection makeConnection() throws Exception 
{
  | try{
  |
  |  InitialContext ctx = new InitialContext();
  |   ds = (DataSource)ctx.lookup("java:mydatasource");
  |con =ds.getConnection();
  | 
  | log.info("Data Base Connection Created Sucessfully" + ds + con);
  | makeCount++;
  | log.info("Connections Made"+makeCount);
  | } catch (Exception e) {
  | log.error("Can not create Connection :"+ e);
  | }
  | return con;
  | }
  | 
  | /**
  |  * @param Connection Object
  |  * Closes the database Connection
  |  */
  | 
  | public synchronized  static  void dropConnection(Connection con) {
  | try {
  | 
  | log.info("Closing Connection");
  | 
  | dropCount++;
  | log.info("Connections Dropped"+dropCount);
  | 
  | if ( con != null) {
  |con.close();
  | }
  | } catch (Exception e) {
  | // Could not drop connection
  | e.printStackTrace();
  | } finally {
  | con = null;
  | }
  | }
  | 
  | }
  | 

I ecounter this problem ... for some requests i f i icrease the requests more 
than 1200 per minute 

  | ; - nested throwable: (org.jboss.resource.JBossResourceException: Could not 
create connection; - nested throwable: (java.sql.SQLException: Listener refused 
the connection with the following error:
  | ORA-12519, TNS:no appropriate service handler found
  | The Connection descriptor used by the client was:
  | localhost:1521:XE
  | ))




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

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


[jboss-user] [JCA/JBoss] - Re: Non Serialized XAResources Warnings with JBoss 4.2, Post

2007-07-18 Thread jantzen
Yay for title truncation.  That's PostgreSQL 8.1.9 

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

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


[jboss-user] [JCA/JBoss] - Non Serialized XAResources Warnings with JBoss 4.2, PostgreS

2007-07-18 Thread jantzen
I'm trying to migrate from 4.0.5 to 4.2, and I'm hitting problems with my 
datasources.  I learned in this process that 4.2 does not support multiple 
local TX datasources 
(http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988662).  So, I 
changed my datasources to be XA's. But, now I get these warnings every few 
minutes for all three of my datasources.


  | 21:31:10,147 WARN  [loggerI18N] 
[com.arjuna.ats.internal.jta.resources.arjunacore.norecoveryxa] 
[com.arjuna.ats.internal.jta.resources.arjunacore.norecoveryxa] Could not find 
new XAResource to use for recovering non-serializable XAResource < 131075, 28, 
26, 1-7f01:ba8a:469ed3e6:2097f01:ba8a:469ed3e6:213
  | 

My questions:
What does this mean?
What problems will this lead to?
Is there an inexpensive solution?

Thanks

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

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


[jboss-user] [Remoting] - RMI over HTTP performance

2007-07-18 Thread caultonpos
Are there any performance tips you can share?  I have RMI running over HTTP 
following http://wiki.jboss.org/wiki/Wiki.jsp?page=EJBOverHTTP with a clean 
version of 4.2.0

It is relatively slow, considering my connection and the client and server 
hardware.  As a test case I have a single object with around 50 fields that I 
pull from the server.   Locally I get

local execute x100  12ms avg   max 63ms

Over RMI/HTTP to my server

wan execute x100710ms avg  max 906ms

*** 50 times slower
I have a fast cable internet connection, the server is dedicated with 
reasonably comparable specs.

Testing the retrieval of 400 large objects all at one 

LAN RMI
local execute x5  2237ms avg   max 2516ms

WAN RMI over HTTP
wan execute x5  9871ms avg max 10422ms

*** 4 times slower


So perhaps there is call overhead that can be tuned?

thanks

Greg

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

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


[jboss-user] [EJB 3.0] - Re: Problem in deployment of ejb 3 in JBoss Server using Ora

2007-07-18 Thread ashusri000
HI , 
I am using Oracle 10g , the same configuration as you are using . 
Actually I wished if you could give me the configuration details such as 
-.ds.xml files along with the packaging details of the ear/ jar  files. It 
would be very kind of you if I could get some respite from you in this regard.
  Expecting a relief from you soon.

Regards


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

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


[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-18 Thread ejbiva
hi ALRubinger,the SessionBean just as follows
@Stateful
public class ShoppingCartBean implements ShoppingCart
{
   @Inject
   private EntityManager manager;
   private Order order;

   public void buy(String product, int quantity, double price)
   {
  if (order == null) order = new Order();
  order.addPurchase(product, quantity, price);
   }

   public Order getOrder()
   {
  return order;
   }


   public void checkout()
   {
  manager.create(order);
   }
}
/// Entity bean
@Entity
@Table(name = "PURCHASE_ORDER")
public class Order implements java.io.Serializable
{
   private int id;
   private double total;
   private Collection lineItems;

   @Id(generate = GeneratorType.AUTO)
   public int getId()
   {
  return id;
   }

   public void setId(int id)
   {
  this.id = id;
   }

   public double getTotal()
   {
  return total;
   }

   public void setTotal(double total)
   {
  this.total = total;
   }

   public void addPurchase(String product, int quantity, double price)
   {
  if (lineItems == null) lineItems = new ArrayList();
  LineItem item = new LineItem();
  item.setOrder(this);
  item.setProduct(product);
  item.setQuantity(quantity);
  item.setSubtotal(quantity * price);
  lineItems.add(item);
  total += quantity * price;
   }

   @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
   @JoinColumn(name = "order_id")
   public Collection getLineItems()
   {
  return lineItems;
   }

   public void setLineItems(Collection lineItems)
   {
  this.lineItems = lineItems;
   }
}

@Entity
@Table(name = "order_line_item")
public class LineItem implements java.io.Serializable
{
   private int id;
   private double subtotal;
   private int quantity;
   private String product;
   private Order order;


   @Id(generate = GeneratorType.AUTO)
   public int getId()
   {
  return id;
   }

   public void setId(int id)
   {
  this.id = id;
   }

   public double getSubtotal()
   {
  return subtotal;
   }

   public void setSubtotal(double subtotal)
   {
  this.subtotal = subtotal;
   }

   public int getQuantity()
   {
  return quantity;
   }

   public void setQuantity(int quantity)
   {
  this.quantity = quantity;
   }

   public String getProduct()
   {
  return product;
   }

   public void setProduct(String product)
   {
  this.product = product;
   }

   @ManyToOne
   @JoinColumn(name = "order_id")
   public Order getOrder()
   {
  return order;
   }

   public void setOrder(Order order)
   {
  this.order = order;
   }
}
/// and testing console as follows
public class Client
{
   public static void main(String[] args) throws Exception
   {
  InitialContext ctx = new InitialContext();
//  ShoppingCart cart = (ShoppingCart) 
ctx.lookup(ShoppingCart.class.getName());
//Calculator calculator = (Calculator) ctx.lookup("CalculatorBean/remote");
ShoppingCart cart = (ShoppingCart) 
ctx.lookup("ShoppingCartBean/remote");
  System.out.println("Buying 2 memory sticks");
  cart.buy("Memory stick", 2, 500.00);
  System.out.println("Buying a laptop");
  cart.buy("Laptop", 1, 2000.00);

  System.out.println("Print cart:");
  Order order = cart.getOrder();
  System.out.println("Total: $" + order.getTotal());
  for (LineItem item : order.getLineItems())
  {
 System.out.println(item.getQuantity() + " " + item.getProduct() + 
" " + item.getSubtotal());
  }

  System.out.println("Checkout");
  cart.checkout();

   }
}

any defect?

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

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


[jboss-user] [JBoss Portal] - header.jsp - How To?

2007-07-18 Thread explorer
Hi, 

Environment:

Portal2.6
JBoss4.2

I am trying to write a new header.jsp, specific to the project.
How to go about this? i am really confused. 

Documentation says that  jboss-portal.sar 's joboss-service.xml needs to 
updated with the context path pointing to the custom header.jsp., But does that 
mean that the applicationi am building needs to be in the JBoss-Portal.sar?

the structure is

  | |->deploy
  | |->myportal.war
  | |->jboss-prtal.sar
  |  |->META-INF
  |   |->jboss-service.xml
  | 
Where does my application "MyPortal" need to go? if its to be outside of .sar 
how to implement a custom header.jsp

i have the custom header.jsp and tabs.jsp in myportal.war.
i am trying to define my own theme and layout.

Please advice me of any tutorials/sites which could explain these. the 2.6 
documentation is good but do not explain things in detail.

Thanks in advance..




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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - What to do if JBoss keeps going out to lunch?

2007-07-18 Thread jwiegley
Hello, I'm running a webapp on JBoss 4.0.5GA.  It runs fine most of the time.

However -- and this happens almost every day -- there comes a moment when JBoss 
seems to go "out to lunch".  Once this happens, the following is all I ever see 
when trying to use my webapp:

java.rmi.NoSuchObjectException: Could not activate; failed to restore state
  | at 
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:134)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:236)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | at org.jboss.ejb.plugins.TxInterce...

This of course gives the impression of extreme instability, since the only way 
I've found to fix this is to undeploy everything and restart JBoss.

How do I counteract this?  Why is it happening?  I need 100% uptime, and I'm 
not even really doing anything serious once this starts happening.

Any ideas appreciated,
  John

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

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


[jboss-user] [Clustering/JBoss] - ServiceLocator and caching home interfaces in a cluster. Ple

2007-07-18 Thread Alenaal
I am relatively new to clustering so please do not send me to read 
documentation. I have read all I could find.
I also read JBoss documentation on clustering but yet I do not entirely 
understand. At the end of the message there is a quote from JBoss documentation 
but I still need explanation in plain language. Can anyone please answer

I think about implementing ServiceLocator that caches home interfaces in a 
cluster. Yes, I know that it will be a one singleton per JVM. So I have 3 
nodes, I will have 3 singletons. Is there a problem with that?

In a clustered environment (JBoss 4.0.5, a few nodes, sticky is off) are home 
interfaces bound to a specific node in the cluster or not? In other words  can 
I or can I not...?

1. can I safely cache reference to a home interface (EJBHome) to a session bean 
in a ServiceLocator ?
2. can I safely cache reference to a home interface to a entity bean in a 
ServiceLocator ?
3. can I safely cache LOCAL home interface (EJBLocalHome) in a ServiceLocator ?

I use HA-JNDI (I think that I do since I put "localhost:1100" into 
Context.PROVIDER_URL). This means I DO use HA-JNDI. Correct?

I create InitialContext as:
  {
...
  Hashtable environment = new Hashtable();
  environment.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  environment.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  environment.put(Context.PROVIDER_URL, "localhost:1100");  

  return new InitialContext(environment);
..
and I use True in META-INF\jboss.xml for all my beans 





Below is a quote from section 1.2.1 How it works from "The JBoss 4 Application 
Server Clustering Guide " On the server side, new InitialContext(), will be 
bound to a local-only, non-cluster-wide JNDI Context (this is actually basic 
JNDI). So, all EJB homes and such will not be bound to the cluster-wide JNDI 
Context, but rather, each home will be bound into the local JNDI. When a remote 
client does a lookup through HA-JNDI, HA-JNDI will delegate to the local JNDI 
Context when it cannot find the object within the global cluster-wide Context. 
The detailed lookup rule is as follows.

- If the binding is available in the cluster-wide JNDI tree and it returns it.
- If the binding is not in the cluster-wide tree, it delegates the lookup query 
to the local JNDI service and returns the received answer if available.
- If not available, the HA-JNDI services asks all other nodes in the cluster if 
their local JNDI service owns such a binding and returns the an answer from the 
set it receives.
- If no local JNDI service owns such a binding, a NameNotFoundException is 
finally raised."


Thanks to anyone who answers or just reads 

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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread ramdas
Was wondering since i am unable to capture the stats using JMX, was there a way 
to set a particular log level on the jgroups package without hurting the 
performance of the existing system. Currently the app does not have any logging 
enabled for the jgroups category. Was hoping to get some information via 
logging on the status of the jgroups workings as these threads block.  
Since all the appservers in our cluster are behaving very similarly, was 
wondering why FC had to block to syn up senders with receivers. Something here 
does not sound right. 

Thanks

Ramdas


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

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


[jboss-user] [JBossWS] - Re: Error in JBossWS with large attachment

2007-07-18 Thread cheokfan
I am using Jboss 4.2GA so that the version of JbossWS is 1.2.1GA. I shall 
download the 2.0 to try. Thanks for your reply.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: JMS exception: javax.jms.IllegalStateException: Method n

2007-07-18 Thread loseyourself
Thanks for the replay, guys.

ok, I am building a new listener and currently it works fine if it is set 
within the servlet. I try to deploy it as a MBean service, but always get 
ClassNotFond exception, details at:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4065616#4065616

any idea?

thanks,
hj

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Deploy Message listener as MBean service get No ClassLoaders

2007-07-18 Thread loseyourself
Greetings all, 

I am using JBoss 3.2.5 to implement a mail listener and deploy it as an MBean 
service. I follow the sample of HelloWorld mbean service tutorial on the wiki 
site, 
1. create an interface: 
public interface TopicMailListenerMBean extends ServiceMBean{ 
public String getName(); 
public void setName(String name); 
public String getUrl(); 
public void setUrl(String url); 
public void disconnect() throws JMSException; 
} 
2. create mbean class: 
public class TopicMailListener extends ServiceMBeanSupport 
implements MessageListener, TopicMailListenerMBean { 
public void onMessage(Message msg) {...} 
... 
} 
3. create a jboss-service.xml 
 
< server> 
< mbean code="au.gov.nsw.community.mail.TopicMailListener" 
name="au.gov.nsw.community.mail:service=TopicMailListener"> 
< attribute name="Url">10.65.240.244:1099< /attribute> 
< attribute name="Name">topic/testTopic< /attribute> 
< /mbean> 
< /server>

4. deploy the war to jboss, and rename it to .sar, the hirarche of the sar is: 
Docs.sar 
Docs.sar/META-INF/jboss-service.xml 
Docs.sar/au/gov/nsw/community/mail/TopicMailListener.class 
Docs.sar/au/gov/nsw/community/mail/TopicMailListenerMBean.class 

Now, once I deploy the .sar in the JBOSSHOME/server/all/deploy, I always get 
following exceiption: 
2007-07-18 12:33:05,640 DEBUG [org.jboss.system.ServiceCreator] About to create 
bean: au.gov.nsw.community.mail:service=TopicMailListener with code: 
au.gov.nsw.community.mail.TopicMailListener 
2007-07-18 12:33:05,671 DEBUG [org.jboss.deployment.SARDeployer] create 
operation failed for package 
file:/D:/Adobe/LiveCycle/jboss/server/all/deploy/Docs.sar 
org.jboss.deployment.DeploymentException: No ClassLoaders found for: 
au.gov.nsw.community.mail.TopicMailListener; - nested throwable: 
(java.lang.ClassNotFoundException: No ClassLoaders found for: 
au.gov.nsw.community.mail.TopicMailListener) 
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139) 
at org.jboss.system.ServiceController.install(ServiceController.java:198) 
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:324) 
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) 
at $Proxy4.install(Unknown Source) 
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:204) 
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790) 
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644) 
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) 
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:324) 
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) 
at $Proxy7.deploy(Unknown Source) 
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
 
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
 
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
 
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
 
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
 
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: 
au.gov.nsw.community.mail.TopicMailListener 
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:275) 
at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:178)
 
at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:132)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:235) 
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:843) 
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:290) 
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:317) 
at org.jboss.syste

[jboss-user] [Management, JMX/JBoss] - Re: Deploy MBean service get No ClassLoaders found exception

2007-07-18 Thread loseyourself
ah..., that's an input error, it is called Docs.sar when I delopyed.

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

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


[jboss-user] [JBoss Seam] - Can the EJBs be on a remote server ?

2007-07-18 Thread femski1
Hi Folks !

I am reading up on Seam and all the discussion and examples are built around 
EJB server colocated with the Servlet/JSF container with heavy use of 
dependency injection to get refernces to local EJB server.  It appears there is 
no standarized way to do dependency injection of remote references. Is this why 
we don't see remote EJB servers in Seam ?

I would like to move EJB tier to a remote server located behind a firewall away 
from Tomcat container on the web server. I thought this was pretty standard 
configuration for 3-tier applications. Don't want to embed EJBs inside Tomcat 
and more importantly do not we want allow database access (through JPA) from 
the servlet/JSF (web) tier.

Is there a simple way to deploy EJB tier on a remote server and if so how would 
Seam resolve references to them ? Can you define remote references in the 
web.xml ? Any examples, samples would be much appreciated.

thanks,

-Sanjay

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

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


[jboss-user] [Beginners Corner] - Re: Classloader issues: Need to share libraries across web a

2007-07-18 Thread kpalania
thanks very much jaikiran! i'll give this a shot and see how it goes. will 
respond with questions if there are some issues. thanks again!

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

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


[jboss-user] [JBoss Seam] - Re: Restrict everything except login page

2007-07-18 Thread [EMAIL PROTECTED]
There's an outstanding JIRA issue relating to this:

http://jira.jboss.org/jira/browse/JBSEAM-1009



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

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


[jboss-user] [JBoss Seam] - Restrict everything except login page

2007-07-18 Thread nakhnoukh
Hi, this should be straightforward but I can't figure out a simple way to do it.

I want to restrict all my xhtml pages to users of a certain role, except the 
login page (obviously).  Is there anyway to override the restrict that I have 
for view-id="*".

If using the pages.xml below trying to access the login page throws a 
NotLoggedInException


Seam 1.2.1


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | #{s:hasRole('admin')}
  | 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: ARGH! Seam 2.0.0 Beta, Ajax4JSF, ,

2007-07-18 Thread dhinojosa
I took a look at EntityConverter.java and the create method never gets called.


  |
  | private ValueExpression entityManager;
  | private EntityConverterStore entityIdentifierStore;
  | 
  | @Create
  | public void create() {
  | entityIdentifierStore = EntityConverterStore.instance();
  | 
  | }
  | 
  | 

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

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


[jboss-user] [JBoss jBPM] - possible schema changes needed to support deleteProcessInsta

2007-07-18 Thread X490812
Howdy - on my last post, I mentioned that deleteProcessInstance failed on fk 
constraints. I receved no response. My recourse was to go in and figure out all 
the entity bean mappings and fix them. I had to get the job done so I 
approached our dba. He suggested we modify the JBPM constraint tree so that 
when deleting from jbpm_processinstance, it would cascade to all associated 
runtime tables.  He did so. I tried deleting 77 process instances and it seemed 
to work fine - all runtime tables with associated data were deleted also - even 
parent / child relationships. I would like some jbpm schema guru to take a look 
at the changes and validate that we are not missing anything. Note - there are 
a few JBPM jira issues related to this problem (e.g., JBPM-785)

  | alter table JBPM_COMMENT add constraint FK_COMMENT_TOKEN foreign key 
(TOKEN_) references JBPM_TOKEN on delete cascade;
  | alter table JBPM_COMMENT add constraint FK_COMMENT_TSK foreign key 
(TASKINSTANCE_) references JBPM_TASKINSTANCE on delete cascade;
  | alter table JBPM_LOG add constraint FK_LOG_TOKEN foreign key (TOKEN_) 
references JBPM_TOKEN on delete cascade;
  | alter table JBPM_LOG add constraint FK_LOG_VARINST foreign key 
(VARIABLEINSTANCE_) references JBPM_VARIABLEINSTANCE on delete cascade;
  | alter table JBPM_MESSAGE add constraint FK_MSG_TOKEN foreign key (TOKEN_) 
references JBPM_TOKEN on delete cascade;
  | alter table JBPM_MESSAGE add constraint FK_CMD_TASKINST foreign key 
(TASKINSTANCE_) references JBPM_TASKINSTANCE on delete cascade;
  | alter table JBPM_MODULEINSTANCE add constraint FK_MODINST_PRCINST foreign 
key (PROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade;
  | alter table JBPM_PROCESSINSTANCE add constraint FK_PROCIN_ROOTTKN foreign 
key (ROOTTOKEN_) references JBPM_TOKEN on delete cascade;
  | alter table JBPM_PROCESSINSTANCE add constraint FK_PROCIN_SPROCTKN foreign 
key (SUPERPROCESSTOKEN_) references JBPM_TOKEN on delete cascade;
  | alter table JBPM_RUNTIMEACTION add constraint FK_RTACTN_PROCINST foreign 
key (PROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade;
  | alter table JBPM_TASKACTORPOOL add constraint FK_TASKACTPL_TSKI foreign key 
(TASKINSTANCE_) references JBPM_TASKINSTANCE on delete cascade;
  | alter table JBPM_TASKINSTANCE add constraint FK_TASKINST_TMINST foreign key 
(TASKMGMTINSTANCE_) references JBPM_MODULEINSTANCE on delete cascade;
  | alter table JBPM_TIMER add constraint FK_TIMER_PRINST foreign key 
(PROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade;
  | alter table JBPM_TOKEN add constraint FK_TOKEN_PARENT foreign key (PARENT_) 
references JBPM_TOKEN on delete cascade;
  | alter table JBPM_TOKEN add constraint FK_TOKEN_PROCINST foreign key 
(PROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade;
  | alter table JBPM_TOKEN add constraint FK_TOKEN_SUBPI foreign key 
(SUBPROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade;
  | alter table JBPM_TOKENVARIABLEMAP add constraint FK_TKVARMAP_CTXT foreign 
key (CONTEXTINSTANCE_) references JBPM_MODULEINSTANCE on delete cascade;
  | alter table JBPM_TOKENVARIABLEMAP add constraint FK_TKVARMAP_TOKEN foreign 
key (TOKEN_) references JBPM_TOKEN on delete cascade;
  | alter table JBPM_VARIABLEINSTANCE add constraint FK_VARINST_TK foreign key 
(TOKEN_) references JBPM_TOKEN on delete cascade;
  | alter table JBPM_VARIABLEINSTANCE add constraint FK_VARINST_TKVARMP foreign 
key (TOKENVARIABLEMAP_) references JBPM_TOKENVARIABLEMAP on delete cascade;
  | alter table JBPM_VARIABLEINSTANCE add constraint FK_VARINST_PRCINST foreign 
key (PROCESSINSTANCE_) references JBPM_PROCESSINSTANCE on delete cascade
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Using a bean as variable in jbpm, using seam

2007-07-18 Thread kukeltje
currently there is (afaik) no easy way to have jbpm store these kinds of 
objects without adding a mapping. That said, you could:
- store it outside of jbpm in your own domain model and just store a reference 
to it in jbpm
- try making it serializable, that way jbpm uses some kind of default 
persistence mapping afaik

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

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


[jboss-user] [JBoss jBPM] - Re: how to programatically set jdbc connection string for hs

2007-07-18 Thread kukeltje
please file a jira issue for this and better yet, attach a proposed patch.

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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread ramdas
When it comes to increasing the value of max_credits, how would the memory used 
by the JVM change. Does the max_credit work at the thread level or the process 
level within the JVM? Since i have 400 Tomcat threads within my JBoss AS, would 
increasing the max_credits mean increasing the memory 400 fold(20M x 400)?

Thanks

Ramdas

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

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


[jboss-user] [Clustering/JBoss] - Re: :: Regarding using Software Load balancer Mod_jk1.2.23 w

2007-07-18 Thread BhaktavatsalamReddy
BTW
Cluster is established. For the sake of simplicity,
only one server is added in the cluster.

Farming deployment is working fine as it is saying that the ear file in the 
farm directory is pushed on to the cluster successfully.

The Treecache is also replicating.i.e., it is trying to push the treecache 
updates on to cluster periodically.


Thanks,
Bhakta


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

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


[jboss-user] [Clustering/JBoss] - :: Regarding using Software Load balancer Mod_jk1.2.23 with

2007-07-18 Thread BhaktavatsalamReddy
Hi,

I am not sure if I am in the right forum regarding setting up the load balancer 
with JBoss4.2.0 GA.

I have clearly followed the step by step procedure mentioned in the following 
link:

http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss


Configuration files and properties files required to set up are:
1. httpd.conf
2. mod-jk.conf
3. workers.properties
4. uriworkermap.properties
All of the above files are placed under anonymous wrote : apache2/conf
5. server.xml 
placed underanonymous wrote : default/deploy/conf/jbossweb-tomcat55.sar
6. jboss-service.xml
placed under anonymous wrote : default/deploy/conf/jbossweb-tomcat55.sar 

1. httpd.conf
Added the following piece to the existing file under the mensioned dir:


  | # Include mod_jk configuration file
  | Include conf/mod-jk.conf
  | 
  | # Configure mod_jk
  | #
  | JkWorkersFile conf/workers.properties
  | JkLogFile logs/mod_jk.log
  | JkLogLevel debug
  | 
  | JkMount /web-console/* node1
  | JkMount /jmx-console/* node1
  | JkMount /mambo/* node1
  | JkMount /*.jsp node1
  | JkMount /servlet/* node1
  | 
  | LoadModule jk_module modules/mod_jk.so
  | 

 2. mod-jk.conf 


  | # Load mod_jk module
  | # Specify the filename of the mod_jk lib
  | LoadModule jk_module modules/mod_jk.so
  | 
  | # Where to find workers.properties
  | JkWorkersFile conf/workers.properties
  | 
  | # Where to put jk logs
  | JkLogFile logs/mod_jk.log
  | 
  | # Set the jk log level [debug/error/info]
  | JkLogLevel debug
  | 
  | # Select the log format
  | JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
  | 
  | # JkOptions indicates to send SSK KEY SIZE
  | # Note: Changed from +ForwardURICompat. 
  | # See http://tomcat.apache.org/security-jk.html  
  | JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
  | 
  | # JkRequestLogFormat
  | JkRequestLogFormat "%w %V %T"
  | 
  | # Mount your applications
  | JkMount /web-console/* loadbalancer
  | JkMount /jmx-console/* loadbalancer
  | JkMount /mambo/* loadbalancer
  | 
  | # You can use external file for mount points.
  | # It will be checked for updates each 60 seconds.
  | # The format of the file is: /url=worker
  | # /examples/*=loadbalancer
  | JkMountFile conf/uriworkermap.properties
  | 
  | # Add shared memory.
  | # This directive is present with 1.2.10 and
  | # later versions of mod_jk, and is needed for
  | # for load balancing to work properly
  | # Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to 
  | # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452
  | JkShmFile logs/jk.shm 
  | 
  | # Add jkstatus for managing runtime data
  | 
  | JkMount status
  | Order deny,allow
  | Deny from all
  | Allow from 127.0.0.1
  | 
  | 

 3. workers.properties 

  | # Define list of workers that will be used
  | # for mapping requests
  | # The configuration directives are valid
  | # for the mod_jk version 1.2.18 and later
  | #
  | workers.tomcat_home=C:\jboss-4.2.0.GA
  | worker.list=loadbalancer,status
  | 
  | # Define Node1
  | # modify the host as your host IP or DNS name.
  | worker.node1.port=8009
  | worker.node1.host=localhost
  | worker.node1.type=ajp13
  | worker.node1.cachesize=50
  | worker.node1.cache_timeout=600
  | worker.node1.socket_keepalive=1
  | worker.node1.recycle_timeout=300
  | 
  | worker.node1.lbfactor=1
  | # worker.node1.connection_pool_size=10 (1)
  | 
  | # Load-balancing behaviour
  | worker.loadbalancer.type=lb
  | worker.loadbalancer.balance_workers=node1
  | worker.loadbalancer.sticky_session=Off
  | 
  | # Status worker for managing load balancer
  | worker.status.type=status
  | 

 4. uriworkermap.properties 

  | # Simple worker configuration file
  | #
  | # Mount the Servlet context to the ajp13 worker
  | /jmx-console=loadbalancer
  | /jmx-console/*=loadbalancer
  | /web-console=loadbalancer
  | /web-console/*=loadbalancer
  | /mambo=loadbalancer
  | /mambo/*=loadbalancer
  | 

 5. server.xml 
Adde following snippets to the existing file:

  | 
  | 
and
 
  | 

 6. jboss-service.xml 
Modified the existing file as follows and added the following snippet:
true

I am trying to access it via: 
http://localhost/web-console 
or
http://localhost/jmx-console 
0r
http://localhost/mambo

I am getting the following error:
Service Temporarily Unavailable
  | The server is temporarily unable to service your request due to maintenance 
downtime or capacity problems. Please try again later.
  | 
  | 

  | 
  | Apache/2.0.59 (Win32) mod_jk/1.2.23 Server at 10.1.5.231 Port 80

The access.log is as follows:
[Wed Jul 18 13:04:23 2007] [warn] module jk_module is already loaded, skipping
  | [Wed Jul 18 13:04:33 2007] [warn] module jk_module is already loaded, 
skipping
  | 127.0.0.1 - - [18/Jul/2007:13:05:02 -0700] "GET /mambo HTTP/1.1" 503 412
  | 127.0.0.1 - - [18/Jul/2007:13:57:17 -0700] "GET /mambo HTTP/1.1" 503 412
  | [Wed Jul 18 14:10:53 2007] [warn]

[jboss-user] [JBoss Portal] - Re: http://www.jboss.org/portal/dtd/portal-object_2_6.dtd No

2007-07-18 Thread [EMAIL PROTECTED]
This is actually normal though a little confusing. We used this URL as a System 
ID though it doesn't actually point to a physical document hosted on jboss.org. 
Maybe we should use a URN instead of a URL or host them... 

You can find the DTDs for Portal in core/src/resources/portal-core-sar/dtd (in 
the source distribution) or in jboss-portal.sar/dtd (in the binary 
distribution). You can also look at them online at 
http://fisheye.jboss.com/browse/Portal/branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/dtd.

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

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


[jboss-user] [JBossWS] - Axis vs Jboss compat issue

2007-07-18 Thread gryffin
Hi. I've got a webservice running on JBossAS 4.0.5 w/ JBossWS 1.2.1. I am able 
to use it fine over HTTP using a JBoss based client.

I have a user who has an Axis based client who can't access the service. I get 
the following error trying to access an attribute of the submitted service 
parameter ( put another way, accessing a complex-type child element of the SOAP 
operation parameter ). I inspected the SOAP packet using a sniffer and it 
appears that the Axis client call is valid, though not identical to the JBoss 
client call. 

What should I look for? It's a really gnarly interop problem. All three, both 
clients and the service were generated from the same WSDL, so they should be 
following the same rules and schema.

Here's the error, it looks like the child elements are not marshalling 
properly, but I don't have any idea how to troubleshoot that. Can anyone point 
in the right direction? Thanks!


  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing
  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: [EMAIL 
PROTECTED] (Thread http-0.0.0.0-8080-2)
  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: [EMAIL 
PROTECTED] (Thread http-0.0.0.0-8080-2)
  | 2007-07-18 14:30:17,875 ERROR 
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
  | java.lang.NullPointerException
  | at 
com.boeing.nmt.server.ws.NlsSoapServiceImpl.assetAssociationSet(NlsSoapServiceImpl.java:257)
  | 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.ws.core.server.ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(ServiceEndpointInvokerJSE.java:104)
  | at 
org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:207)
  | at 
org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
  | at 
org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
  | at 
org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at 
org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data 
for: class java.lang.NullPointerException
  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: 
PRE
  | 2007-07-18 14:30:17,875 DEBUG 
[org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: 
ENDPOINT
  | 2007-07-18 14:30:17,875 DEBUG 
[or

[jboss-user] [JBoss Seam] - FYI - MyFaces Core 1.2.0 Released (July 17, 2007)

2007-07-18 Thread mgrouch
July 17, 2007 - MyFaces Core 1.2.0 Released

http://myfaces.apache.org/

I hope Seam 2.0 would be tested against MyFaces 1.2.0 as well

Thanks

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

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


[jboss-user] [JBoss Getting Started Documentation] - Jboss 4.0, Eclipse 3.1 and axis

2007-07-18 Thread bhu123
Hi
 I am new to this, but this is environment at by place. I want to use eclipse 
as the ide , JBOSS as the Server and axis for web services. Is there any step 
by step tutorial with this apps. if so can you direct me to it.

thank you
bhu

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

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


[jboss-user] [JBoss Portal] - http://www.jboss.org/portal/dtd/portal-object_2_6.dtd Not fo

2007-07-18 Thread rvkishore
I get a 404 for http://www.jboss.org/portal/dtd/portal-object_2_6.dtd. Anyone 
knows where the new location is?

Thanks in advance

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to deploy different web applications on different po

2007-07-18 Thread mocha_java
One more clarification:
public.war cannot be accessed through 8081, and private.war not through 8080

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

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


[jboss-user] [JBoss Seam] - Using a bean as variable in jbpm, using seam

2007-07-18 Thread jim.barrows
I have an object, call it Address.  It's been properly defined using JPA, and 
annotations.  The problem is that I can't figure out how to get jBPM to "see" 
it so  that jBPM can save it.  It will save long, shorts and other basic types, 
but not my address class.
I investigated jBPM, and it says that I have to add a Hibernate definition.  I 
really don't want to add a hibernate defintion over the annotations I've used.  
Can I do both?  How do I get around this?

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

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


[jboss-user] [JBoss Portal] - Re: Modifying login page

2007-07-18 Thread creative77
Hmm, this is really strange how this is done for the login.jsp images. But, I 
decided to look in the web.xml for anything different in regard to mapping the 
login page. Sure enough there are special mappings for each image.

I tried the wild card approach to my new image folder and that did not work. 
The only way I have gotten the images to show up is to explicitly map each 
image.  

What fun I have thirty images to map.

I would like to know the reasoning behind this.

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

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


[jboss-user] [JBoss jBPM] - Re: how to programatically set jdbc connection string for hs

2007-07-18 Thread tjcroteau
So, I have found that the only jbpm call that disregards the db connection that 
was set on the context using JbpmContext.setConnection is the call to 
createSchema.  

If the connection is set on the context when createSchema is called a 
UserSuppliedConnectionProvider exception is thrown with the message "The user 
must supply a JDBC Connection"

This appears to be a bug in jbpm not passing the connection down to hibernate.

As a workaround, I found that setting the property hibernate.connection.url 
will force hibernate to find the database connection that was already 
established.



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

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


[jboss-user] [JBoss Seam] - Re: ARGH! Seam 2.0.0 Beta, Ajax4JSF, ,

2007-07-18 Thread dhinojosa
All my session beans btw have 

@In
private EntityManager entityManager;

instead of 

@PersistenceContext(...)
private EntityManager entityManager;


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

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


[jboss-user] [JBoss Seam] - Re: ARGH! Seam 2.0.0 Beta, Ajax4JSF, ,

2007-07-18 Thread dhinojosa
ellenzhao, since yesterday's CVS build


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

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


[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-18 Thread ALRubinger
Could you post your code for the Session Bean?

S,
ALR

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Unable to connect to remote server

2007-07-18 Thread fredash
Hello Chary,

Are you sure that the port 8080 is available in your Mac ?
Perhaps you will have another apps that is locking it ...

Just my 2 cents...

Fred.


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

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


[jboss-user] [JBoss Seam] - compüonents.xml not scanned on Linux...

2007-07-18 Thread fhh
I have a strange problem: On my development machine running windows my 
application work fine. When I deploy it to the server it fails because the 
components.xml file is not scanned properly.

The odd thing is that components.xml is found:

  | 2007-07-19 00:09:10,785 DEBUG [org.jboss.seam.deployment.Scanner] archive: 
/opt/jboss-4.2.0.GA/server/default/tmp/deploy/tmp42377go100-backoffice.ear-contents/go100-model-ejb-0.1-SNAPSHOT.jar
  | ...
  | 2007-07-19 00:09:10,785 DEBUG [org.jboss.seam.deployment.Scanner] found: 
META-INF/components.xml
  | 

The only hint I have is the following warning during deployment:


  | 2007-07-19 00:09:10,905 WARN  [org.jboss.seam.init.Initialization] 
namespace declared in components.xml does not resolve to a package annotated 
@Namespace: http://jboss.com/products/seam/persistence
  | 

My compnents.xml looks like this:
  | http://jboss.com/products/seam/components";
  | 
xmlns:persistence="http://jboss.com/products/seam/persistence";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://jboss.com/products/seam/persistence 
http://jboss.com/products/seam/persistence-2.0.xsd";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Does anybody know why this might work under Windows and not under Linux? My 
first suspicion that this might be about the upper/lower case.

Regards

Felix


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

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


[jboss-user] [JBoss Portal] - API to create JBoss Portal user and assign a default role

2007-07-18 Thread kpalania
Is there an API? I want to create a user and assign a default role on the fly 
if the user doesn't exist in the Portal database? When I get this far, the user 
would be automatically authenticated, so no worries there, it is just the 
authorization part.

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

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


[jboss-user] [JBoss Seam] - Re: Uncomprehended Behavior

2007-07-18 Thread vwu98034
It seems to be the JSF IE single text input field problem. 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Class loader isolation broken in 4.2.0GA

2007-07-18 Thread [EMAIL PROTECTED]
The warning is pretty straightforward. Only a root deployment can define a new 
classloading scope/domain.

I don't recall what was the exact fix we made, but it seems your packaging 
could be wrong before.

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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread ramdas
Thanks.
I will first attempt to increase the max_credits on the jgroups FC to 2 million 
like you suggested initially.  
As a next step will install jgroups 2.2.9.3. Hoping between these changes i am 
able to get around the jgroups blocking issue.

Thanks

Ramdas

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

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


[jboss-user] [JBoss Seam] - Re: ARGH! Seam 2.0.0 Beta, Ajax4JSF, ,

2007-07-18 Thread ellenzhao
This used to be a known problem but I believe it has been fixed. How old is 
your Seam 2.0 beta? You might want to try the latest build from cvs. 

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

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


[jboss-user] [JBoss Seam] - BUSINESS_PROCESS Variable Injection Dilema

2007-07-18 Thread harpritt
this is an annoying little problem.

I have a long running conversation marked by Begin and End.

The method marked with End is also the Start of my Business process 
(@CreateProcess) where i persist an object that is the result of the long 
running convo, and add the Primary key of the object to the Business Scope.

My problem is that the Primary key that is part of the business scope is not 
available for injection until the token moves from the startstate to the first 
task i think this has to do with jbpm task atomicity

bit of a bummer considering that in @Create i wish to load the object using the 
primary key that is not as yet in the Business Scope.

is there a way  maybe using a intermediate node type... not a task node 
that can act as a dummy state that simply allows the business scoped variables 
to be placed in the business scope 

Many Thanks

Harpritt. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065561
___
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: error InitialContext - database error

2007-07-18 Thread gomanza
I forgot to post this method:

  | public void saveMockEntities(List entities) throws Exception {
  | for (EntityBean entityBean : entities) {
  | em.persist(entityBean);
  | }
  | }
  | 

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

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


[jboss-user] [JBoss Portal] - Modifying login page

2007-07-18 Thread creative77
I am trying to add a gif tothe login page. However, even though I have it in 
the image folder under 

{jboss_install}/server/default/deploy/jboss-portal.sar/portal-server.war/images

the gif image will not display on the page. Is there some reason why gifs do 
not display?


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - error InitialContext - database error

2007-07-18 Thread gomanza
Hi guys,

I have the following inital Method to fill my database everytime I start 
jboss-4.0.5:


  | public void contextInitialized(ServletContextEvent arg0) {
  | logger.info("ServletContext initialized, initialize DB.");
  | InitialContext iCtx;
  | try {
  | iCtx = new InitialContext();
  | internetShop = (InternetShopLocal) iCtx
  | .lookup("InternetShop/InternetShop/local");
  | } catch (NamingException exc) {
  | throw new RuntimeException(exc);
  | }
  | List mockEntities = new ArrayList();
  | User user = getMockUser();
  | mockEntities.add(user);
  | 
  | mockEntities.add();
  | mockEntities.add();
  | mockEntities.add();
  | try {
  | internetShop.saveMockEntities(mockEntities);
  | } catch (Exception e) {
  | e.printStackTrace();
  | }
  | }

The Method getMockUser() returns a fille user Object


  | public static User getMockUser() {
  | User result = new User();
  | result.setAccountNumber("01234");
  | result.setAdmin(false);
  | result.setBankName("Western Union");
  | result.setBankNumber("43210");
  | result.setCity("Gossersweiler Stein");
  | result.setCompanyName("Feuchtraumbeseitigung");
  | result.setEmail("[EMAIL PROTECTED]");
  | result.setHousenumber("12a");
  | result.setLogin("user");
  | result.setName("user");
  | result.setPassword("asswd");
  | result.setStreet("wersglaubt");
  | result.setSurname("step");
  | result.setZipcode("43012");
  | return result;
  | }

So I think my configurations are right cause the database structure is ok:

21:56:58,329 INFO  [TableMetadata] table found: PUBLIC.USER
21:56:58,329 INFO  [TableMetadata] columns: [password, banknumber, login, 
street, id, accountnumber, surname, bankname, companyname, housenumber, email, 
name, zipcode, admin, city]
21:56:58,329 INFO  [TableMetadata] foreign keys: []
21:56:58,329 INFO  [TableMetadata] indexes: [sys_pk_57, sys_idx_sys_ct_56_58]
21:56:58,344 INFO  [SchemaUpdate] schema update complete

And this is the message I get every time:
Why are the values null and ??? that's not possible. 
Anybody who has some ideas please let me know...

21:57:02,594 ERROR [STDERR] 18.07.2007 21:57:02 
com.internetshop.InitializeDBCtxListener contextInitialized
INFO: ServletContext initialized, initialize DB.
21:57:03,204 INFO  [STDOUT] Hibernate: insert into User (id, name, password, 
admin, login, accountNumber, bankName, bankNumber, city, companyName, email, 
housenumber, street, surname, zipcode) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?)
21:57:03,250 WARN  [JDBCExceptionReporter] SQL Error: -104, SQLState: 23000
21:57:03,250 ERROR [JDBCExceptionReporter] Unique constraint violation: 
SYS_CT_56 in statement [insert into User (id, name, password, admin, login, 
accountNumber, bankName, bankNumber, city, companyName, email, housenumber, 
street, surname, zipcode) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?)]

thanks Stephan

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

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


[jboss-user] [JNDI/Naming/Network] - Re: ConnectionFactory not bound Exception... - Noobie

2007-07-18 Thread jaikiran
The ConnectionFactory is bound to the global jndi namespace. Looking up 
"ConnectionFactory" should have returned you the connection factory. Is that 
all you see in the exception stacktrace or is there more in the stacktrace? If 
so, please post the entire exception stacktrace

anonymous wrote : by the way, how do we move them datasources to global 
namespaces?

http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIAccessADataSourceFromAClient

Make sure you read the note mentioned in bold, there.






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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: access MainDeployer in JBoss 5

2007-07-18 Thread PeterJ
What kind of access?  Programmatic? Administrative? For the latter, see the 
file server/xxx/conf/bootstrap-beans.xml.

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

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


[jboss-user] [Beginners Corner] - Re: JBoss integration with Mercury Diagnostics

2007-07-18 Thread PeterJ
Try (all on one line, it is long so it wraps):

JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME 
-Xbootclasspath/p:/opt/MercuryDiagnostics/JAVAProbe/classes/IBM/1.4.2:/opt/MercuryDiagnostics/JAVAProbe/classes/boot"
 

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

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


[jboss-user] [JNDI/Naming/Network] - Re: NameNotFoundException thrown even though JBOSS not runni

2007-07-18 Thread jaikiran
The logs and the jndi.properties look OK. Not sure what might be wrong. 

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

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


[jboss-user] [JBoss Seam] - Uncomprehended Behavior

2007-07-18 Thread vwu98034
The situation occurs on a user account login information retrieval.  An action 
class takes an email address to retrieve the data. If the email address is 
incorrect for various reasons, the same screen/page will be redisplayed. 

Other than a pair of getter and setter for the email address, there is only one 
method, called doIt, to do email address validation and data retrieval.

Here is the problem I can't comprehend. When I enter  some characters, which is 
not in valid email format, the doIt method is executed and an error message is 
shown on the screen. Then, I type in an valid email format, but not in the DB. 
The doIt method MAY not be executed.

This situation occurs when I have the class in the event scope, or in the 
conversation scope and have the begin annotation with join=true on the setEmail 
method and the end annotation on the doIt method.

Can someone points me to a right direction for this problem, please?



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

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


[jboss-user] [JBoss Seam] - Re: Seam extended EL + Trinidad

2007-07-18 Thread kingcu
Is this working now with Seam 2.0 B1 and Trinidad 1.0.1/1.2.1? 

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

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


[jboss-user] [JBoss Seam] - how to set #{invalid} in action

2007-07-18 Thread tynor
I need to do some extra validation in certain actions -- for failed validation, 
I can set control-specific error messages in the action method via: 

FacesMessages.instance().addToControl("name", new InvalidValue("my error text", 
MyClass.class, "name", getInstance().getName(), getInstance()));

but I've not figured out how to set the "invalid" state so that the ${invalid} 
EL function returns true (without setting invalid, my form displays the error 
messages, but does not highlight the field input controls in red as a normal 
HibernateValidation error would.

Help? (and thanks)


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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread [EMAIL PROTECTED]
"ramdas" wrote : 
  | 
  | Based on the compatibility matrix between JBoss cache and JGroups as shown 
here, i checked out the JGroups download site and they have 2.2.9.3 as the 
latest. I am assuming 2.2.9.x to mean 2.2.9.* right? 
  | 
  | 

Yes.


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

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


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
Well at the end there is a unique HTML page with a unique html, head and body 
tags. So in your portlet you mustn't produce those tags.



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

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


[jboss-user] [Beginners Corner] - Re: Linkage Error While returning the OrderedMap from EJB

2007-07-18 Thread jaikiran
anonymous wrote : Nops, There is only one jar file common-collections.jar in 
default\lib\.

I meant, do you have multiple copies of the same jar file on the server?

anonymous wrote : 
  | And it is there in build path of both EJB as well as Web app.
  | 

You mean that the deployed ejb jar and the web app each have a copy of the 
common-collections.jar file? If yes, then that might be the cause of the 
LinkageError. The OrderedMap might be loaded by 2 different classloader (one 
from the ejb and the other from the web app). Are the ejb jar and the web app 
part of the same application? If yes, then you could deploy them as an ear file 
and have only one commons-collections.jar in the ear instead of at 2 places.

Also, did you try the jmx-console method mentioned in the link that i posted 
earlier? That's going to tell you whether the OrderedMap is being loaded from 2 
different commons-collections.jar file.


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

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


[jboss-user] [Beginners Corner] - Re: Classloader issues: Need to share libraries across web a

2007-07-18 Thread jaikiran
anonymous wrote : So, I need to move these to the EAR level (WAR and SAR 
applications are deployed as part of this EAR). How can I do that and what are 
the steps involved?
  | 

You will have to create an ear file containing the war file and the sar file. 
Additionally, you will require a application.xml file and a jboss-app.xml file 
(both in the META-INF folder of the ear). The application.xml will contain 
something like:

  | 
  | http://java.sun.com/dtd/application_1_3.dtd";>
  | 
  | My Application
  | 
  | 
  | 
  | myApp.war
  | /myApp
  | 
  | 
  | 

Then the jboss-app.xml will contain:

  | 
  |  
  |tap:loader=myApp.ear
  |
  |   java2ParentDelegation=false
  |
  |  
  |  
  |  
  |myAppSar.sar
  |  
  |  
  |  
  | 
  | 

Replace myApp.war, myApp.ear and myAppSar.sar without appropriate names of your 
archives.

The loader-repository in jboss-app.xml is optional in the jboss-app.xml, retain 
it if you want classloader isolation for the ear file. 


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problems with log4j in jboss

2007-07-18 Thread jaikiran
How about this:

  | 
  | # initialise root logger with level INFO and call it
  | log4j.rootLogger=INFO, stdout
  | 
  | #set your application to use the BLAH appender
  | log4j.logger.org.myapp=INFO, BLAH
  | 
  | #configure the Console appender
  | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
  | 
  | 
  | # add a Appender to the logger BLAH
  | log4j.appender.BLAH=org.apache.log4j.RollingFileAppender
  | # set the layout
  | log4j.appender.BLAH.layout=org.apache.log4j.PatternLayout
  | log4j.appender.BLAH.layout.ConversionPattern=%d{dd-MMM- HH:mm:ss:SSS}: 
%m%n
  | log4j.appender.BLAH.File=c:/testing.log
  | 
  | log4j.appender.BLAH.MaxFileSize=1KB
  | # Keep one backup file
  | log4j.appender.BLAH.MaxBackupIndex=10

Note that i have used log4j.logger.org.myapp, replace org.myapp with whatever 
is the package hierarchy in your application.




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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Setting JAVA_HOME to a JRE instead of JDK

2007-07-18 Thread jhb_dev
Thank you!

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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread ramdas
Thanks for the tip. I too was thinking of upgrading to a release version of 
JGroups but wanted to ensure compatibility. The upgrade matrix link that you 
provided is useful in that regard.
Based on the compatibility matrix between JBoss cache and JGroups as shown 
here, i checked out the JGroups download site and they have 2.2.9.3 as the 
latest.  I am assuming 2.2.9.x to mean 2.2.9.* right?

JBoss Cache/  Ships with JGroups/  Runs with JGroups  
1.2.3  / 2.2.8 / 2.2.7.x, 2.2.9.1, 2.2.9.x  

Thanks

Ramdas



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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss as a windows service cannot stop

2007-07-18 Thread jaikiran
anonymous wrote : Any ideas on how to properly stop the service? 

When you stop the service, are there any errors in the server.log file?

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

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


[jboss-user] [JBoss Seam] - Re: No application context active

2007-07-18 Thread cingram
The solution to this answer is not to forget about the JSF lifecyle.



  | new 
Initialization(flex.messaging.FlexContext.getServletConfig().getServletContext()).init();
  |   
Lifecycle.setServletContext(flex.messaging.FlexContext.getServletConfig().getServletContext());
  | Lifecycle.beginCall();
  |  
  |Object obj = null;
  |try { 
  |   obj = Component.getInstance(compName);
  |   Lifecycle.endCall();
  |} catch (Exception ex) {
  |  ex.printStackTrace();
  |  ServiceException e = new ServiceException();
  |  String msg = "Seam Component named  '" + compName+ 
"'does not exist.";
  |  e.setMessage(msg);
  |  e.setRootCause(ex);
  |  e.setDetails(msg);
  |  e.setCode("Server.Processing");
  |  throw e;
  |}
  | 

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

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


[jboss-user] [JBoss Seam] - Re: touble with messages.properites

2007-07-18 Thread atao
In your faces-config.xml file:


  | 
  | 
  | zh
  | en
  | en_US
  | en_AU
  | de
  | fr
  | 
  | 
  | 

zh is not declared as a supported-locale

try after adding it.


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

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


[jboss-user] [JBoss Seam] - Re: SEAM JEE5 Example w/MySQL Question

2007-07-18 Thread nwhite
FWIW  I got the DB tables to create and load the sql by changing the Resource 
Type on my pool from javax.sql.ConnectionPoolDataSource to javax.sql.DataSource 
and leaving the Datasource Classname set to 
com.mysql.jdbc2.optional.MysqlConnectionPoolDataSource.

Any thoughts on why this is what it took? And the error msg. did not really 
lend any relevant suggestion as to this change being the fix.

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

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


[jboss-user] [EJB 3.0] - Re: Stateless session bean not bound

2007-07-18 Thread dgdwinte
Thanks for the replies. It still doesn't work, tried a dozen of jndi-lookup 
possibilities, but no success. However, injection works perfectly: 


  | public class TestServlet extends HttpServlet {
  | private @EJB ArticleManagerLocal artman;
  | public void doGet(HttpServletRequest req, HttpServletResponse res) 
  | throws ServletException, IOException{
  | artman.testArticles(); 
  | PrintWriter out=res.getWriter(); 
  | out.println("Hello, world said davy!"); 
  | out.close();
  | }
  | }
  | 

As one is supposed to use injection in JBoss 5.0, I'll continue to use that. 

Best regards,
Davy. 

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

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


[jboss-user] [EJB/JBoss] - Re: forever problem! right way to create and deploy bean

2007-07-18 Thread syedtaj
They are just warns, if you dont need log4j just ignore them in the standalone 
program of yours and the program will still work.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Unable to connect to remote server

2007-07-18 Thread vishuchary
Looks like I found a solution . In case anyone else face this issue:

  If I change the ports in some 7600 range ,  I'm able to access remotely but 
if it is 8080 or any other port (other than 7600), it does not throw any 
exception but unable to connect (timeout) from browser.

Does anyone know if  the  server has restricted the ports  or if this is Jboss 
related?  If server has restricted, why was jboss able to connect/run without 
any issue?

Thanks in advance
Chary

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

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


[jboss-user] [JBoss Seam] - Re: No application context active

2007-07-18 Thread PatrickMadden
I'm not exactly sure if this will help but I noticed problems when I tried to 
do certain things to early in the component initialization phase. For example 
my session contexts would be null. My trick is not to do things that access 
contexts until the create method is called for my Seam components. For example, 
you can't do things in the constructor of the object. Use the @Create 
annotation and then try your initialization. Something like this:


  | @Stateful 
  | @Name("search")
  | @Scope(ScopeType.SESSION)
  | public class SearchBean implements Search {
  | /**
  |  * This method is called after this component has been successfully 
  |  * instantiated by the Seam framework
  |  */
  | @Create
  | public void create()
  | {
  |  // perform initialization here
  |  }
  | 
  | 

Hope this helps,

PVM

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Sharing wars between virtual hosts

2007-07-18 Thread jaikiran
anonymous wrote : Any idea how this can be achieved under JBoss?

Sorry Steve, i havent done that before and lack knowledge, for answering this.


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

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


[jboss-user] [Beginners Corner] - Classloader issues: Need to share libraries across web appli

2007-07-18 Thread kpalania
Hi,
I have 2 applications (WAR and SAR). Currently, the same set of shared 
libraries are copied to both the locations and hence, I am running into a 
ClassCastException which appears to be due to ClassLoading issues (based on 
reading done). So, I need to move these to the EAR level (WAR and SAR 
applications are deployed as part of this EAR). How can I do that and what are 
the steps involved?

I realize I need to change the UseJBossWebLoader flag in jboss/tomcat 
jboss-service.xml (perhaps) and make some more changes to jboss-app.xml but I 
can't seem to find the exact steps anywhere and without the perfect set of 
changes, ofcourse, JBoss is not going to be happy  :(

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

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


[jboss-user] [JBoss Seam] - ARGH! Seam 2.0.0 Beta, Ajax4JSF, ,

2007-07-18 Thread dhinojosa
I am going crazy with this, in fact I am about to eat glass.  Anyone 
encountered this before?


  | 
  | javax.servlet.ServletException
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | ROOT CAUSE:
  | 
  | java.lang.NullPointerException
  | 
org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:69)
  | 
org.jboss.seam.ui.converter.PrioritizableConverter.getAsString(PrioritizableConverter.java:67)
  | 
org.jboss.seam.ui.converter.ConverterChain.getAsString(ConverterChain.java:123)
  | 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
  | 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRenderer.java:502)
  | 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:757)
  | 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:811)
  | 
com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
  | 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
  | 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
  | 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | 
org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeChildren(AjaxContainerRenderer.java:100)
  | 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | org.ajax4jsf.ajax.UIAjaxRegion.encodeChildren(UIAjaxRegion.java:117)
  | javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | 
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
  | 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
  | 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
  | org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:87)
  | 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
  | 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 


Here is my .jsp file from where this is originated...

  | <[EMAIL PROTECTED] pageEncoding="UTF-8"%>
  | <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
  | <[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
  | <[EMAIL PROTECTED] uri="http://jboss.com/products/seam/taglib"; prefix="s"%>
  | <[EMAIL PROTECTED] uri="https://ajax4jsf.dev.java.net/ajax"; prefix="a4j"%>
  | http://www.w3.org/TR/html4/loose.dtd";>
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 


My gateStyle bean and my gate bean is annotation with @Id fields correctly. My 
components.xml is I believe correct:

  | 
  | http://jboss.com/products/seam/components";
  | xmlns:core="http://jboss.com/products/seam/core";
  | xmlns:persistence="http://jboss.com/products/seam/persistence";
  | xmlns:drools="http://jboss.com/products/seam/drools";
  | xmlns:security="http://jboss.com/products/seam/security";
  | xmlns:mail="http://jboss.com/products/seam/mail";
  |

[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread brownfielda
Possibly related:  The portlet spec says something about disallowed HTML tags.  
I believe head and body were among them.

Is this relevant when using JSP?

Maybe dispatcher.include("myJSP.jsp") parses those tags out when returning 
control to the portlet.

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

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


[jboss-user] [JBossCache] - Re: Could this be deadlock when modifying TreeCache

2007-07-18 Thread [EMAIL PROTECTED]
Ok, either way, your version of JBoss Cache will not give you JMX info.  And I 
wouldn't recommend running a production system on a beta version of JGroups!

Even if you are reluctant to move to a newer version of JBossAS or JBoss Cache, 
I'd certainly recommend using a production version of JGroups.

http://labs.jboss.org/jbosscache/compatibility/index.html



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

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


[jboss-user] [JBoss Seam] - SeamPhaseListener should check for rolledBack exceptions bef

2007-07-18 Thread matt.drees
I'm running jboss embedded on tomcat.
For some reason every once in a while (I haven't figured out the circumstances 
yet), I get some strange transaction problems.

SeamPhaseListener (line 560) checks to make sure Transaction.instance() isn't 
STATUS_ACTIVE or STATUS_MARKED_ROLLBACK, but it doesn't check to make sure it's 
not STATUS_ROLLEDBACK.  When my app has this goofy problem, 
Transaction.instance() returns such a transaction.  When SeamPhaseListener 
tries to begin() it, I get a TransactionNotSupported exception, and a redirect 
to the debug page.  But the debug page runs the seam phase listener, which 
again gets a rolledback transaction, and throws another exception.  So I get in 
an infinite loop.

So...

1.  Does anybody have any idea why Transaction.instance() (under the hood 
implemented by Naming.getInitialContext().lookup("UserTransaction"); ) would 
return a rolledback transaction?

2. Can Seam make sure the transaction isn't rolledback before beginning, and 
therefore prevent the infinite loop I'm experiencing?

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

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


[jboss-user] [JBoss Seam] - Re: Seam and Adobe Flex

2007-07-18 Thread cingram
FYI: If Patrick pretty cool WebService/Action library is not an option for what 
ever reason. The FlexAjaxbridge makes using the seam remoting(javascript) 
pretty easy. An example of the helloworld



  | ---Html page
  | 
  | 
  | 
  | 
  | 
  | function sayHello(name) {
  | Seam.Component.getInstance("helloAction").sayHello(name,   
sayHelloCallback);
  | }
  |  
  |  
  | function sayHelloCallback(result) {
  |   var flexApp = FABridge.flash.root();
  |   var message = myActionScriptFunction(result);
  | }
  | 
  | 
  | ---ActionScript
  | 
  | private function sayHello(): void {
  |   var f:String = "sayHello";
  |ExternalInterface.call(f,txtName.Text);
  | }   
  | 
  | private function sayHelloCallBack(result:String): void {
  |lblName.Text = result;
  | }   
  | 

The downside is it is fairly code intensive. You could clean alot of this up by 
doing some dynamic javascript. The remoting js file is pretty nice as it 
propagates the conversation for you. I haven't quite figured out how to get a 
object that is returned from the server to translate in to action script 
properly.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - High Availability

2007-07-18 Thread tsengden
Am I using the wrong ...-state-service.xml ? I basically modified the 
hsqldb-jdbc-state-service.xml to use the MSSQL 2005. It seems like the error 
has nothing to do with the SQL statements in the xml rather something 
hardcoded...

Getting the exception below:

10:53:46,347 WARN  [ServiceController] Problem starting service 
jboss.mq:service=StateManager
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  
Message recovery may not be accurate; - nested thro
wable: (com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 
')'.)
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.mq.pm.jdbc2.MSSQLPersistenceManager.startService(MSSQLPersistenceManager.java:230)
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:597)
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 sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:597)
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 $Proxy51.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.GeneratedMethodAccessor24.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.jbo

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Unable to connect to remote server

2007-07-18 Thread vishuchary
Thanks Fred,
I dont see  any error messages in server.log . The server starts without any 
issues but when I try from browser, the browser waits/tries for sometime and 
then results in "Problem loading page with 
   The connection has timed out
   The server at xyz.corp.abc.com is taking too long to respond" message.

As I said, It works well with a different mac machine.   Did anyone come across 
this kind of issue or know of any solution?

Thanks,
Chary

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

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


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
I don't think the onload javascript execution issue has anything to do with the 
fact you have instances of the same portlet on the same page.

This issue is more related to the way AJAX based Partial refresh works, and 
when that happens, only your pages DOM model is getting updated, but the actual 
Page is not getting refreshed (typical AJAX usecase).

Hence, the Page is not doing a complete refresh, the onLoad event is not fired, 
and your JavaScript is not executed.

I bet if you put the 


  | 
  | alert('Test');
  | 
  | 

inside your Portlet markup, they will probably work even in "Partial Refresh" 
mode

Thanks

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

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


[jboss-user] [JBoss Seam] - Re: facelets and seam2

2007-07-18 Thread kgoedert
The only things being rendered are pure html tags.
Tags like ui:composition are not being interpreted by the browser.
I copied the web.xml and components.xml from the dvd store example, but nothing 
helped.

Appreciate any help

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: monitoring queue for undelivered messages

2007-07-18 Thread [EMAIL PROTECTED]
And ironically RTFM is also documented in the docs :-)
http://wiki.jboss.org/wiki/Wiki.jsp?page=BadPostRTFM

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Removing a message from the queue

2007-07-18 Thread [EMAIL PROTECTED]
You're on the wrong track. JMS is not a database where you do CRUD operations.

Redelivery of messages is a part of the JMS api.

If the client does not acknowledge a message (for whatever reason)
then it will be redelivered with the redelivered flag set:


  | if (message.getJMSRedelivered()) {
  |// take extra care
  | }
  | 

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Blocked JMS SessionPool Worker threads

2007-07-18 Thread [EMAIL PROTECTED]
Blocked where? Ask yourself is there really any information in your question
that makes it answerable?

GUESS:

These threads are part of thread pool. They're intended to block until
work is available (or they've been idle for too long and are destroyed).

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - removed form the Wiki-Page. Why, Adrian?

2007-07-18 Thread Tobias
Adrian,
you removed some content from the wiki concerning DataSource configuration.
See http://wiki.jboss.org/wiki/Diff.jsp?page=ConfigDataSources&r1=35&r2=34

Did you place that information elsewhere?
Was it inappropriate at that place?

Ciao,
Tobias

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

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


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

2007-07-18 Thread fredash
Hi,

Same error for me...

Could you tell me if this error has been corrected in newer versions of JBOSS 
AS and/or JBOSS WS ?

Thanks,

fred.

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

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


[jboss-user] [JBoss Seam] - No application context active

2007-07-18 Thread cingram
I am in the process of trying to build a bridge between Flex and Seam. In my 
factory for creating the remote object I have it delegating to Seam for this. 


  | new 
Initialization(flex.messaging.FlexContext.getServletConfig().getServletContext()).init();
  | 
  |try { 
  |   return Component.getInstance(compName);
  |} catch (Exception ex) {
  |  ex.printStackTrace();
  |  ServiceException e = new ServiceException();
  |  String msg = "Seam Component named  '" + compName+ "' 
does not exist.";
  |  e.setMessage(msg);
  |  e.setRootCause(ex);
  |  e.setDetails(msg);
  |  e.setCode("Server.Processing");
  |  throw e;
  |}
  | 
  | 

When I call  getInstance I am getting java.lang.IllegalStateException: No 
application context active from Seam. Any thoughts on how to get an active 
application context?


  | 13:37:40,693 ERROR [STDERR] java.lang.IllegalStateException: No application 
context active
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.Component.forName(Component.java:1577)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1627)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1610)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1604)
  | 13:37:40,693 ERROR [STDERR] at 
com.pscufs.flex.factories.SeamFactory$SeamFactoryInstance.lookup(SeamFactory.java:100)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.services.remoting.adapters.JavaAdapter.createInstance(JavaAdapter.java:237)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:157)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:173)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:727)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:99)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:48)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:124)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:117)
  | 13:37:40,693 ERROR [STDERR] at 
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:424)
  | 13:37:40,693 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 13:37:40,693 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 13:37:40,693 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | 13:37:40,693 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 13:37:40,693 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 13:37:40,693 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 13:37:40,693 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt

[jboss-user] [JBoss Seam] - seam-gen plus arhitecture questions

2007-07-18 Thread trouby
Hey,

I was wondering about few issues that I'll be glad if you guys can make them 
clear to me,

Since actions can be implemented on any bean without much limitations, I'm 
kinda confused how to design my beans correctly.

Usually actions needs access to resources such as database, transactions, 
etc... and since EJBs are not so expensive (performance/system resources, 
etc...), then I understand the concept and suggestions of making most of the 
beans as EJBs,

but I'm still confused of how to divide my business code correctly,

1st question:

It seems that part of the applications implements an EJB per action(lets say 
searching a specific type of entities), sometimes there is an EJB per 
entity(all CRUD operations + some other actions related to that specific 
entity), etc...

In very big applications, for example, having an EJB per entity search might 
end with about 40-50 ejbs, and this is only about search, but sometimes 
consolidating all actions related to a specific entity to one EJB grows and 
grows and my ejbs looks too big and hard to manage.
and if all methods related to one entity are implemented within the same EJB, 
it is more confusing where to implement methods that are related to more than 
one entity.

Are there any standards and suggestions how to divide the business code 
correctly/best way?


2nd question:
Also, are you guys suggesting the structure that seam-gen creates? are all the 
application samples of SEAM are generated by seam-gen? or having the same 
project structures? or there are suggestions and standards of project 
structure(I mean the structure of the view/web resources/ejbs/etc...) depends 
on the project size and needs?


3rd question:
Since it became easier with EJB3 to create the entities and their relations 
than creating the tables and managing the foreign keys manually (at least I see 
it that way), it would be very nice if seam-gen could generate all the CRUD 
view/ejbs based on the created entities and not by tables,

I only found the 'generate-entities'  command that generates the 
entities/view/ejbs based on tables but couldn't find a way to generate all SEAM 
code based on ready made entities.
Any way of doing this?


As always - many thanks,

Asaf.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - access MainDeployer in JBoss 5

2007-07-18 Thread editha
Hello,

I'd like to know how to acess the MainDeployer in Jboss 5.

The Wiki entry (http://wiki.jboss.org/wiki/Wiki.jsp?page=MainDeployer) of the 
Maindeployer says
that in JBoss4 the MBean jboss.system:service=MainDeployer can be used to acess 
the MainDeployer.

However for JBoss5 it only says that the MainDeployer is now an implementation 
of the org.jboss.deployers.spi.deployment.MainDeployer interface in JBoss5. See 
JBoss5DeploymentFramework for details.

I took a look at JBoss5DeploymentFramework 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5DeploymentFramework) but I did 
not find what I was looking for.

Does any one know how to access the MainDeployer?

Thanks in advance!






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

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


[jboss-user] [EJB/JBoss] - Re: Unable to passivate due to ctx lock in JBoss-4.0.4GA

2007-07-18 Thread syedtaj
Just a correction to my earlier message. 

I understand it is not an error, just a warn - but does hundreds of messages 
like this indicate a problem that we need to investigate?

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

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


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
I did the following for the partial refresh

Log in as admin and added the Partial refresh property for that page but 
disabled the partial refresh by unchecking it.Then log in as the user and 
copied that particular page to my dashboard. Now everything is working fine. 
The problem is with the partial refresh, i have not enabled the feature but by 
default it is enabled so i disabled it as i mentioned. Is that the javascript 
and the link tags to style wont work for partial refresh(Multiple instance of 
same portlet on same page)?

Thank you very much for your kind help. 

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

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


[jboss-user] [EJB/JBoss] - Re: Unable to passivate due to ctx lock in JBoss-4.0.4GA

2007-07-18 Thread syedtaj
This topic suggests that this is a warning that will still come for SFSB - 
Stateful session beans. 

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

However is this error anyways related to slowness.

And why does the error occur? Is it because when the cache is attempting to 
flush, it is unable to?

Any light will be great.
[/url]

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

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


[jboss-user] [JBossWS] - Re: how to get wstools working in jboss 4.2

2007-07-18 Thread lambeths
I found a solution... I had to add a few jars to the WSTOOLS classpath in 
wstools.bat, but it was different for JRE 1.5 vs 1.6.

Using JRE 1.5.x I had to add the following:

set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar
  | set 
WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar
  | set 
WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxws.jar
  | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-saaj.jar

Using JRE 1.6.x only two of those lines were necessary:
set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar
  | set 
WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar



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

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


  1   2   3   >