[JBoss-user] [Security & JAAS/JBoss] - Re: request.getUserInRole returns null

2004-02-28 Thread [EMAIL PROTECTED]
anonymous wrote : If I put it to a "sec/*" url-pattern, only under this dir returns 
the getUserPrincipal() or the getUserInRole(), but upper pages from this dir cannot 
see my logged in context. I don't know why is that?? 
  | 

If you're trying to access the security context from an unprotected page, it will 
return a null.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Datasource Configuration] - Question about postgresql datasource

2004-02-28 Thread csp
I'm trying to setup JBoss (4.0DR3) to use Postgresql (7.4) datasource on Linux (Debian 
with kernel 2.4.22). 

Have no problem accessing PG with JDBC, and just couldn't get JBoss to use the 
datasource properly.

Ok, here's what I did.

Copy postgresql-jdbc3.jar into the directory
$JBOSS_HOME/server/default/lib

Tried with postgresql-jdbc2.jar too, with the same problem.

Put a file in $JBOSS_HOME/server/default/deploy/postgres-ds.xml with contents:



  
PostgresDS
jdbc:postgresql://cerberus:5432/xptest1
org.postgresql.Driver
csp
csp
0
50
2
15
  



(Note: the string "csp" in the middle is supposed to be between the password tag, but 
JBoss Nukes is eating up the tag, and curiously, only the password tag).

Changed the file $JBOSS_HOME/server/default/conf/standardjbosscmp-jdbc.xml:



  java:/PostgresDS
  PostgreSQL 7.2
... 


Changed the file $JBOSS_HOME/server/default/conf/standardjaws.xml:


   java:/PostgresDS
   PostgreSQL 7.2
   false
 


Add to the file $JBOSS_HOME/server/default/conf/login-config.xml:


   
  
 csp
 csp
 csp
 jboss.jca:service=LocalTxCM,name=PostgresDS
  
   



Now, using the gangster sample provided by JBoss, I change the file
jbosscmp-jdbc.xml to contain:



   
  java:/PostgresDS
  PostgreSQL 7.2
  true
  true
  true
   foreign-key
   
...


(Note: here again, JBoss Nukes is eating up random tag. The string 
"java:/PostgresDS" is in the tag datasource.)

When I deployed the beans in gangster, I get the following error messages:

15:15:14,642 INFO  [EntityContainer] Started 
jboss.j2ee:jndiName=crimeportal/Gangster,service=EJB
15:15:14,754 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error while creating table organization; - 
nested throwable: (org.postgresql.util.PSQLException: ERROR: syntax error at or near 
"desc"
)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:232)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartCommand.java:93)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:484)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy18.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:173)
at $Proxy56.start(Unknown Source)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:70

[JBoss-user] [Performance Tuning] - Re: Monitor EJB's and sizes so I can Tune them or find probl

2004-02-28 Thread [EMAIL PROTECTED]
There's no way to measure memory usage of an object instance in pure Java runtime.


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Using Torque and JBoss

2004-02-28 Thread [EMAIL PROTECTED]
Does Torque generate classes at runtime?


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Test Database

2004-02-28 Thread [EMAIL PROTECTED]
Or provide duplicate deployment descriptors and repackage between the runs with an ant 
script.


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Test Database

2004-02-28 Thread [EMAIL PROTECTED]
Distribute your JBoss installation with two separate datasource, then provide an ant 
script that modifies the deployment descriptors (change datasource in 
jbosscmp-jdbc.xml with XSL for example) between the test suite run and the application 
suite run.


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss JNDI Persistence

2004-02-28 Thread [EMAIL PROTECTED]
There's no persistence in the JBoss naming service implementation. Are you running a 
cluster or a single node JNDI?


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: securing jboss installation

2004-02-28 Thread [EMAIL PROTECTED]
Securing Default JBoss Installation


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Frequently Asked Questions (FAQ)] - Deploying on JBOSS in Linux....

2004-02-28 Thread Ezhil
Hello!!!
 
 I want to know how to deploy EJB in Jboss. I need some links which will give 
deployment detail on Jboss in linux. Please help.


Thanks.

Ezhil.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Calling an ejb of remote server from another ejb

2004-02-28 Thread anamika
hi all,
i got the solution,
You can view it in the site

http://jboss.sourceforge.net/doc-24/ch05s13.html

You have to specify the full jndi name
java:/com/env/ejb/BEjb while lookup

Thank u

- saritha



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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Container Managed Transaction Doesn't Rollback

2004-02-28 Thread jmejia424
I have a SessionBean and a method where I am removing a CMP.  I don't know why it 
doesn't roll back.  I have executed my code and the record is still getting deleted.  
Even when I print ejbContext.getRollbackOnly(); the result is true.  Why won't it 
rollback the delete?

Here is the method:

