[JBoss-user] [Performance Tuning] - Re: IOException while loading persisted sessions

2005-10-25 Thread genman

Something not serializable is being stored in a Servlet Session.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903422


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: how is tuning carried out for jboss

2005-10-25 Thread genman

Look at information in the Wiki.  There's a link on performance.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903421


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: JBossWS performance number

2005-10-25 Thread genman

Not too terribly surprising, given that WS has a lot of XML marshalling 
overhead, as well as HTTP requests are quite slow.

If you could run a Java profiler (JBoss profiler possibly) during the WS test, 
perhaps you could see exactly what's taking such a long time?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903419


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss MQ deadlocks using JBoss 4.0.2 + MySQL 4.1.14 Inno

2005-10-25 Thread genman

Not sure, does MySQL support row-level locking?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903417


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MDB deployment problem

2005-10-25 Thread genman

Do you know why this same question appears every few days?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903416


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: How to set onnection properties on a XA Datasource

2005-10-25 Thread genman
I'm hardly an expert on this stuff here.  But you can always create a wrapper 
driver (java.sql.Driver) which sets the properties like you want.

If you want to contribute this feature, please feel free to download JBoss from 
CVS and create a patch.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903415


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - MDB deployment problem

2005-10-25 Thread Pranavakumar
Hai every one,
when i put MDB deployment jar file in JBOSS deploy folder i am getting 
these exception.

11:10:46,765 WARN [JMSContainerInvoker] JMS provider failure detected:
javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory 
not bound
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:776)
My code is

  | package com.nabil.ejb; 
  | 
  | import javax.ejb.MessageDrivenBean; 
  | import javax.ejb.MessageDrivenContext; 
  | import javax.ejb.EJBException; 
  | import javax.jms.JMSException; 
  | import javax.jms.Message; 
  | import javax.jms.MessageListener; 
  | import javax.jms.Queue; 
  | import javax.jms.QueueConnection; 
  | import javax.jms.QueueConnectionFactory; 
  | import javax.jms.QueueSender; 
  | import javax.jms.QueueSession; 
  | import javax.jms.TextMessage; 
  | import javax.naming.InitialContext; 
  | import javax.naming.NamingException; 
  | 
  | 
  | public class MyMDB implements MessageDrivenBean, MessageListener {
  |   MessageDrivenContext context = null; 
  |   QueueConnection connection; 
  |   QueueSession session; 
  | 
  |   public MyMDB() {
  | System.out.println("Constructing MyMDB"); 
  |   } 
  | 
  |   public void setMessageDrivenContext(MessageDrivenContext context) {
  |   this.context = context; 
  | System.out.println("setMessageDrivenContext"); 
  |   } 
  | 
  |   public void ejbCreate() throws EJBException {
  | System.out.println("ejbCreate"); 
  | try {
  |   InitialContext initContext = new InitialContext(); 
  |   QueueConnectionFactory qcf = (QueueConnectionFactory) 
  | initContext.lookup("java:comp/env/jms/QCF"); 
  |   connection = qcf.createQueueConnection(); 
  |   session = connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE); 
  |   connection.start(); 
  | } 
  | catch(Exception e) {
  |   throw new EJBException("Failed to initialize MyMDB", e); 
  | } 
  |   } 
  | 
  |   public void ejbRemove() {
  | System.out.println("ejbRemove"); 
  | context = null; 
  | try {
  |   if( session != null ) 
  | session.close(); 
  |   if( connection != null ) 
  | connection.close(); 
  | } 
  | catch(JMSException e) {
  |   e.printStackTrace(); 
  | } 
  |   } 
  | 
  |   public void onMessage(Message msg) {
  | System.out.println("onMessage"); 
  | try {
  |   TextMessage message = (TextMessage) msg; 
  |   Queue queue = (Queue) msg.getJMSReplyTo(); 
  |   QueueSender sender = session.createSender(queue); 
  |   TextMessage message2 = session.createTextMessage(message.getText()); 
  |   sender.send(message2); 
  |   sender.close(); 
  | } 
  | catch(Exception e) {
  |   e.printStackTrace(); 
  | } 
  |   } 
  | }
  | 
ejb-jar.XMl is

  |  
  | http://java.sun.com/dtd/ejb-jar_2_0.dtd";> 
  | 
  |  
  |
  |  
  |   MyMDB 
  |   com.nabil.ejb.MyMDB 
  |   Container 
  |   AUTO_ACKNOWLEDGE 
  |
  | javax.jms.Queue 
  |
  |
  | jms/QCF 
  | javax.jms.QueueConnectionFactory 
  | Container 
  |
  |  
  |
  | 
  | 
jboss.xml is

  |  
  |  
  |
  |  
  |   MyMDB 
  |   queue/MyQueue 
  |
  | jms/QCF 
  | QueueConnectionFactory 
  |
  |  
  |
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903414


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: In the init() mothod couldn't lookup datasource,thank u

2005-10-25 Thread genman
You may need to add a jboss-web.xml with a  in it so that the data source gets 
deployed before your web app does.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903413


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How to invoke mbean method from standalone class

2005-10-25 Thread rdcmali
Thanks darranl,
I used the old lib.  The problem solved.

Thank you again.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903411


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Error at the first start of jboss

2005-10-25 Thread frannack
Hello,

I'm trying to install jboss on my fc4 machine using jdk 1.5.0.5 and selecting 
ejb3.

As soon as I launch run.sh, I get this error message:

07:40:22,846 INFO [EJB3Deployer] Default persistence.properties: 
{hibernate.transaction.flush_before_completion=false, 
hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces,
 hibernate.transaction.auto_close_session=false, 
hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, 
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup,
 hibernate.dialect=org.hibernate.dialect.HSQLDialect, 
hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, 
hibernate.hbm2ddl.auto=create-drop, 
hibernate.connection.datasource=java:/DefaultDS, 
hibernate.connection.release_mode=after_statement}
07:40:22,852 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind 
port: 3873, bind address: /81.57.21.186
07:40:22,900 ERROR [Connector] Error starting connector.
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)


Does anyone as any suggestions?

MTIA

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903409


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Error at the first start of jboss

2005-10-25 Thread frannack
Sorry, it's the wrong forum, please delete this. I'll put it in the beginner 
corner.

Thanks

Franck

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903408


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Error at the first start of jboss

2005-10-25 Thread frannack
Hello,

I'm trying to install jboss on my fc4 machine using jdk 1.5.0.5 and selecting 
ejb3.

As soon as I launch run.sh, I get this error message:

07:40:22,846 INFO  [EJB3Deployer] Default persistence.properties: 
{hibernate.transaction.flush_before_completion=false, 
hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces,
 hibernate.transaction.auto_close_session=false, 
hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
 hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, 
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup,
 hibernate.dialect=org.hibernate.dialect.HSQLDialect, 
hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, 
hibernate.hbm2ddl.auto=create-drop, 
hibernate.connection.datasource=java:/DefaultDS, 
hibernate.connection.release_mode=after_statement}
07:40:22,852 ERROR [SocketServerInvoker] Error starting ServerSocket.  Bind 
port: 3873, bind address: /81.57.21.186
07:40:22,900 ERROR [Connector] Error starting connector.
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)


Does anyone as any suggestions?

MTIA

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903407


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: [1.2.4] JDBCCacheLoader errors when using ManagedConnect

2005-10-25 Thread [EMAIL PROTECTED]
This may be a bug, can you create a JIRA issue for JBossCache ? It will be 
fixed in 1.3 then

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903405


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems with Optimistic Locking in 1.2.4 FINAL

2005-10-25 Thread [EMAIL PROTECTED]
We thought about this before. The problem is that when such an exception 
occurs, the TX will be rolled back, so you would have to submit the entire 
batch of operations that you submitted within the TX scope again, not just the 
failed operation. We chose to let the developer handle this.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903401


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - In the init() mothod couldn't lookup datasource,thank u very

2005-10-25 Thread zhjjava
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70600

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903402


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Session Timeout issue in clustered jboss

2005-10-25 Thread [EMAIL PROTECTED]
There is a JIRA issue related to this:

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

I'm sure there will be a design discussion on the dev forum for this as well 
once I get done with training.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903397


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - Accessing another JBoss server from within A server

2005-10-25 Thread duanq
Hi,

>From JBoss server A how can I access the MBeanServer in another JBoss server 
>B? 

It seems JBoss has some optimization preventing to access a remote MBeanServer, 
could you advise?

DQ
 



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903394


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: java.lang.LinkageError: loader constraints violated when