/**
 * Method used to remove all data associated to an Employee
 * @ejb:interface-method view-type="both"
 * @ejb:transaction type="Required"
 **/
public boolean removePersonnelContainer(PersonnelContainer personnelContainer) 
throws Exception{
// Start the logging time for this method   
long startTime = cat.isInfoEnabled() ? System.currentTimeMillis() : 0;

if (cat.isDebugEnabled())
cat.debug("removePersonnelContainer - Remove the Personnel 
with an ID of " + personnelContainer.getEmployee().getRecordId());

try {
ejbContext.getUserTransaction();
EmployeeData employeeData = personnelContainer.getEmployee();
Employee employeeBean = (Employee) 
employeeHome.findByPrimaryKey(new EmployeePK(employeeData.getRecordId()));
employeeBean.remove();
ejbContext.setRollbackOnly();

throw new Exception("Rolled back transaction");
} catch (Exception e) {
cat.error("removeClient " + 
personnelContainer.getEmployee().getRecordId(), e);
cat.error("Unable to remove the personnel with the given 
personnel Primary Key.");
return false;
} finally {
LoggingUtils.infoElapsedTime((Logger) cat, 
"removePersonnelContainer", startTime);
System.out.println("=>Rollback?  " + 
ejbContext.getRollbackOnly());
}   
}


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: JBoss -> jgroups problem

2004-02-28 Thread bela
Are you multihomed ? Then you need to set the bind_addr to a *valid* NIC. Note that on 
Solaris 8 for example, binding to 127.0.0.1 for multicast doesn't work (this was fixed 
on Solaris 9).

1. Check what address is printed for each member.
2. Verify that that name resolves to the same IP address (check /etc/hosts).

Bela

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key within Composite Primary Key and CMR

2004-02-28 Thread loubyansky
that's correct. Except for exposing CMR setter (?) what do you mean?

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key within Composite Primary Key and CMR

2004-02-28 Thread mikea-xoba
i think i see the point ---

CMP's must be set in the entity bean's ejbCreate method, which returns the primary 
key. and CMR's must be set in the beans ejbPostCreate method, which is called after 
creation. thus, the CMR fields formally can *not* be part of the primary key (correct 
me if i'm wrong).

but what you're saying is that a CMP primary key field and a CMR field as a foreign 
key can both share the same column in a database table. i tried that and it seems to 
work. to make things appear to be in 'normal form', i also hide that 'extra' CMP field 
(the one shared with the CMR field) by not exposing it in any ejb interface; its only 
set in ejbCreate(). to maintain primary key integrity with caching and everything 
else, i guess i should not expose the set...() CMR method in any interface either.

is this correct?

thanks again,
mike

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Auto Increment primary key in postgresql: Functional exampl

2004-02-28 Thread admiyo
The following code works.  It is the result of pulling together all the various 
references on how to get Auto increment and XDoclet working.  Hope it helps.

/*
 * This file is Copyright Adam Young.  
 * Contact [EMAIL PROTECTED]
 */
package com.younglogic.eventful.ejb;
import java.rmi.RemoteException;
import java.sql.Date;
import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;
/**
 * @ejb.bean
 * name="ScheduledEvent"
 * local-jndi-name="Eventful/ScheduledEvent"
 * view-type="local"
 * type="CMP"
 * primkey-field="id"
 * 
 * @ejb.persistence
 * table-name="scheduled_event"
 * @jboss.unknown-pk
 *   class="java.lang.Integer" 
 *   auto-increment="true"
 *   sql-type="serial"
 *   jdbc-type="INTEGER"  
 * @jboss.entity-command 
 * name="postgresql-fetch-seq"
 * 
 * @ejb.value-object
 * match="*"
 * @ejb.pk
 * class="java.lang.Integer"
 * generate="false"
 * @ejb.finder
 * signature="java.util.Collection findByDate(java.sql.Date d)"
 * query="SELECT OBJECT(e) from ScheduledEvent e where e.date = ?1"
 * unchecked="true"
 * @ejb.finder
 * signature="java.util.Collection findDateInRange(java.sql.Date 
fromDate,java.sql.Date toDate)"
 * query="SELECT OBJECT(e) from ScheduledEvent e where e.date = ?1 or ( e.date > 
?1 and e.date < ?2 ) or e.date = ?2 "
 * unchecked="true"
 */
public abstract class ScheduledEventBean implements EntityBean {
private EntityContext entityContext;
/**
 * TODO add a role for this method
 * @ejb.permission unchecked="true"
 * @ejb.create-method
 * @param beanPK
 */
public Integer ejbCreate(ScheduledEventValue value)
throws CreateException {
setDate(value.getDate());
setDescription(value.getDescription());
return null;
}
public void ejbPostCreate(ScheduledEventValue value)
throws CreateException {
}
/**
 * @ejb.persistence
 * sql-type="serial"
 * jdbc-type="INTEGER"
*/
public abstract Integer getId();
/**
 * @ejb.persistence
 * sql-type="serial"
 * jdbc-type="INTEGER"
*/
public abstract void setId(Integer key);
/**
 * @ejb.persistence
 */
public abstract String getDescription();
/**
 * @ejb.persistence
 */
public abstract void setDescription(String description);
/**
 * @ejb.persistence
 */
public abstract Date getDate();
/**
 * @ejb.persistence
 */
public abstract void setDate(Date date);
/** 
 * @ejb.interface-method view-type="local"
 * @ejb.permission unchecked="true"
 */
public abstract ScheduledEventValue getScheduledEventValue();
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbActivate()
 */
public void ejbActivate() throws EJBException, RemoteException {
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbLoad()
 */
public void ejbLoad() throws EJBException, RemoteException {
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbPassivate()
 */
public void ejbPassivate() throws EJBException, RemoteException {
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbRemove()
 */
public void ejbRemove()
throws RemoveException, EJBException, RemoteException {
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbStore()
 */
public void ejbStore() throws EJBException, RemoteException {
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
 */
public void setEntityContext(EntityContext entityContext)
throws EJBException, RemoteException {
this.entityContext = entityContext;
}
/* (non-Javadoc)
 * @see javax.ejb.EntityBean#unsetEntityContext()
 */
public void unsetEntityContext() throws EJBException, RemoteException {
this.entityContext = null;
}
}



Note that I am creating my DB tables myself, so I don't speak to the table generation. 
 Here is the SQL for that:


CREATE TABLE scheduled_event (id serial primary key, description varchar,Date date);


And here is the XDoclet Ant portion of my Ant script:  I replaced angle brackets with 
square

   [target name="ejbdoclet"]
  [taskdef
 name="ejbdoclet"
 classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.path"/]
 [mkdir dir=""/]  
  [ejbdoclet
 destdir=""
 excludedtags="@version,@author"
 ejbspec=""
 mergedir="/xdoclet"
 force=""
  ]
 [fileset dir=""]
[include name="**/*Bean.java"/]
 [/fileset]
 [packageSubstitution packages="session,entity" substituteWith="interfaces"/]
 [valueobject/]
 [remoteinterface/]
 [homeinterface/]
 [localinterface/]
 [localhomeinterface/]
  

[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key within Composite Primary Key and CMR

2004-02-28 Thread loubyansky
"can a CMR field be part of a CMP primary key?"

How do you imagine that?

If you mean whether you can use the same columns for CMP fields and for foreign key 
fields the CMR is mapped to, then the answer is yes, you can.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Get an JBossTransactionRolledbackException ?

2004-02-28 Thread loubyansky
Yes, sorry. So, the problem is reading result set for field user. What is the Java 
type of user, what is the column type and what value does it fail to read?
And what is the JBoss version?

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key within Composite Primary Key and CMR

2004-02-28 Thread mikea-xoba
if i understand your discussion, i believe i may be having a similar problem which i'm 
trying to tackle at the moment, which is basically the question:

"can a CMR field be part of a CMP primary key?"

and if so, how does one do it? i'm also wondering if xdoclet would do it properly, if 
it's possible at all. 


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Get an JBossTransactionRolledbackException ?

2004-02-28 Thread aslani
no loubyansky, am accessing them through my session beans...

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] UIL v OIL jboss 3.0.4

2004-02-28 Thread Eric J Kaplan








Question

 

Can someone tell me whether or not I should switch from OIL
to UIL in version 3.0.4? We are suspicious that we are getting client
disconnects because we are using OIL (message on app server) but aren’t
sure. Upgrading right now is NOT an option. UIL2 isn’t available on
3.0.4.

 

We don’t have extremely high jms update rates (a few a
second would be high). Should w, as Scott said a while back
wrt UIL, “not go there?”

 

It’s fairly urgent. We need to know by Monday.

 

Regards

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble
  Ave.

Morristown, NJ 07960

 








[JBoss-user] [Security & JAAS/JBoss] - Re: Problems with FORM Authentication

2004-02-28 Thread Martin0
What are you trying to achieve here - not the work arounds etc, but your initial 
objective?

I have form based auth working with DatabaseLoginServerModule, mainly thanks to the 
paper I mentioned about, that Scott wrote.

Martin


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Problems with FORM Authentication

2004-02-28 Thread Martin0
"about" should read "above"

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR with foreign key as part of primary key : OK with 3.

2004-02-28 Thread loubyansky
You will need to check it out from the CVS. Instructions can be found on 
sf.net/projects/jboss
If can't do it, please, provide me with a testcase. Thanks.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - multiple instances of jboss in the same machine

2004-02-28 Thread JbossUserR
I was able to start 2 instances of Jboss in the same machine with different IP 
addresses using "-h" switch to "run.bat". I got "receive timed out" from the 
application, so I added the properties to JNDI.properties to block the socket timeout 
under the server subdirectories of each instance. Now I am getting the error of 
"Classloader not found" for one of classes defined in jnpserver.jar even though I can 
find this jar file under the \lib of each copy.  Has anyone come across the same 
problem? any input is appreciated!

Thanks. 

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Debugging output

2004-02-28 Thread JbossUserR
Here is some sample Debug output of server.log file,

2004-02-25 13:44:54,828 DEBUG [org.jboss.logging.Log4JService]
2004-02-25 13:44:54,828 DEBUG [org.jboss.logging.Log4JService]
:
:
2004-02-25 13:44:54,843 DEBUG [org.jboss.web.WebService]
:
:
2004-02-25 13:44:55,046 DEBUG [org.jboss.logging.Log4JService]
:

what do the numbers in bold mean? do they have anything to do with the calling scopes 
or the timestamps?

Thanks. 

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Get an JBossTransactionRolledbackException ?

2004-02-28 Thread loubyansky
are you accessing local interfaces remotely? you can't access CMR fields remotely.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: CASCADE DELETE

2004-02-28 Thread loubyansky
JBossCMP handles cascade delete itself (w/o cascade delete settings in the db). How do 
you configure it that is does not work?

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Calling EJBs accross EARs with Loader Repositories

2004-02-28 Thread erikreut
Hiya

Ran into a little snag I can't get out of...

I'm trying to call EJB1 that's in EAR1 from EJB2 in EAR2. EAR1 and EAR2 both have 
their own Loader Repositories configured.

Because of the separate repositories, the classes from EJB1 are not directly visible 
to EJB2, so I created an "EJB1 client jar" and stuck it in EAR2 and referenced it in 
EJB2's manifest Class-Path.

So far so good...

Or not... I can't get EAR2's Loader Repository to pick up the "EJB1 client jar"!! I 
have some other jars in EAR2 that are referenced in EJB2's manifest, they get picked 
up nicely.

This is on JBoss 3.2.3...

Help?


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Does optimistic locking work with Blobs?

2004-02-28 Thread loubyansky
It works for me in 3.2.4RC1. I think, it should also work in 3.2.3.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Get an JBossTransactionRolledbackException ?

2004-02-28 Thread aslani
After putting relations to my CMP entities I get this exception when I try to run my 
client. Can someone plz support me on this?


org.jboss.tm.JBossTransactionRolledbackException: Internal error getting results for 
field member user; CausedByException is:
  | Unable to load to deserialize result: java.io.StreamCorruptedException: 
invalid stream header; CausedByException is:
  | Internal error getting results for field member user; CausedByException is:
  | Unable to load to deserialize result: java.io.StreamCorruptedException: 
invalid stream header; nested exception is: 
  | javax.ejb.EJBException: Internal error getting results for field member 
user; CausedByException is:
  | Unable to load to deserialize result: java.io.StreamCorruptedException: 
invalid stream header; - nested throwable: (javax.ejb.EJBException: Internal error 
getting results for field member user; CausedByException is:
  | Unable to load to deserialize result: java.io.StreamCorruptedException: 
invalid stream header)
  | at 
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:262)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
  | at org.jboss.ejb.Container.invoke(Container.java:700)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
  | at sun.rmi.transport.Transport$1.run(Transport.java:148)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
  | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
  | at java.lang.Thread.run(Thread.java:534)
  | Caused by: javax.ejb.EJBException: Internal error getting results for field member 
user; CausedByException is:
  | Unable to load to deserialize result: java.io.StreamCorruptedException: 
invalid stream header
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:434)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:373)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:188)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:72)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:612)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:594)
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:381)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:352)
  | at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:239)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
  | at 
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114)
  | at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
  | at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
  | at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWith

[JBoss-user] [EJB/JBoss] - jboss-JNI memory leaks

2004-02-28 Thread johan31be
Hello,

We use a jni library to use some program logic.
The jni lib have several functions that send several data to java and vice versa.

The strange thing is we have a memory leakn its seems that no data that is used in the 
lib is freeed. For every new in the c-code there is a delete.

We have tested or java webserver with jprofile and everthing is cleanup nice. We have 
tested the library on memory leaks also here we didn't found any one.

So it can only be in the JNI part in the java_2_cpp and cpp_2_java. Has anyone 
experience to handle  such problems?


I'm using linux redhat 7.3 with jboss3.2.3

All tips are welcome


thx

johan

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - securing jboss installation

2004-02-28 Thread dbronk
This may be a stupid question...

I have installed 3.2.3.  Now I want to make sure to protect it.  For example, with 
WebLogic, I don't want everyone getting to the console where they can run wild.  Are 
there any such things that I need to lock down with JBoss?  If so, what and how?

Thanks,
Dale

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Stale Servlets Block Deployment

2004-02-28 Thread bwinspur
Hi,

I've been having stale servlet problems, i.e. the war I deployed a couple 
of days ago executes and new deploys are ignored. Reboot JBoss did not
fix it, re-installing JBoss did.

The war was unpacked into jboss, .../tmp/deploy/ but its classes were not loaded.