2005-10-25 Thread daviskv
To give more info on this problem - actually, the jar (sfcUtil.jar) contains 
this Response class is there in both EAR and WAR file. But when removing the 
jar from WAR and keeping only in EAR, failing to deploy the application fully. 

Could you please direct me some packaging doc with regards to this problem ?.

Thanks in advance.

Regards,
Davis

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903393


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: How to change the url to my application dynamically?

2005-10-25 Thread gfzhang
I do not know how to start with it, could you give me more advice?

thank you.

guofeng


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903388


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Trying to get started

2005-10-25 Thread kazan77777
OK, I downloaded the latest JBoss 4.0.3 and I was able to sucessfully bind to 
the session object.

However, I am getting this stacktrace:
[BasicPropertyAccessor] IllegalArgumentException in class: 
com.x.persistence.Test, setter method of property: Id
[BasicPropertyAccessor] expected type: java.lang.Integer, actual value: 
java.lang.Integer
[STDOUT] org.hibernate.PropertyAccessException: IllegalArgumentException 
occurred while calling setter of com.xxx.persistence.Test.Id

I have searched all over the internet for some explanation of this error, but I 
have not had any luck.

I am using Oracle.  My id column is using an Integer datatype.  I have tried 
using a int and Integer data type in my .java file.  

Here is my JSP page:

  | <%@ page import="java.io.*" %>
  | <%@ page import="java.util.*" %>
  | <%@ page import="org.hibernate.*" %>
  | <%@ page import="org.hibernate.cfg.*" %>
  | <%@ page import="javax.naming.*" %>
  | <%@ page import="javax.transaction.*" %>
  | <%@ page import="org.hibernate.*" %>
  | <%@ page import="org.hibernate.cfg.*" %>
  | <%@ page import="com.xxx.persistence.*" %>
  | <%@ page import="org.jboss.hibernate.session.*" %>
  | 
  | 
  |  
  |  
  | 
  | 
  | <%
  |   try {
  | System.out.println("test.1");
  | 
  | Context ctx = new InitialContext();
  | SessionFactory sf = 
(SessionFactory)ctx.lookup("java:/hibernate/SessionFactory");
  | Session s = sf.openSession();
  | 
  | 
  | 
  | //Session s = 
HibernateContext.getSession("java:/hibernate/SessionFactory");
  | System.out.println("test.2");
  | org.hibernate.Transaction tx = s.beginTransaction();
  | System.out.println("test.3");
  | Test test = new Test();
  | System.out.println("test.4");
  | test.setCName("");
  | System.out.println("test.5");
  | s.save(test);
  | System.out.println("test.6");
  |   }
  |   catch(Exception exception){
  | exception.printStackTrace();
  |   }
  | %>
  |  
  | 


Here is my Test table: (Oracle)

  | create table TEST
  | (
  |   ID   INTEGER primary key,
  |   C_NAME   VARCHAR2(256),
  |   C_NUMBER NUMBER,
  |   C_DATE   DATE
  | )
  | 

Here is my hbm file:

  | 
  | http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
  | 
  |   
  | 
  |   
  |   
  | TEST_ID_SEQ
  |   
  | 
  | 
  |   
  | 
  | 
  |   
  | 
  | 
  |   
  | 
  |   
  | 
  | 

Here is my .java file:

  | package com.xxx.persistence;
  | 
  | import java.util.Set;
  | 
  | public class Test implements java.io.Serializable {
  |   private Integer Id;
  |   private String CName;
  |   private String CNumber;
  |   private String CDate;
  | 
  |   // Constructors
  |   public Test(){
  |   }
  | 
  |   // Property accessors
  |   public Integer getId(){
  | return this.Id;
  |   }
  | 
  |   public void setId(Integer Id) {
  | this.Id = Id;
  |   }
  | 
  |   public String getCName() {
  | return this.CName;
  |   }
  | 
  |   public void setCName(String CName) {
  | this.CName = CName;
  |   }
  | 
  |   public String getCNumber() {
  | return this.CNumber;
  |   }
  | 
  |   public void setCNumber(String CNumber) {
  | this.CNumber = CNumber;
  |   }
  | 
  |   public String getCDate() {
  | return this.CDate;
  |   }
  | 
  |   public void setCDate(String CDate) {
  | this.CDate = CDate;
  |   }
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903383


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - problem in programming with jms

2005-10-25 Thread lovejesus
hey,everyone!
i 'm new here.have some problems when programming with jms in jboss 4.0.2:

1.What's the differece and relationship between the config files under 
deploy-hasingleton\jms and deploy\jms? What do I need to do if I want to config 
my jms provider and jms destination?

2.When running a jms test program,I encounted such exception:
  java.lang.ClassCastException: javax.naming.Reference
   
  it is resulted in the code :
Object tmp = iniCtx.lookup("ConnectionFactory");
  | TopicConnectionFactory tcf = (TopicConnectionFactory)tmp;


  I found the fixing method saying : add the  messaging.jar, 
messagingclient.jar and   messagingImpl.jar to the project. But the problem is 
i can't find them anywhere,who could tell me how to do?Most of the Jms 
programming guides are in WebLogic or WebSphere,is there any thing like this in 
jboss 4 environment?

thanks a lot!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903379


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - http 404

2005-10-25 Thread moonny
i'm a begineer in jboss and so does java. i've install teh jboss v4.0.2 and 
jboss-portal.sar, portal-forums.ear and also setup xml files. then i try to run 
http://localhost:8080/portal/ but the error HTTP 4.4 is found. when i run 
others uch as 
http://localhost:8080/portal/index.html?ctrl:id=page.default.admin, the same 
problem occurred.so anybody can help me to figure out what's going wrong here? 
thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903378


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Connection not getting closed

2005-10-25 Thread haribabu_nunna
Hai,
 The problem for opening the connections is that even u access the Database 
or not the connections gets created by the min. no. of connection ie min-pool 
size. Once there  are no any transactions on that connections then the Jboss 
closes the connections.. If they are not getting closed means. the problem is 
some where ur code has the connection object opened for you So plz check 
the code and also do let me know the version of JBoss ur using...

Thanks & Regards,
Hari Babu Nunna...



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903376


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems with Optimistic Locking in 1.2.4 FINAL

2005-10-25 Thread [EMAIL PROTECTED]
Yes, user should expect that not every time the put operation will succeed, for 
instance, due to write contention. JBoss Cache should throw something like 
LockTimeoutException, etc.

But in this case, we may need to be more explicit.

-Ben


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903370


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - [1.2.4] JDBCCacheLoader errors when using ManagedConnections

2005-10-25 Thread neotyk
Hi,

My setup:
Singleton MDB uses persistent (JDBCCacheLoader) cache.
Associated DS min/max-pool-size is 1.
So only one connection should be present at any time.

I've lowered DS poll size to see problem clearly, it occures with larger pools 
too.

The error I get:
[26.10.2005|02:40:17:764] [JMS SessionPool Worker-0] 
[org.jboss.jms.asf.StdServerSession] [onMessage] [ERROR] [354] : failed to 
commit/rollback
  | org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=stasio/21, BranchQual=, 
localId=21] status=STATUS_NO_TRANSACTION; - nested throwable: 
(org.jboss.util.Nest
  | edRuntimeException: ; - nested throwable: (java.lang.IllegalStateException: 
Failed to get connection: No ManagedConnections available within configured 
blocking timeout ( 3 [ms] ); - nested throwable: (javax
  | .resource.ResourceException: No ManagedConnections available within 
configured blocking timeout ( 3 [ms] 
  | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
  | at org.jboss.tm.TxManager.commit(TxManager.java:200)
  | at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:341)
  | at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
  | at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
  | at org.jboss.mq.SpySession.run(SpySession.java:333)
  | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  | at java.lang.Thread.run(Thread.java:534)
  | Caused by: org.jboss.util.NestedRuntimeException: ; - nested throwable: 
(java.lang.IllegalStateException: Failed to get connection: No 
ManagedConnections available within configured blocking timeout ( 3 [ms]
  |  ); - nested throwable: (javax.resource.ResourceException: No 
ManagedConnections available within configured blocking timeout ( 3 [ms] )))
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:232)
  | at 
org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1384)
  | at 
org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1076)
  | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296)
  | ... 8 more
  | Caused by: java.lang.IllegalStateException: Failed to get connection: No 
ManagedConnections available within configured blocking timeout ( 3 [ms] ); 
- nested throwable: (javax.resource.ResourceException: No
  | ManagedConnections available within configured blocking timeout ( 3 
[ms] ))
  | at 