The startup console log has the following warning lines.

09:28:26,843 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
09:28:28,406 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
09:28:30,515 WARN  [Heartbeat] Heartbeat disabled
09:28:34,609 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
09:28:35,703 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
09:28:36,625 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]
09:28:38,234 WARN  [EmbeddedTomcatService] Unable to invoke setDelegate on class 
loader:[EMAIL PROTECTED]

The warnings are associated with Tomcat, where my problems show up. 

1. What do these lines mean, and how do I get them to go away?
 
2. Although re-install solved the above major problem of stale code
blocking out new code, I still have to restart jboss for a deploy to 
take effect. Is this normal, or is there a way to hot-deploy, 
without re-booting JBoss ?

Bill.

===
FYI, I deploy by copying a war file into default/deploy/,
and my environment is as follows:

10:03:02,062 INFO  [ServerInfo] Java version: 1.4.2_02,Sun Microsystems Inc.
10:03:02,062 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_02-b03,Sun 
Microsystems Inc.
10:03:02,062 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
===

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: poll module doesn't display the title

2004-02-28 Thread jae77
if you set a title for the poll when you created it, then it is potentially a bug. you 
can file a bug report for it on sourceforge, and/or attempt to fix it yourself and 
submit a patch. 

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Datasource Configuration] - Exception accessing DataSource

2004-02-28 Thread [EMAIL PROTECTED]
I am facing an error
I am trying to configure Microsoft Access as DataSource
Therefore I copied msaccess-ds.xml to E:\jboss-3.2.3\server\default\deploy with some 
changes

I have made a DSN named CSO which points to cso.mdb in my Windows 2000 System

The Whole code is copied into 

I am new to JBoss 

Sp Please convey my shortcomings or if u need more information please convey it it me

msaccess-ds.xml

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | MSAccessDS
  | 
  | jdbc:odbc:CSO
  | sun.jdbc.odbc.JdbcOdbcDriver
  | x
  | y
  |   
  | 
  | 
  | 

GreetingBean.java

  | package com.ejb.greeting;
  | 
  | import java.rmi.RemoteException; 
  | import javax.ejb.SessionBean;
  | import javax.ejb.SessionContext;
  | import javax.sql.*;
  | import java.sql.*;
  | import javax.ejb.*;
  | import javax.naming.*;
  | 
  | public class GreetingBean implements SessionBean {
  | 
  | private static Context getInitialContext() throws NamingException
  | {
  | 
  | java.util.Hashtable JNDIParm = new java.util.Hashtable();
  | JNDIParm.put(Context.PROVIDER_URL, "localhost");
  | JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | JNDIParm.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | javax.naming.InitialContext ctx = new InitialContext(JNDIParm);
  | //javax.naming.InitialContext ctx = new InitialContext();
  | return ctx;
  | 
  |  }
  | 
  |  
  |public String hello(String name) {
  | 
  |   String helloName = "Hello " + name;
  |   DataSource ds=null;
  |   Connection conn=null;
  |   try{
  |   Context ic=getInitialContext();
  |   ds=(DataSource)ic.lookup("MSAccessDS");
  |   System.out.println(ds.toString());
  |   }
  |   catch(Exception ex)
  |   {
  | ex.printStackTrace();
  | return helloName;
  |   }
  |   return helloName;
  |}
  | 
  | 
  |public GreetingBean() {}
  |public void ejbCreate() {}
  |public void ejbRemove() {}
  |public void ejbActivate() {}
  |public void ejbPassivate() {}
  |public void setSessionContext(SessionContext sc) {}
  | 
  | } 
  | 

ejb-jar.xml

  | 
  | http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
  | 
  |No Description
  |Greeting EJB
  |
  |   
  |  Greeting
  |  com.ejb.greeting.GreetingHome
  |  com.ejb.greeting.Greeting
  |  com.ejb.greeting.GreetingBean
  |  Stateless
  |  Bean
  |  
  |  
  | Default Database Connection
  | jdbc/mdbTEST
  | javax.sql.DataSource
  | Container
  |  
  |  
  | Default Database Connection
  | MSAccessDS
  | javax.sql.DataSource
  | Container
  |  
  | 
  |   
  | 
  | 
  | 