org.jboss.cache.loader.JDBCCacheLoader$ManagedConnectionFactory.prepare(JDBCCacheLoader.java:1513)
  | at 
org.jboss.cache.loader.JDBCCacheLoader.prepare(JDBCCacheLoader.java:504)
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:140)
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor.access$000(CacheStoreInterceptor.java:23)
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:218)
  | ... 11 more
  | 

For me it looks like JDBCCacheLoader "Owns housekeeping", so it doesn't
release connections.

If I'm getting something wrong, please give me some pointers to use persistent 
cache properly.

Thanks in advance,
   Hubert.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903369


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Session Timeout issue in clustered jboss

2005-10-25 Thread [EMAIL PROTECTED]
Not sure if I understand you correctly. But there is no good policy for the 
listner unfrotunately regarding to the lifecycle events in a distributed sense. 
For example, when a session is invalidated on one node, it will replicate to 
invalidate on the other nodes. Should we or should we not trigger the lifecycle 
events?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903366


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Is it necessary to use HAJMS when on a cluster?

2005-10-25 Thread jimyliu
Hi,

Where can I find the document for JMS paralelizing ?
Thanks.

Jimy

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903365


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Descriptior for durable topic client

2005-10-25 Thread [EMAIL PROTECTED]
So it automagically knows what topic subscription you want to make
using the special parameter?

  | true
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903361


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: BaseCertLoginModule working, but browser has a 403 in To

2005-10-25 Thread rollin368
I found that the role allocation appears to behave oddly.

It looks like the roles are being allocated to "verisign.com/cps/testca (c)05, 
OU=TFCCS, O=TSG, L=Boston, ST=Massachusetts, C=US".  Is this possible?

anonymous wrote : 
  | 2005-10-25 19:21:02,146 TRACE 
[org.jboss.security.auth.spi.BaseCertLoginModule] The supplied certificate 
matched the certificate in the keystore.
  | 2005-10-25 19:21:02,146 TRACE 
[org.jboss.security.auth.spi.BaseCertLoginModule] exit: 
validateCredentail(String, X509Certificate)
  | 2005-10-25 19:21:02,146 TRACE 
[org.jboss.security.auth.spi.BaseCertLoginModule] User 'CN=rollin, OU=Terms of 
use at www.verisign.com/cps/testca (c)05, OU=TFCCS, O=TSG, L=Boston, 
ST=Massachusetts, C=US' authenticated, loginOk=true
  | 2005-10-25 19:21:02,146 DEBUG 
[org.jboss.security.auth.spi.BaseCertLoginModule] exit: login()
  | 2005-10-25 19:21:02,146 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] initialize, [EMAIL 
PROTECTED]
  | 2005-10-25 19:21:02,156 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: null
  | 2005-10-25 19:21:02,156 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] Properties 
file=file:/C:/jboss-4.0.3/server/default/conf/props/jmx-console-users.properties,
 defaults=null
  | 2005-10-25 19:21:02,156 DEBUG 
[org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, 
users=[admin, CN=rollin, OU=Terms of use at www.verisign.com/cps/testca (c)05, 
OU=TFCCS, O=TSG, L=Boston, ST=Massachusetts, C=US]
  | 2005-10-25 19:21:02,156 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] findResource: null
  | 2005-10-25 19:21:02,166 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] Properties 
file=file:/C:/jboss-4.0.3/server/default/conf/props/jmx-console-roles.properties,
 defaults=null
  | 2005-10-25 19:21:02,166 DEBUG 
[org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, 
users=[admin, CN=rollin, OU=Terms of use at www.verisign.com/cps/testca (c)05, 
OU=TFCCS, O=TSG, L=Boston, ST=Massachusetts, C=US]
  | 2005-10-25 19:21:02,166 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] login
  | 2005-10-25 19:21:02,186 TRACE 
[org.jboss.security.auth.spi.BaseCertLoginModule] commit, loginOk=true
  | 2005-10-25 19:21:02,186 TRACE 
[org.jboss.security.auth.spi.UsersRolesLoginModule] commit, loginOk=true
  | 2005-10-25 19:21:02,186 TRACE 
[org.jboss.web.tomcat.security.JBossSecurityMgrRealm] User: CN=rollin, OU=Terms 
of use at www.verisign.com/cps/testca (c)05, OU=TFCCS, O=TSG, L=Boston, 
ST=Massachusetts, C=US is authenticated
  | 2005-10-25 19:21:02,196 TRACE [org.jboss.security.SecurityAssociation] 
pushSubjectContext, subject=Subject:
  | Principal: CN=rollin, OU=Terms of use at www.verisign.com/cps/testca 
(c)05, OU=TFCCS, O=TSG, L=Boston, ST=Massachusetts, C=US
  | Principal: Roles(members)
  | Principal: verisign.com/cps/testca (c)05, OU=TFCCS, O=TSG, L=Boston, 
ST=Massachusetts, C=US(members:JBossAdmin,HttpInvoker)
  | Public Credential: [
  | 

My jmx-console-users.properties is as follows.

  | # A sample users.properties file for use with the UsersRolesLoginModule
  | admin=admin
  | CN\=rollin,\ OU\=Terms\ of\ use\ at\ www\.verisign\.com\/cps\/testca\ 
\(c\)05,\ OU\=TFCCS,\ O\=TSG,\ L\=Boston,\ ST\=Massachusetts,\ C\=US=passwor
  | 

My jmx-console-roles.properties is as follows.

  | # A sample roles.properties file for use with the UsersRolesLoginModule
  | admin=JBossAdmin,HttpInvoker
  | CN\=rollin,\ OU\=Terms\ of\ use\ at\ www\.verisign\.com\/cps\/testca\ 
\(c\)05,\ OU\=TFCCS,\ O\=TSG,\ L\=Boston,\ ST\=Massachusetts,\ 
C\=US=JBossAdmin,HttpInvoker
  | 

Any pointers on this is very much appreciated.

Rollin

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903360


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: how communicate between portlets?

2005-10-25 Thread mholzner
in 2.0 user an action request to set the state into the HttpSession , and have 
the second portlet pick it up there 

in 2.2 there is a new feature called IPC (inter portlet communication) that 
allows for just that. there is an example in the core portal when you build it 
from cvs (until there is a binary download: remember: 2.2 is pre alpha, but it 
works great already)



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903359


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Pass another Variable besides j_username j_password

2005-10-25 Thread wiley173
okay bad idea ...

I'll just do this ...


  | 
  |  something like select where username = ?
  | 
  | 

I think I need to read up on how j_security_check actually works ...

adios ~

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903351


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - problems under JSF

2005-10-25 Thread jj_andrade
Hi people, 
i am facing a big problem with jboss4_0_3 and tomcat5_5 inside it. The problem 
occurs when trying to deploy some jsf-example.war. Someone has a good solution 
for the problem below: 


18:41:20,382 ERROR [UIComponentTag] Faces context not found. getResponseWriter 
w 
ill fail. Check if the FacesServlet has been initialized at all in your 
web.xml. 

18:41:20,382 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception 
java.lang.NullPointerException 
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag. 
java:615) 
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217) 

at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71) 
at org.apache.jsp.greeting_jsp._jspx_meth_f_view_0(org.apache.jsp.greeti 
ng_jsp:138) 
at org.apache.jsp.greeting_jsp._jspService(org.apache.jsp.greeting_jsp:1 
14) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper 
.java:322) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 
14) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp 
atcher.java:672) 
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica 
tionDispatcher.java:463) 
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD 
ispatcher.java:398) 
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis 
patcher.java:301) 
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp 
l.java:322) 
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl. 
java:142) 
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha 
se.java:87) 
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) 
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) 
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp 
atcher.java:672) 
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica 
tionDispatcher.java:463) 
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD 
ispatcher.java:398) 
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis 
patcher.java:301) 
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.j 
ava:693) 
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav 
a:660) 
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:97) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper 
.java:322) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 
14) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi 
lter.java:81) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:202) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV 
alve.java:213) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV 
alve.java:178) 
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc 
ipalValve.java:39) 
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit 
yAssociationValve.java:159) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica 
torBase.java:407) 
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv 
e.java:59) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j 
ava:126) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j 
ava:105) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal 
ve.java:107) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav 
a:148) 
at or

[JBoss-user] [Installation, Configuration & Deployment] - problems under JSF

2005-10-25 Thread jj_andrade
Hi people, 
i am facing a big problem with jboss4_0_3 and tomcat5_5 inside it. The problem 
occurs when trying to deploy some jsf-example.war. Someone has a good solution 
for the problem below: 


18:41:20,382 ERROR [UIComponentTag] Faces context not found. getResponseWriter 
w 
ill fail. Check if the FacesServlet has been initialized at all in your 
web.xml. 

18:41:20,382 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception 
java.lang.NullPointerException 
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag. 
java:615) 
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217) 

at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71) 
at org.apache.jsp.greeting_jsp._jspx_meth_f_view_0(org.apache.jsp.greeti 
ng_jsp:138) 
at org.apache.jsp.greeting_jsp._jspService(org.apache.jsp.greeting_jsp:1 
14) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper 
.java:322) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 
14) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp 
atcher.java:672) 
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica 
tionDispatcher.java:463) 
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD 
ispatcher.java:398) 
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis 
patcher.java:301) 
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp 
l.java:322) 
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl. 
java:142) 
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha 
se.java:87) 
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) 
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) 
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp 
atcher.java:672) 
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica 
tionDispatcher.java:463) 
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD 
ispatcher.java:398) 
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis 
patcher.java:301) 
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.j 
ava:693) 
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav 
a:660) 
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:97) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper 
.java:322) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 
14) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:252) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi 
lter.java:81) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl 
icationFilterChain.java:202) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF 
ilterChain.java:173) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV 
alve.java:213) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV 
alve.java:178) 
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc 
ipalValve.java:39) 
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit 
yAssociationValve.java:159) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica 
torBase.java:407) 
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv 
e.java:59) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j 
ava:126) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j 
ava:105) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal 
ve.java:107) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav 
a:148) 
at or

[JBoss-user] [Security & JAAS/JBoss] - Pass another Variable besides j_username j_password

2005-10-25 Thread wiley173
Howdy,

Is it possible to pass another variable from your login form besides j_username 
and password.

So in the login-conf.xml I'd have


  | ?
  | 

and in my extended custom login class I'd have in the initialize method ..

  | newVar = (String)options.get("otherVar");
  | 

Is this possible, if so could you point me in the right direction or give me a 
clue? If it's just a bad idea please let me know why...

thank you



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903335


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-10-25 Thread joff
"toadie" wrote : "joff" wrote : (via a loadbalancing device in front of them) 
  |   | 
  | can't you use the same device to round-robin the request for the ejb client 
stub for you? especially since your bean is stateless
I'm afraid not, the loadbalancer is only there to handle requests from the 
outside.. the requests are quite infrequent, but result in a long-running task, 
which I want to balance the load of, across the JBoss nodes

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903334


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Does JBoss 4.0.3 look at the manifest?

2005-10-25 Thread rampratapa
Hi We have problem with JBOSS 4.0.3 as it is not looking into the manifest 
file.  We have the following directory structure from JBOSS default directory.

default
deploy
applib
commonlib

in our EAR deployed in deploy directory we have the following mainfest file 
under META-INF director in the EAR package.

 class-path: ../applib/appUtilities.jar ../commonlib/ DOM4j.jar 

Now in JBOSS 4.0.3 version it is not loading the appUitlities.jar and 
DOM4j.jar.  But it is working fine in 4.0.2

Any help is appreciated


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=390


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems with Optimistic Locking in 1.2.4 FINAL

2005-10-25 Thread DashV
Yes the slsb is writing to the same fqn every time...

As more of a philisophical question. Should a developer using jbosscache have 
to worry about this (catching and retrying a failed write) or should this 
behavior be inlined inside the api but only get used when the cache is 
configured for optimistic locking? (the max retries could even be configurable 
in the service descriptor)

As a developer using the api it would be nice if I didn't need to worry about 
the semantics involved with enabling optimistic locking. (much like I don't 
need to worry about transactions at all as the transaction manager can handle 
them.)

In our implementation we toggle many properties of the 4 caches we use based on 
the deployment environment. (for example if its being used in a cluster we 
might change one cache from reply_async to repl_sync to ensure consistency.) 
It's nice to be able to do this and not have to worry about our 200,000 plus 
lines of code blowing up because the semantics of the api we are are calling 
have changed under the hood and now regularly throw exceptions we never had to 
catch before.

Just my thoughts. I won't be at all offended if they land in the bit bucket. :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903330


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - JBossWS performance number

2005-10-25 Thread leesang
Hi all,

I developed a sample EJB application in JBoss, and published the Web Service 
according to http://wiki.jboss.org/wiki/Wiki.jsp?page=WSServerEJB.
The server and the client of the application exchange about 10KB messages.
Using the default configuration, I got some performance numbers.

Environment:
- JBoss 4.0.3
- J2SE 5.0
- 3.0GHz, 3.0GB, Windows XP

For RMI/JRMP, the average response time of a call was 400ms, when 50 threads 
kept sending requests. The server was fully utilized.

When it comes to WS, the average response time of the same call was 2000ms for 
just *ONE* thread sent requests. The server was fully utilized, too.

Even though I guessed WS is slower than RMI, it is surprising. About 250 times 
slower?

Looking forward to comments about this result.

Thank you,


SangJeong Lee


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903328


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Content-length header usage

2005-10-25 Thread [EMAIL PROTECTED]
A server log with org.jboss.axis at debug (maybe trace) level should show the 
message and the HTTP header fields.

Can show us an example of an incorrect Content-Length field.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903324


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: problem deploying WS - duplicate method names

2005-10-25 Thread [EMAIL PROTECTED]
This should be fixed

http://jira.jboss.org/jira/browse/JBWS-463

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903321


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Securing ServiceEndPoint for Servlet type WS

2005-10-25 Thread [EMAIL PROTECTED]
A java service endpoint deployed as a war is different with respect to setting 
up a security domain as any other webapp.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903320


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Need some start help. Im N00b

2005-10-25 Thread mesiasdiabolico
tHNX U vmUCH...

My test directory must bu under "deploy" ?

hoy can i use other directory outside the structure?

thnx

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903318


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - IDE that supports portlet development for JBOSS Portal

2005-10-25 Thread yhqian95
I have installed the bundle package of JBOSS server and Portal server( 
jboss-portal-2.0-jboss-4.0.2) and deployed the helloworld portlet. It works 
fine. 

Now I want to code my own portlet and portal. 
I am using JBOSS Eclipse IDE for the development on the JBOSS application 
server. The JBOSS Eclipse IDE tool dosen't support portlet development so far, 
how can I start? Is there an IDE that support portlet development on the JBOSS 
platform? 

Thanks 



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903315


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Connection not getting closed

2005-10-25 Thread harappa75
Hi,

 I have a datasource with the following properties

 5
30
5000
15

On JBoss startup I can see there are 5 connections opened in the database (SQL 
Server)

 Now when I start my application, after just using 3 connections (run three 
queries with 3 different connection)  the connection size in the DB has 
increased to 6 and it continues to increase, I have closed all the connections 
I am getting.

 This is causing the "No Managed Connection Available" error very soon, and 
everytime I have to restart JBoss.

 Can anyone point me in the right direction to solve this.

Regards
Rajesh J

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903314


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Load-Balancing SLSB

2005-10-25 Thread joff
The MDB is run on just one node at a time, using HAJMA/HASingleton


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903311


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss 4.0.3 + mySQL and TIMERS and HILOSEQUENCES

2005-10-25 Thread shreyas_s_shah
Can u submit the same of the forum that helped solve your issue. I am getting 
the same problems with TIMERS and HILO tables.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903309


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Adding a Tomcat Valve Via An MBean?

2005-10-25 Thread jiwils
It looks like JBoss deploys valves in semi-dynamic fashion since the 
tomcat5-service.jar contains Tomcat MBean descriptor XML files.  I am unsure 
how these are getting deployed however.  I tried mocking up my own JAR with a 
descriptor for a valve and placed it in the jbossweb-tomcat55.sar directory, 
but I had no luck with that.  I also tried using the Listener concept in 
server.xml as described by 
http://tomcat.apache.org/tomcat-5.0-doc/mbeans-descriptor-howto.html to refer 
to the same mock JAR's descriptor, but that did not seem to make a difference.  
Am I approaching this the correct way?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903305


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Tom Marrs Book, JBoss at Work

2005-10-25 Thread jasperboy
Anyone read this ? It's a terrific book, very hands-on, practical, accurate and 
everything works !

It's a great introduction to JBoss and includes hands-on examples of the j2ee 
stack, and hibernate, jboss class loading.