jboss.xml

  | 
  | http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>
  | 
  | 
  | 
  |
  | 
  |   
  |  Greeting
  |  ejb/greeting/MyGreeting
  |  
  |  
  | jdbc/mdbTEST
  | java:/mdbTEST
  |  
  |   
  | 
  |
  | 
  | 
  | 
  | 


Greeting1.java

  | package GreetingClient;
  | import java.io.*;
  | //import javax.servlet.*;
  | //import javax.servlet.http.*;
  | import com.ejb.greeting.Greeting;
  | import com.ejb.greeting.GreetingHome;
  | import javax.ejb.*;
  | import javax.naming.*;
  | import javax.rmi.PortableRemoteObject;
  | import java.rmi.RemoteException;
  | import java.lang.*;
  | import java.util.*;
  | import javax.sql.*;
  | import java.sql.*;
  | 
  | class Greeting1
  | {
  | private Greeting greeting;
  |   private DataSource ds=null;
  |   private Connection conn=null;
  | 
  | public static Context getInitialContext() throws NamingException
  | {
  | 
  | java.util.Hashtable JNDIParm = new java.util.Hashtable();
  | JNDIParm.put(Context.PROVIDER_URL, "localhost");
  | JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | JNDIParm.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | javax.naming.InitialContext ctx = new InitialContext(JNDIParm);
  | //javax.naming.InitialContext ctx = new InitialContext();
  | return ctx;
  | 
  |  }
  | 
  | public Greeting1()
  | {
  | try
  | {
  | InitialContext ic=new InitialContext();
  | //InitialContext ic=(InitialContext)getInit

[JBoss-user] connection to client id failed

2004-02-28 Thread Eric J Kaplan








Can someone tell me how the server determines that a client
connection has failed?

Can this happen if the client is bogged down heavily?

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble
  Ave.

Morristown, NJ 07960

 








[JBoss-user] [JBoss Getting Started Documentation] - Re: JBossJ2EE.pdf is aparently corrupted

2004-02-28 Thread [EMAIL PROTECTED]
"santoshsahu" wrote : tried to open it with AR 4.05
  | 

You need to upgrade your reader,


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: JBoss -> jgroups problem

2004-02-28 Thread stefano_fornari
HI Bela,
I removed bind_addr=127.0.0.1, but still the same behavior. Can I try anything else?

Stefano

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss JNDI Persistence

2004-02-28 Thread benwalstrum
p.s. - before anyone asks, I have tried this on both JBoss 3.2.1 and 3.2.3.


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss JNDI Persistence

2004-02-28 Thread benwalstrum
We are trying to put some values into the JBoss global JNDI, which will make the 
values accessible across several apps that do not share codebases.  Basically, we are 
storing the component version numbers as a String in the global JNDI.  The idea is 
that we could do something like this:


  | Context ctx = new InitialContext();
  | String version = (String) ctx.lookup("MyCompany/Application/Version");
  | 

I have been able to successfully do a bind and lookup on the value.  The problem is 
that it seems that JBoss is somehow caching values across restarts (or I am just 
totally confused).  I am working with different versions of our components (I have 
verified that the correct versions are out there) and at least half the time it shows 
the wrong versions, which I can only attribute to some sort of persistence/caching 
issue.  The weirdest part of it all is that I have verified that the value I am 
putting in is correct (i.e. I have debugged using JBoss IDE/Eclipse and have inspected 
the value of the version and it is correct when I put it in).

If anyone has any ideas for this problem I would greatly appreciate any input.

Cheers,

Ben


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: JBoss -> jgroups problem

2004-02-28 Thread bela
Lose the bind_addr=127.0.0.1.

I have some code that shows how to access the TreeCache MBean from servlets, I will 
post a document soon.

Bela

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: port 1099 problem !

2004-02-28 Thread glyn_walters
I had this problem today and thought I'd share my findings in case it helps anyone.

There are a few service on W2K server that get a dynamically allocated port. If JBoss 
isn't already running then these will get allocated. I have had it most frequently 
with 1099 and 1098. This tool is an easy way of finding which process has taken the 
port JBoss needs:

http://www.sysinternals.com/ntw2k/source/tcpview.shtml.

For me this has mostly been the File Replication Service or IIS Admin Service Helper. 
You can just stop those ervices whilst you startup JBoss and re-start them 
subsequently.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - maximum threads -> howto display a errorpage

2004-02-28 Thread johan31be
Hello, 

Is there a possibilty to throw back a html error page or other page if we have reached 
the max thread value defined in the xml of tomcat?

Johan

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - maximum threads -> howto display a errorpage

2004-02-28 Thread johan31be
Hello, 

Is there a possibilty to throw back a html error page or other page if we have reached 
the max thread value defined in the xml of tomcat?

Johan

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - JBoss -> jgroups problem

2004-02-28 Thread stefano_fornari
Hi All,
I really hope somebody can give me an hint on this matter, because it is driving me 
crazy :-(

I have to implement a simple distributed cache between multiple JBoss  istances not 
necessarily clustered.
I though to use JGroups 2.2, which I understand JBoss uses already for clustering. 
Therefore, I created a DistributedHashtable in the init() of my servlet as follows:

JChannel c = new  JChannel(config.getInitParameter(PARAM_CHANNEL_PROPERTIES));

c.connect("thegroup");
cache = new DistributedHashtable(c, DEFAULT_TIMEOUT);

The channel is configured in this way:
"UDP(mcast_addr=228.1.2.3;mcast_port=45566;;ip_ttl=64;bind_addr=127.0.0.1;" +
"ip_mcast=true;mcast_send_buf_size=15;mcast_recv_buf_size=8):" 
+
"PING(timeout=2000;num_initial_members=3):" +
"MERGE2(min_interval=5000;max_interval=1):" +
"FD_SOCK:" +
"VERIFY_SUSPECT(timeout=1500):" +
"pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):" +
"UNICAST(timeout=5000):" +
"pbcast.STABLE(desired_avg_gossip=2):" +
"FRAG(frag_size=4096;down_thread=false;up_thread=false):" +
"pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;" +
"shun=false;print_local_addr=true):" +
"pbcast.STATE_TRANSFER";

Then when I run the servlet I put something in the hashtable. It alone works well.

Then I would like to test it with aother VM. I developed a simple program  that 
creates its own DistributedHastable on a chennel connected to the same group as the 
other one (see the code at the bottom).

In short, I have the following strange situation:

1) both JVMs see each other (I display the channel views)
2) changes made with the second JVMs are propagated to the JBoss DistributedHahtable
3) changes made in the JBoss VM are NOT propagated to the second VM

I can't really understand why, as I though multicast communications have no a specific 
direction

Any help is very appreciated.

Stefano
-

2nd VM code:
=

String 
props="UDP(mcast_addr=228.1.2.3;mcast_port=45566;;ip_ttl=64;bind_addr=127.0.0.1;" +
"ip_mcast=true;mcast_send_buf_size=15;mcast_recv_buf_size=8):" 
+
"PING(timeout=2000;num_initial_members=3):" +
"MERGE2(min_interval=5000;max_interval=1):" +
"FD_SOCK:" +
"VERIFY_SUSPECT(timeout=1500):" +
"pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):" +
"UNICAST(timeout=5000):" +
"pbcast.STABLE(desired_avg_gossip=2):" +
"FRAG(frag_size=4096;down_thread=false;up_thread=false):" +
"pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;" +
"shun=false;print_local_addr=true):" +
"pbcast.STATE_TRANSFER";
JChannel c = new JChannel(props);

c.connect("thegroup");
DistributedHashtable h = new DistributedHashtable(c, -1);


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Connection factories on 3.0.4

2004-02-28 Thread Eric J Kaplan
Why specifically? More robust I assume?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sacha
Labourey
Sent: Friday, February 27, 2004 3:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Connection factories on 3.0.4

You should use UIL2.

Cheers,


sacha 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Friday, February 27, 2004 8:56 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Connection factories on 3.0.4
> 
> All
> 
> Can someone explain the pros and cons of the various 
> connection factories on
> jboss 3.0.4. To be specific, is one factory optimized for 
> volume but less
> stable (disconnects more easily), and another not optimized 
> for volume but
> extremely stable. We currently use the "ConnectionFactory", 
> which is OIL, and
> are seeing a fair amount of disconnect messages on the 
> server. Is there one
> that is "more stable" or, should I say, less prone to interruption?
> 
> Regards
> 
> Eric
> 
> 
> 
> ---
> IMP Webmail brought to you by Galaxy Networks, Inc.
> http://www.galaxy.net
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Multiple instances of servlet

2004-02-28 Thread shaman
Hi all

A use JBoss 3.2.3(include Tomcat 4.1.29).
By default Tomcat web container uses one instance of servlet per many requests. I 
can't use SingleThreadModel for my servlets because It does not approach for my 
problem.

In Servlet Specification Version 2.4  I have found:
SRV.2.2
...
For a servlet not hosted in a distributed environment (the default), the servlet 
container must use only one instance per servlet declaration.
...
In the case where a servlet was deployed as part of an application marked in the 
deployment descriptor as distributable, a container may have only one instance per 
servlet declaration per Java Virtual Machine (JVM TM). (MY CASE)
...

Question:
Whether is it possible to force JBoss(Tomcat web container) to use new instance of 
servlet for each http request. (for each new http request create new servlet instance)?


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - problem while starting jboss server when a JMS application i

2004-02-28 Thread chetana_vir
Hi,

Can any body solve the problem i couldn't get it. I have no problem when testing in my 
local system but when i placed the application in the remote server it is giving the 
error. I have used the MBeans to continoulsy monitor the queue. I am using jboss 
server and i am getting the error while starting the server itself. 


09:04:56,203 WARN  [ServiceController] Problem starting service 
jboss.mq:service=PersistenceManager
org.jboss.mq.SpyJMSException: Could not rebuild the queue from the queue's tranaction 
log.; - nested throwable: (java.io.EOFException)
at org.jboss.mq.pm.file.MessageLog.throwJMSException(MessageLog.java:277)
at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:114)
at 
org.jboss.mq.pm.file.PersistenceManager.restoreTransactions(PersistenceManager.java:264)
at 
org.jboss.mq.pm.file.PersistenceManager.startService(PersistenceManager.java:187)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
at $Proxy4.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:413)
at org.jboss.system.ServiceController.start(ServiceController.java:433)
at org.jboss.system.ServiceController.start(ServiceController.java:433)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.start(Unknown Source)