I'm not the brightest, but managed to work through the whole thing in a couple 
of days - it's really confidence inspiring. Along with the 'JBoss, A Developers 
Notebook' I think it covers most of what you need to get a project going.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903304


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: IllegalStateException when called getCallerPrincipall on

2005-10-25 Thread albertok
Sorry it's: 4.0.3RC2. We use this version as we have some time to release our 
product and it's better for us to migrate ASAP and then just to update the 
final version.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903300


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Sending Binary data using JBoss

2005-10-25 Thread edgoquist
Here is a totally BOGUS fix but it works.

<%
java.io.OutputStream os = response.getOutputStream();
_jspxFactory = null; 
%>



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903298


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Get list of users/roles no matter what JAAS security module

2005-10-25 Thread cmiles123
Hello,

I'm looking for a way to retrieve information from the installed security 
modules such as "list of users", "list of roles", "user member roles", etc etc 
in a generic way (ie: no code specific to the security module).

WebLogic allows you to do this via MBeans and WebSphere allows you to do this 
via a JNDI lookup of the UserRegistry.

I was hoping there is something equivalent in JBoss?

Thank you

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903294


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Log SQL statement

2005-10-25 Thread ohadraz
Greetings,

I would like to know, is there a way to configure JBoss to log the SQL 
statements it generates and executes?

Practically, I need it because I got this exception:
anonymous wrote : java.sql.SQLException: You have an error in your SQL syntax; 
check the manual that corresponds to your MySQL server version for the right 
syntax to use near '' at line 1and I do not know the source of this exception.
If I could see the SQL JBoss tries to execute, I can figure out what is wrong.

But beside my specific need, I think that logging the SQL statements is 
important (at least for beginners such as my self, to see what's going on 
here...)

So, please, if anyone knows how to do it, please share this information.

Thanks,
Ohad

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903288


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Need help with PetStore on JBoss 4.0.3

2005-10-25 Thread arjunnath
Hi,

Has anyone implement the PetStore application on JBoss 4 ?
There doesn't seem to be anything available anywhere ? I've googled for it but 
no luck.
I need the instructions for how to implement it (what changes to make) etc.

Please help !!

regards
arn

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903287


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Sending only part of an object

2005-10-25 Thread BogSolomon
I have two objects with one referencing the other through a variable. However I 
want to send to the client (through web services) only the the basic properties 
of my first class and not the entire second class also. 
I generated the .wsdl and the mapings using wscompile and then edited them to 
remove the mapping to the second object. I then generated the client part from 
the edited .wsdl file. However I get an error InvalidArgument because my class 
doesn't have the removed variable. With the initial .wsdl on the client 
everything works but I get all of the second class too.


So basically I was wondering if it is possible to send just some of the 
variables that are in a object to a client (with the rest being sent maybe on a 
 later request).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903286


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Testimonials] - Re: Petstore implemented on JBOSS and MYSQL

2005-10-25 Thread arjunnath
Can someone please help me out with PetStore on JBoss 4.0 ?

Where is this documented ? Can someone post the instructions please ?

thanks
arjun

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903285


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Help needed with DVDStore (Trailblazer)

2005-10-25 Thread arjunnath
I'm disappointed with the amount of information given in the DVDStore 
trailblazer. It simply is not enough.
There is hardly anything given about setting up the Database.
There is a link to the MySql site but nothing at the other end.

Can someone who has setup DVD store please help me out ?

1)Are there any pre-packaged versions of DVDStore that I could use.= ?
2) Do I need to install Ant to get DVD store to compile or not ? This is not 
clear from the traiblazer.

Thanks and regards
Arjun





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903284


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Descriptior for durable topic client

2005-10-25 Thread Denisius
Is it possible to define client (MDB) for durable topic without specifying 
client-id and  subscription-id in jboss.xml or 
subscriptionName and clientId in ejb-jar.xml for this MDB?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903283


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems with Optimistic Locking in 1.2.4 FINAL

2005-10-25 Thread [EMAIL PROTECTED]
There are some basic premises with optimistic locking.  To achieve the levels 
of concurrency, optimistic locking is only really recommended in a read-mostly 
scenario.

The moment you have concurrent writes to a node (even if it is just two tx's 
writing to the same node) one of the tx's will be forced to roll back (via a 
RollbackException) when validation fails.

In your test, does the SLSB write to the cache under the same fqn every time?  
If this is the case I can see why this happens, and I'd consider this normal 
behaviour ... something the application would have to be prepared to deal with 
by re-trying the tx.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903281


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Session Timeout issue in clustered jboss

2005-10-25 Thread pilania
It happens on Jboss-4.0.1sp1 and Jboss-4.0.2

Two server cluster is running. User logs in through CSS (using stick sessions) 
and request is sent to server 1. 

Session gets replicated to server 2 fine.

Web-app is distributable. Timeout is set to 3 mts on web-app.

After 3 mts even though user is working actively on server 1,  server 2 sends a 
session destroyed and our listener (implementing HttpSessionListener) has 
implemented sessionDestroyed method which logs the user out.
Which prompts the user to shout  "What the [EMAIL PROTECTED]"




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903279


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Simple users/roles login to EJBs not passing username/pa

2005-10-25 Thread elkner
I use usually a simpler approach:

public static InitialContext getInitialContext(...) 
  | throws NamingException
  | {
  | String trailer = ("http".equals(proto) || "https".equals(proto))
  | ? "/invoker/JNDIFactory"
  | : null;
  | URI uri = null;
  | try {
  | uri = new URI(proto, null, host, port, trailer, null, 
null);
  | } catch (Exception e) {
  | log.warn(e.getLocalizedMessage());
  | if (log.isDebugEnabled()) {
  | log.debug("getPreferredContextValues", e);
  | }
  | }   
  | if (uri == null) {
  | throw new IllegalArgumentException("invalid values");
  | }
  | String url = uri.getScheme() + "://" + uri.getHost() + ":" + 
uri.getPort();
  | if (uri.getPath() != null && uri.getPath().length() > 0) {
  | url += uri.getPath();
  | }
  | String factory = "org.jnp.interfaces.NamingContextFactory";
  | if ("http".equals(uri.getScheme()) || 
"https".equals(uri.getScheme())) {
  | factory = "org.jboss.naming.HttpNamingContextFactory";
  | }
  | Properties props = new Properties();
  | // java.naming.factory.initial
  | props.put(Context.INITIAL_CONTEXT_FACTORY, factory);
  | // java.naming.factory.url.pkgs
  | props.put(Context.URL_PKG_PREFIXES, 
  | "org.jboss.naming:org.jnp.interfaces");
  | // java.naming.provider.url
  | props.put(Context.PROVIDER_URL, url);
  | // jnp.disableDiscovery
  | props.put(JNP_DISCOVERY, 
  | 
!Misc.differentStrings(System.getProperty(JNP_DISCOVERY), "true"));
  | return new InitialContext(props);
  | }
  | ...
  | // login
  | SecurityAssociation.setPrincipal(new SimplePrincipal(name));
  | SecurityAssociation.setCredential(password);
  | InitialContext ctx = getInitialContext(...);
  | ...
  | // logout
  | SecurityAssociation.clear();
  | 
 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903275


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: IllegalStateException when called getCallerPrincipall on

2005-10-25 Thread darranl
There is one digit missing from your JBoss version number, also is there any 
reason why you are using a release candidate version?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903271


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - IllegalStateException when called getCallerPrincipall on SLS

2005-10-25 Thread albertok
JBoss 4.0RC2
Hi,

I have old MDB EJB2.1 with configured RunAs as well as permisions and call 
method on a new SLSB EJB3.0. When tries to call getCallerPrincipall (in this 
SLSB) on SessionContext then I got IllegalStateException

Previously I have used entity bean (ejb2.1) instead of SLSB with permissions 
unchecked=true and it returned default principal.

Can You help?

Thanks,
Albert


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903266


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: jboss serialization performance

2005-10-25 Thread [EMAIL PROTECTED]
We just created a forum for JBossSerialization.

So, I'm moving this whole thread to that forum.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903258


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Commit option A and direct JDBC statements

2005-10-25 Thread elopezpicado
May I use commit option A and execute update sentences throw JDBC like this:

  | javax.sql.DataSource dataSource = (javax.sql.DataSource) 