could any body help me to resolve this issue

chetana


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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: How is runtime classpath set?

2004-02-28 Thread lpmon
classpath (one word) that is.  Don't want anyone to miss it on a search.

In most forums you can edit your own post.  I do not see a way to do that here.  I 
could have just fixed this instead of replying.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - I found it !!

2004-02-28 Thread Robert.Vogel
Founded it in Installation Forum:

Checked out: JBOSS_HOME/server//deploy/jbossweb-tomcat.sar/jboss-service.xml

I changed Port 8080 to 8085 and it worked for me.

Robert 

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - lomboz & xdoclet & jboss

2004-02-28 Thread ellandill
I've did some exercises from tutorial about lomboz & jboss
got error
Env: eclipse 3.0M7+lobmoz+xdoclet tags

Error in jboss.xml for Bean StoreAccess: ejb-ref ejb/CustomerLocal found in jboss.xml 
but not in ejb-jar.xml

ejb-jar.xml: 

  
 
 StoreAccess
 com.store.session.StoreAccessHome
 com.store.session.StoreAccess
 com.store.session.StoreAccessLocalHome
 com.store.session.StoreAccessLocal
 com.store.session.StoreAccessSession
 Stateless
 Container

 
CustomerLocal
Entity
com.store.bmp.CustomerLocalHome
com.store.bmp.CustomerLocal
Customer
 

 
jdbc/DefaultDS
javax.sql.DataSource
Container
 
  

  
  
 
 Customer
 com.store.bmp.CustomerHome
 com.store.bmp.Customer
 com.store.bmp.CustomerLocalHome
 com.store.bmp.CustomerLocal

 com.store.bmp.CustomerBMP
 Bean
 com.store.bmp.CustomerPK
 False

 