homeFactory.lookup(
  | "java:/GlobalDS", javax.sql.DataSource.class);
  | 
  | Connection conn = null;
  | try {
  |   conn = dataSource.getConnection();
  |   PreparedStatement stmNota = conn .prepareStatement(
  |   "UPDATE NOTES (NOTESTATE, DATE VALUES ('P','" +
  |   util.dateNow() + "') WHERE ID = " + id.intValue());
  |   stmNota.executeUpdate();
  |   stmNota.close();
  |   conn .close();
  | 
  | }
  | catch (Exception exc) {
  |   exc.printStackTrace();
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903257


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How to reset Jboss Admin username and password

2005-10-25 Thread abc123xyz
Thank you - It was Oracle that was listening on that port

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903256


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How to reset Jboss Admin username and password

2005-10-25 Thread darranl
Ok your question is not related to JBoss Portal, you should really ask your 
question at: -

http://www.jboss.com/index.html?module=bb&op=viewforum&f=141

Before starting JBoss you should check if anything else is listenting on port 
8080 (I suspect you have installed something else that is prompting for the 
password).  You can check this with the command 'netstat -ao' which will also 
give you the process id of any process listening on the port.

Also when JBoss starts you should check to see if there are any errors in the 
console window during start up.

Finally if you should describe how you installed JBoss, if you used the 
installer you should say what options you selected.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903254


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Tomcat 4.1.29

2005-10-25 Thread Siggib
Hi all

I am using tomcat standalone  4.1.29 with jboss 3.2.7, and I did follow the 
instructions on
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming
page

tomcat is using the jbossall-client.jar 

only thing so far changed is from jrmp to pooled mbean invoker in 
standardjboss.xml file . 

And i get error in the tomcat startup saying

Caused by: java.lang.IllegalArgumentException: interface 
com.b.bgp.BwCustomerService is not visible from class loader

If I change back to jrmp insted of pooled mbean invoker, tomcat display no 
errors and everything works fine.. ?

Could ANYONE point me in some directions if I need to do changes elsewhare in 
either tomcat or jboss .

Thanks
Siggi











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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903252


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How to reset Jboss Admin username and password

2005-10-25 Thread abc123xyz
http://localhost:8080/web-console/

And I use Jboss 4.0.3

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903250


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How to reset Jboss Admin username and password

2005-10-25 Thread darranl
I am not sure if you are really talking about JBoss Portal, what is the URL you 
are using to connect?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903247


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How do I write Portlets for my Own Portal..

2005-10-25 Thread ray_lukas
I looked up that link for you..

http://developers.sun.com/prodtech/portalserver/reference/techart/university.html

there are a lot of good resources here and I understand now that the source for 
that portlet is now there.. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903246


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - How to reset Jboss Admin username and password

2005-10-25 Thread abc123xyz
When I try to go into jboss admin console I get a prompt saying: "enter user 
name and password for xdb". I tried to enter the default user name and password 
(Admin/Admin), but with no luck.

How can I reset the admin password ?

Thank

Aviran

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903245


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EMAIL PROTECTED] - Lead Generation

2005-10-25 Thread [EMAIL PROTECTED]
Lead Generation Role

Sales Execs at JBoss are responsible for calling on accounts in their ?dirt?. 
Finding leads and working those leads so that they prosper into services 
business.  ?Working? leads can take away a good amount of time away from 
finding more leads that potentially develop into sales. The Lead Generation 
role is dedicated exclusively for calling into large, untouched accounts and 
planting the seed for building a relationship with JBoss.  The Lead Generation 
role saves Sales Execs time in that more of their conversations will be 
selling, as opposed to prospecting and most importantly builds their sales 
Pipeline.

Important: This role can be seen as a junior role that leads into a Sales Exec 
role.  If a Lead Gen rep calls on a set territory supporting 3-4 senior reps 
and shows success, he can then take a spot owning accounts in that territory 
after 12 months of doing lead generation? showing a career path and growth.

Responsibilities
Bang the phones 80-100 calls a day (Number of calls will be tracked via the 
Manager)
Find new qualified leads for reps that result in JBoss presentations
Get reps in front of the right people ? CXO, Directors, and other decision 
makers
Round out sales force with contact names and get JBoss name on the street

Measurements
Must reach X number of touches per day of new customers
Measured on number of qualified leads passed to sales team ? there needs to be 
a certain number generated
?   Defined information on account and roles prior to passing
o   Their business
o   Roles involved
o   What are they using now for middleware
o   Why is there an interest in JBoss, Inc.
o   BANT (budget, authority, need, timeframe)

Measured on amount of business that closes from leads passed by ? shows the 
quality of leads
Measured on revenue associated with leads passed ? what size deals are you 
finding? 
Measured on number of face to face or Webex meetings that are set for each 
Account Exec
Qualify new sales leads that come into the Que with little to no information ? 
What is the company and where are they located 

Measurements:
2 Qualified leads a day
10 Qualified leads a week
40 Qualified leads a month  
120 Qualified leads a Quarter

Work with Marketing
Work with Marketing team to assist in lead generation through ? 
Telemarketing campaigns that followup up on mailings, email blasts, general 
webexs, trade shows, News Letters
Going to get with Sylvia on recent and future campaigns that marketing will be 
running on JBoss, Inc.
Work with Scott Mealy on different reports that he can manipulate through 
Eloqua 

Coverage
Initially can be segmented by days of the week and percentages on a given 
region can be dictated by which rep requires the most help with pipeline


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903244


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Simple users/roles login to EJBs not passing username/pa

2005-10-25 Thread erik777
WOW!  I got it.  Thanks to the post of tineq I noted that he was using

 p.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.security.jndi.JndiLoginInitialContextFactory");

whereas I was using org.jboss.security.jndi.LoginInitialContextFactory per the 
recommendation of 

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

What do you know, I just plugged and found a 

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

page!  

With this class, you don't need to use Context.SECURITY_PROTOCOL or setup 
jaas.conf on the client.  It's as easy as it looks.

Both classes are in the 4.0.2 source.  I'm not sure at this poitn whe you'd use 
the class without the Jndi prefix, but it's looking more like a base class 
rather than a class you'd want to use directly.  Perhaps it's needed for some 
things like LDAP.

Anyway, thanks for your help tim.cockle; and your inadvertant help tineq!  
Hopefully someone else can benefit from the this thread.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903242


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: How do I write Portlets for my Own Portal..

2005-10-25 Thread ray_lukas
Well I am just starting to look at this portlet stuff again.. I am not totally 
sure I understand the question but I will venture an answer and hopefully it 
will be of some help to you. 

I am looking at a document that I got from the sun web page at 
http://developer.sun.org called the ?Introduction to JSR 168 ? The Java Portlet 
Specification?. I am sure that you can google it and find this exact location. 
In that document they go through the WeatherPorlet example. Which seems like a 
great example for people starting out, like me.. 

In this example they are displaying a link that you can click on and have it 
render a new ?page? in your portlet. Take a look at page 8 of this document, in 
the jsp code. It has something like;

?>
  |   enter Zip Code:
  | 
  | 
  | 

Is this what you are asking about.. does this help?
 
Take a peek at that document. If, and as, I find/discover more things I will 
post them for you.. 

ray


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903240


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Simple users/roles login to EJBs not passing username/pa

2005-10-25 Thread erik777
Thanks a million.  That pushed me closer.  I created a jaas.conf containing:

JaasJNDI {
  |   com.sun.security.auth.module.JndiLoginModule required;
  | };

and confirmed in debug mode that it loads the configuration.

It gets past the point where it threw an exception trying to extablish a 
context in org.jboss.security.jndi.LoginInitialContextFactory.java because it 
couldn't find a configuration,

LoginContext lc = new LoginContext(protocol, handler);

and now fails on the next line where it tries to login:

lc.login();

with this exception:

javax.security.auth.login.LoginException: Error: Unable to locate JNDI user 
provider

Although I have trace enabled in JBoss for org.jboss.security, nothing is 
output when this happens, so I'm not sure if it actually tries to talk to the 
server at this point.  

The JNDI URL for the home interface is correct, as it succeeds to invoke the 
session beans that don't require authorized users of roles when the JNDI 
SECURITY_ parameters are not supplied or do not prevent creation of the home 
interface.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903238


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Redirecting logs does not redirect all the logs

2005-10-25 Thread chintanks
Hello,
  I changed log4j.xml to redirect all the logs to the specified directory. But 
still I got one log at its default place, that is 
/server/default/log/server.log. Does anyone know what to do?
Here is my log4j.xml













http://jakarta.apache.org/log4j/"; 
debug="false">

   
   
   

   
   
  
  
  

  
  

  

  
 
 

 
  
   

   

   
   
   

   
  
  
  

  
 
 
  
   

   
   
   

   

   

   

   

   

   
   
   

   
   
  
   

   
   
  
   

   
   
  
   

   

   
   
  
   
   

   
   

   

   

   

   
  
   


   
   
   

   
  
  
   

   
   




Here is the log that I am getting at the default log directory.
2005-10-24 10:20:02,630 ERROR [org.apache.tomcat.util.net.PoolTcpEndpoint] 
Socket error c
aused by remote host /47.106.161.64
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTcpNoDelay(Socket.java:826)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.setSocketOptions(PoolTcpEndpoint.ja
va:503)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:
515)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread
.java:112)
at java.lang.Thread.run(Thread.java:595)


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903236


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Lazy load

2005-10-25 Thread martin ganserer
Hello,

I have got a problem with lazy load. I have a test web application. In a very 
simple servlet I want to search for all objects of a specific EJB via the local 
interface:

Here are my entity bean snippets:


  | @OneToMany(fetch=FetchType.LAZY,cascade=CascadeType.ALL)
  | @JoinColumn(name="forecast",referencedColumnName="id")
  | public Collection getSalesForecasts()
  | {
  | return salesForecasts;
  | }
  | 
  | 

the reverse side:

  | /**
  |  * @return the forecast.
  |  */
  | @ManyToOne(fetch=FetchType.LAZY,optional=false)
  | @JoinColumn(name="forecast",referencedColumnName="id")
  | public Forecast getForecast()
  | {
  | return forecast;
  | }
  | 



  | Forecast forecast : forecastManager.getAllForecasts()
  | 

If I take a look at my console I see the Hibernate SQL statements. These 
statements are telling me that the app fetches all data even the items that are 
marked for lazy load!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903235


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: Twiddle NotSerializableException

2005-10-25 Thread darranl
Another user has submitted a patch for this: -

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

If you are interested in the patch being applied you could vote for it.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903234


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How to invoke mbean method from standalone class

2005-10-25 Thread darranl
Are you sure your client is using the jbossall-client.jar from JBoss 4.0.3 and 
not from a previous version?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903233


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Auto reload classes in JBOSS

2005-10-25 Thread darranl
Are you sure the modified time of the web.xml is being updated, if using 
Windows most people seem to open the file in a text edit add and remove a 
character and save the file.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903231


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Test war or jar with JBOSS

2005-10-25 Thread darranl
Have you had a look at the code in the samples download?

The class you need to look at is 'JBossTestCase' and the suite() method in the 
test classes.  The Main Deployer MBean is invoked using the RMIAdapter and 
asked to deploy archives based on a URL.

This is good for testing and development but for anything else the downside is 
that the archives will not be automatically deployed if the server is restarted.

Alternatively you can look at the file 
{jboss.home}/server/default/con/jboss-service.xml Find the URLDeploymentScanner 
MBean definition at the bottom and there you can either specify other folders 
to be scanned in addition to deploy or add the URL of archives to be deployed.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903229


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Javassist user questions] - Getting Exception while deploying in JBOSS

2005-10-25 Thread piku mishra
Dear Techies,

I have used DOM Parser in my application.  This application is running 
successfully in case of Weblogic and Tomcat. But it is not running in 
JBOSS(latest Version).

I am getting this particaular application.

javax.servlet.ServletException:org.w3c.dom.Node.getTextContent()

org.apache.jasper.runtime.PageContextImpl.doHandlePageException


root Cause

java.lang.NoSuchmethodError:org.w3c.dom.Node.getTextContent().

Please help me in this regard.




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903230


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: How to change the url to my application dynamically?

2005-10-25 Thread [EMAIL PROTECTED]
Use apache in front

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903228


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Simple users/roles login to EJBs not passing username/pa

2005-10-25 Thread tim.cockle
Sounds like you need to set up the jaas.conf / auth.conf files. I have not used 
this example though so can't be of much help.

you should have one in client/auth.conf

I had this problem when setting up a remote client I found this helpfull:
http://www.awprofessional.com/articles/article.asp?p=394898


Good luck

Tim

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903227


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: You cannot commit with autocommit set!

2005-10-25 Thread marchesev
Hello albert,
I have the same problem with
 Oracle 9.2
 Jboss 4.0.2
 hibernate 2