jdbc/DefaultDS
javax.sql.DataSource
Container
 

  


jboss.xml
   

  
 Customer
 CustomerBean
 CustomerLocal
 
jdbc/DefaultDS
java:/DefaultDS
 

  

  
 StoreAccess
 StoreAccessBean
 StoreAccessLocal
 
ejb/CustomerLocal
CustomerLocal
 
 
jdbc/DefaultDS
java:/DefaultDS
 

  

   



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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Datasource Configuration] - Oracle91 xaDatasource driver for 2pc

2004-02-28 Thread brickpaul
I'm using Jboss3.2.3, Oracle9i and JbuilderX Enterprise

Hello all. Does anyone know what driver I should use for 2pc?
I tried the config below and it doesn't work. I get no errors but when the insert is 
part of a UserTransaction it just doesn't commit with txn.commit() but I can do a 
select statement and I get all the data back.

oracle.jdbc.xa.client.OracleXADataSource
jdbc:oracle:thin:@localhost:1521:estate1



do I have to implicitly enlist each resource into the transaction or does this happen 
automatically when the datasource is bound to jboss?

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - how can i get the dir where the war is deployed in java ?

2004-02-28 Thread johan31be
Hello,

Ho can get the directory where the war files is deployed?
Is there a java call for that? I needed because i must do some changed in that 
directory ath runtime

thx 

Johan

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: JBoss 3.2.3 is slow!!

2004-02-28 Thread remm
You need to post specific data on what you are testing.
For JSPs, you need to either precompile them (and map them as servlets), or disable de 
development mode of Jasper. This makes a big difference.

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Installation of 2 JBoss Server

2004-02-28 Thread Robert.Vogel
I installed 2 JBoss Server, one for running the Nuke Portal, one for development with 
eclipse. 

How can I manage the ports and access the different Server via localhost.

Thanks in advance
Robert

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

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


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JCentric?

2004-02-28 Thread john
Hi

Is anyone else on the list using JCentric hosting? Is there a forum for
JCentric users that anyone knows about? If not, should we start one?

Cheers
J


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user