I wonder if in the meantime you managed to solve the problem
Any hint is appreciated (consider that I have few degrees of freedom since
I haven't the code of the 3rd party hibernate wrapper the application is using)
Thanks
Vincenzo

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903226


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Reading of Oracle BLOB works with JBoss 3.2.3 but fails

2005-10-25 Thread parekhbh
Hi.. I am getting the same problem using Oracle 9i with JBoss AS 4.0.3.

Can someone help me out...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903215


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Web services URL

2005-10-25 Thread telenko
Hello,

Problem solved. My web application was using the same url as the webservices, 
so a call to http://pclf:8080/cbb-ovam/Processor?wsdl was handled by my web-app 
which resulted in a HTTP 404. 

I changed the url of my web-app and now the webservices are available through 
the url provided by JBoss. Cool.


Luc

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903214


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: log4j problem

2005-10-25 Thread chaituu
now i placed log4j.properties file in WEB-INF directory of war.
placed log4j-1.2.4.jar in WEB-INF/lib ;

files are created and are in default/log directory but content missing in those 
log files.

renamed log4j.xml to jboss-log4j.xml;i didnt make any changes in that file;do i 
need to make any changes?;

in jboss-service.xml i have grenamed to jboss-log4j.xml.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903211


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - ws4ee-Distribution?!

2005-10-25 Thread mugwump
Following up on my deployment troubles with webservices, I found the final 
reason to be, that ws4ee is not installed with the ejb3-profille of the 
jboss4.0.3-installer. 

As we have already started to change the server (added new Classes, changed 
configurations etc.), is there a possibility to deploy the ws4ee afterwards?! I 
didn't find any separate distributions for ws4ee. Can I simply deploy the 
ws4ee.sar that comes with jboss4.0.3 in an existing jboss-installation? 
Anything else I need to copy/deploy?! 

There is no possibility to install missing/uninstall unneeded Features via the 
graphical installer, or did I only miss that option?!

Cheers
stf

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903210


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - on-find read-ahead does not work

2005-10-25 Thread jivkoto
Hi, 
It seems that on-find read-ahead do not work properly. I?ve seen so many posts 
in this forum for this problem, and no concrete answer. So until then here is 
my problem too :)
I have entity with 3 fields (2 of them is primary key). I am trying to use 
on-find  read-ahead. And I expect that everything will be loaded when I call my 
findAll method. But instead of this there is one Select statement for 
everything. And N queries that loads the other field from the DB for every 
primary key. Which acts as on-load. Here is the log from the jboss console:
10:17:39,046 DEBUG [EAttachmentToProcess#findAll] Executing SQL: SELECT t0_a.cAt
tachId, t0_a.cProcessId, t0_a.cActId FROM tBPAttachProc t0_a

10:17:39,250 DEBUG [EAttachmentToProcess] Executing SQL: SELECT cActId FROM tBPA
ttachProc WHERE (cAttachId=? AND cProcessId=?)
10:17:39,265 DEBUG [EAttachmentToProcess] Executing SQL: SELECT cActId FROM tBPA
ttachProc WHERE (cAttachId=? AND cProcessId=?)
?? N TIMES

As you see it is in the same transaction  @ejb.transaction type="Required" (as 
noted in the Forum). Other thing is that I try and load-group for the 
activityId which is not in the PK for this table, and guess ? nothing changed. 
N+1 queries each time. It is killing me?
Additional info: This is JBoss 3.2.6 on Windows XP

Here comes my xDocleted entity. 

package com.some.attachment;

import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

/**
 * Entity representing the relation many-to-many between attachments and 
process instances
 * 
 * Standard entity bean, provides two finder methods (besides findByPK)- by 
attachment id 
 * and by process id.
 * 
 * @author nts
 * @version $Revision: 1.5 $
 * 
 * @ejb.bean name = "EAttachmentToProcess"
 *   type="CMP"
 *   local-jndi-name="ejb/EAttachmentToProcessLocal"
 *   jndi-name="ejb/EAttachmentToProcess"
 *   prim-key-class="com.some.attachment.EAttachmentToProcessPK"
 *   view-type="both"
 *   cmp-version="2.x"
 * 
 * @ejb.finder signature = "java.util.Collection 
findByAttachemntId(java.lang.String attachmentId)"
 * query = "SELECT Object(a) FROM EAttachmentToProcess a WHERE 
a.attachmentId = ?1"
 * 
 * @ejb.finder signature = "java.util.Collection 
findByProcessId(java.lang.String processId)"
 * query = "SELECT Object(a) FROM EAttachmentToProcess a WHERE 
a.processId = ?1"
 * 
 * @ejb.finder signature = "java.util.Collection findAll()"
 * query = "SELECT Object(a) FROM EAttachmentToProcess a" 
 * 
 * @jboss.query signature ="java.util.Collection findAll()"
 * query = "SELECT Object(a) FROM EAttachmentToProcess a" 
 * strategy = "on-find"
 * 
 * @ejb.transaction
 * type="Required"
 * 
 * @ejb.permission role-name="admin"
 * 
 * @ejb.persistence table-name = "tBPAttachProc" 
 * 
 * JBoss specific
 * 
 * @jboss.persistence table-name = "tBPAttachProc" create-table = "false"
 * 
 * @jboss.container-configuration name="EntityBean_Commit_A"
 * @jboss.read-ahead strategy="on-find" 
 * 
 * @jboss.entity-command name = "no-select-before-insert"   
 * 
 */
public abstract class EAttachmentToProcessEJB
implements EntityBean
{

private static final long serialVersionUID = 20050119L;

private transient EntityContext context;

/**
 * Part of the PK and also a FK to tAttachment
 * 
 * @return
 * 
 * @ejb.interface-method view-type = "both"
 * @ejb.persistence column-name = "cAttachId"
 *  jdbc-type="CHAR"
 *  sql-type="CHAR(36)"
 *  
 */
public abstract String getAttachmentId();


/**
 * 
 * @param id
 * 
 * @ejb.interface-method view-type = "both"
 * @ejb.persistence column-name = "cAttachId"
 *  jdbc-type="CHAR"
 *  sql-type="CHAR(36)"
 *  
 */
public abstract void setAttachmentId(String id);


/**
 * Part of the PK and also a FK to tProcInstance
 * 
 * @return
 * 
 * @ejb.interface-method view-type = "both"
 * @ejb.persistence column-name = "cProcessId"
 *  jdbc-type="CHAR"
 *  sql-type="CHAR(36)"
 *  
 */
public abstract String getProcessId();


/**
 * 
 * @param id
 * 
 * @ejb.interface-method view-type = "both"
 * @ejb.persistence column-name = "cProcessId"
 *  jdbc-type="CHAR"
 *  sql-type="CHAR(36)"
 */
public abstract void setProcessId(String id);


/**
 * Additional info - id of the activity (receive, invoke ...)
 * @return
 * 
 * @ejb.interface-method view-type = "both"
 * @ejb.persistence column-name = "cActId"
 *  jdbc-type= "VARCHAR"
 *  sql-type= "VARCHAR(512)"
 * 

[JBoss-user] [Security & JAAS/JBoss] - Re: Wrong SECURITY_PRINCIPAL

2005-10-25 Thread tineq
Just to explain a little bit further: we have a web-app that stores username 
and password in session (i know ... that's bad) and inside servlets (jsps) is:

InitialContext lctx = getInitialContext(user, password)
...
lctx.lookup(...)
...
lctx.lookup(...)

What happenes is that sometimes methods are called with wrong principal.
We don't actually need different principals on single Thread (like the first 
code). I found that this can be solved by using InitialContextFactory (instead 
of JndiInitialContextFactory) with multi-threaded="true" inside auth.conf file.
Can anything similar be achieved by using JndiInitialContextFactory?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903208


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Error in using TreeCache from Hibernate

2005-10-25 Thread [EMAIL PROTECTED]
This is a configuration error.  In hibernate-service.xml, you should use:


  | ...
  | 
  | org.hibernate.cache.TreeCacheProvider
  | true
  | ...
  | 

This is because Hibernate comes with a 'Provider' class for each major cache it 
supports; a wrapper that   abstracts Hibernate code from cache product 
specifics.

See 
http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html#performance-cache
 for more info on Provider classes.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903201


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - how communicate between portlets?

2005-10-25 Thread pedrosacosta
If i've 2 portlets and i want to send information between them, what should i 
do? I can't find any example to clarify me.

By the way, where can i find good examples of portlets with java source in it 
(not only class files) beside portletswap.com?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903200


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Wrong SECURITY_PRINCIPAL

2005-10-25 Thread tineq
There's a method in one of our Stateless EJB (named Log) that returns the 
logged in user. The code below prints out:

User1: b
User2: b

Why??? Two Log EJB's were created using different InitialContexts so I would 
expect that:

User1: a
User2: b

should be printed.


  |   public static InitialContext getInitialContext(String as_username, String 
as_password) throws Exception {
  | Properties p = new java.util.Properties();
  | p.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.security.jndi.JndiLoginInitialContextFactory");
  | p.put(Context.PROVIDER_URL, "localhost:1099");
  | p.put(Context.SECURITY_PRINCIPAL, as_username);
  | p.put(Context.SECURITY_CREDENTIALS, as_password);
  | 
  | p.put("java.naming.factory.url.pkgs", 
"org.jboss.naming:org.jnp.interfaces");
  | p.put("jnp.disableDiscovery", "true");
  | 
  | return new InitialContext(p);
  |   }
  | 
  |   public static void main(String[] args) throws Exception {
  | InitialContext lctx1 = getInitialContext("a", "a");
  | InitialContext lctx2 = getInitialContext("b", "b");
  | 
  | Log llog1   = 
((LogHome)PortableRemoteObject.narrow(lctx1.lookup("MobilePackage/Log"), 
LogHome.class)).create();
  | Log llog2   = 
((LogHome)PortableRemoteObject.narrow(lctx2.lookup("MobilePackage/Log"), 
LogHome.class)).create();
  | 
  | System.out.println("User1: " + llog1.getUserId());
  | System.out.println("User2: " + llog2.getUserId());
  |   }
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903199


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: how run JSP in Jboss Portal?

2005-10-25 Thread pedrosacosta
Here is my code


public class Test extends GenericPortlet {

protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException 
{
response.setContentType("text/html");

   String reqPath="/view.jsp";
   PortletRequestDispatcher prd = 
getPortletContext().getRequestDispatcher(reqPath);
   prd.include(request, response);




}
}


Here is my jsp code

<%@ page session="false" %>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri='/WEB-INF/tld/portlet.tld' prefix='portlet'%>


Hello,
I am the bookmark portlet.

Current Portlet Mode: <%=renderRequest.getPortletMode()%>
Current Window State: <%=renderRequest.getWindowState()%>



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903198


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: log4j problem

2005-10-25 Thread chaituu
log files are creating but content is not coming in log files;

still debug and info messages are coming in server.log;i dont want in 
server.log;i want to debug messages in respective log files only

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903197


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - how run JSP in Jboss Portal?

2005-10-25 Thread pedrosacosta
I created a portlet that works with servlets code. But, when i try to use the 
portlet with JSP, it doesn't appear anything when I run my portlet.

I only have doView method declared. What i put in doView method is

String reqPath = ?/calView.jsp?;
PortletRequestDispatcher prd = portContext.getRequestDispatcher(reqPath);
prd.include(req, resp);

But, my jsp file doesn't appear when i call my file. I suppose that jsp file is 
in the right path, because i don't have any exception. So, i deduce that portal 
reads or tries to read my file, but it doesn't show anything.
What's wrong?

Another question. If i've in my file doView and doEdit methods declared, how do 
i say to run defaultly the doView method?

Thanks


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903195


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: No method permissions assigned to method=create, interfa

2005-10-25 Thread tim.cockle
Have tried:


< description>test< /description>
pda_user
< method>
test
Diary
LocalHome
create


<  /method>


And:

< description>test< /description>

< method>
< description>test< /description>
Diary
LocalHome
create


< /method>


But neither work the same error:java.lang.SecurityException: No method 
permissions assigned to method=create, interface=LOCALHOME
at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:179)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:81)
at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
at 
org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:310)
at org.jboss.ejb.Container.invoke(Container.java:694)
at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272)
at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy4760.create(Unknown Source)
at alpha.personEntities.DiaryBean.ejbCreate(Unknown Source)
etc...




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903193


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Error load Library with Jdom

2005-10-25 Thread tatilou5
Hi,

I resolve my problem , I remove servlet.jar from my ear 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903191


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - jboss.audit extension - provide old/new field values

2005-10-25 Thread paul.croker
Hi,

I'm looking at providing audit information for certain entities.  The 
joboss.audit XDoclet tag looks ideal for this.

However, I'd like to record old/new field values, as well as the default 
information that jboss.audit provides.

Has anyone extended the jboss.audit tag in this way? Any advice or suggestions?

Many thanks

Paul.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903190


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


  1   2   >