[JBoss-user] [Installation Configuration] - how to add libraries

2004-06-19 Thread pavan
Hi ,
Iam using jboss3.2.4 andwhat changes  i ve to  make to add new librarie s(Jar files) 
existing in my environment so that they are available in my project . Iam using 
eclipse3.0 and can any body please help me to make the necessary changes  in the 
server file .iam usin LOMBOZ as plug in 

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Problem deployment .. ClassCastException

2004-06-19 Thread samfra
It helped me partially...

In fact, you can not do interfaces everytime for all classes...
I took the example of Team and Player.. but in fact, I need to deploy Hibernate and 
all my hibernate objects... and then I have to deploy my mbeans that accesses to 
hib-objects.

But I've found the following solution : 

1- myutils.jar

2- hibernat2.jar 

3-Hibernate.sar 
 |-- hibernat2 needed jars
 |-- jboss-service.xml with classpath to HibernateObjects.jar

4- HibernateObjects.jar

5- MyMbean.sar
 |- all my classes
 |- jboss-service.xml with classpath to HibernateObjects.jar + hibernat2.jar

6- AnOtherMBean.sar
 |- it needs to access to classes from MyMbean.sar .. I think I will have to make 
myMbean.JAR and store it externally to MyMbean.sar

I'm doing test, if I redeploy a jar, it should be ok for .sar that uses it !




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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Going crazy with the JBossRolledBackException ... NEED HELP

2004-06-19 Thread layman
Hello folks,
  I had always being using Tomcat, and likes it quite much ... 
now switching to JBOSS 3.2 simply becuz my boss loves it (and it's name) :(  and 
here the nightmare begins 

   We use jboss to provide both EJB and Web service with Axis  MYSQL 4.2.
The Client program might be perl, C++, C#, Java or any other.
All SELECT queries is executed perfectly, but all update/insert always  having this 
or that problem from time to time, Esp. when inserting big BLOB data.

  JBossRolledBackException  occurrs most frequently, 
  I'v tried different versions of MysqlJ Connector 3.0  3.1  2.0, 
Mysql server from 3.2 to 4.0, Jboss 3.2  4.0.  BUT JUST NO USE. 
   but /var/log/mysqld.log shows everything's fine.
and here's the stack trace:   THANKS IN ADVANCE.

15:28:46,371 ERROR [LogInterceptor] TransactionRolledbackException in method: public 
abstract void 
com.ipanel.dtvserver.appserver.ejb.StockDataFacade.createStockApp(int,java.lang.String,byte[])
 throws java.rmi.RemoteException, causedBy:
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=localhost.localdomain/13, 
BranchQual=, localId=13] status=STATUS_NO_TRANSACTION; - nested throwable: 
(javax.ejb.EJBException: null; CausedByException is:
null)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:457)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:325)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:603)
at org.jboss.ejb.Container.invoke(Container.java:810)
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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:232)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:643)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
at 
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:105)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy116.createStockApp(Unknown Source)
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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:376)
at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:278)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:290)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:623)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 

[JBoss-user] [Security JAAS/JBoss] - Securing EJBs for access by remote clients

2004-06-19 Thread bandit
Hello,

I'm quite new to EJBs, so I decided to use the free JBoss as my companion on 
understanding the EJB-Idea. I use Eclipse with Lomboz-Plugin, so that the first EJBs 
can be set up quite quickly.

Trying a first Hello World Bean (stateless session), I wondered if the connection 
would be encrypted or plain text? If it were plain text, how could I make use of SSL 
for example?

And another question: How do I set up password protection for my EJBs that will be 
accessed from remote client applications?

And one more:
Is JBoss capable of blocking / allowing defined IPs or subnets?

As you see: Security is of big importance! ;-)

(Hope, you understand me. I know my English is not that good; please, excuse me)


Thanks in advance,

Carsten


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Q: why EJBQLs run cyclic slowly

2004-06-19 Thread loubyansky
Basing on the given information I could suggest to upgrade to 3.2.4 and tune caching 
and preloading (read-ahead).

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: ejb-select traversing CMR collections

2004-06-19 Thread loubyansky
select c.id from A a where in(a.bs) b, in(b.cs) c where a.id = ?1

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-19 Thread loubyansky

  |  cmr-field
  | cmr-field-nameuserid/cmr-field-name
  | cmr-field-typejava.lang.String/cmr-field-type
  | /cmr-field 
  | 

This is not going to work. A field can't be both CMP and CMR at the same time. And 
from ejb-jar_2_0.dtd


  | !--
  | The cmr-field-type element specifies the class of a
  | collection-valued logical relationship field in the entity bean
  | class. The value of the cmr-field-type element must be either:
  | java.util.Collection or java.util.Set.
  | 
  | Used in: cmr-field
  | --
  | !ELEMENT cmr-field-type (#PCDATA)
  | 

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: weird problem

2004-06-19 Thread loubyansky
Catch the SQL query executed and try to execute it in some SQL client to see the 
result.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4

2004-06-19 Thread loubyansky
Seems like you are running into undetectable deadlock with a scenario like:
in, say, a session facade method with Required tx attr:

  ALocal a = AUtil.getLocalHome().findByPrimaryKey(new APK(new Long(1), avoka));
  a.doRequired(); // tx attribute Required
  a.doNotSupported(); // tx attribute NotSupported

The doNotSupported() invocation will lead to a deadlock. Because it will find that the 
instance 'a' is locked. Same would be true for a.doRequiresNew().
Try Required for all method invocations. Plus, NotSupported is the worst option for 
entity beans.


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: CMR / EJB-QL problem?

2004-06-19 Thread loubyansky
What is the generated SQL? Isn't it using subquery? What SQL is generated qith SQL92 
compiler?

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Prepared Statement Cache + External Application

2004-06-19 Thread svenbeer
Hi!

I've run into a problem after activating the prepared statement cache for my 
datasource (to improve performance).

The database entries are modified from an external paplication, too. So I am using 
instance per transaction with commit option B.

With prepared statement caching enabled I don't get currently modified data displayed 
anymore until my connection drops and a new one gets created (this is, because the 
prepared statements are bound to the connection I think)

So is this to enable the prepared statement cache for a datasource which is modified 
by an external application?


Thanks for any help,
Sven 

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: CMR / EJB-QL problem?

2004-06-19 Thread MartinGx
I think its not using subquery because mysql 3.x doesn't support it.

Anyway, here is an example of the same problem (slightly more complicated example, but 
all I have at hand right now)

For this query, using using jboss with mysql 3.23.x:

DYNAMIC-QL: SELECT OBJECT(hierarchy) FROM Hierarchy hierarchy WHERE (
(hierarchy.partyGroup IS NULL) OR (NOT (hierarchy.mainInternalHierarchy IS
NULL)) ) ORDER BY hierarchy.code


JBoss 3.2.1 did this (working):

SELECT DISTINCT t0_hierarchy.id, t0_hierarchy.CODE
FROM cmp_hierarchy t0_hierarchy LEFT JOIN MainInternalHierarchy_Hierarchys 
t2_hierarchy_mainInternalHierarc ON 
t0_hierarchy.id=t2_hierarchy_mainInternalHierarc.HIERARCHY_FK LEFT JOIN 
PartyGroup_Hierarchys t1_hierarchy_partyGroup_RELATION ON 
t0_hierarchy.id=t1_hierarchy_partyGroup_RELATION.HIERARCHY_FK

WHERE ((t1_hierarchy_partyGroup_RELATION.HIERARCHY_FK IS NULL) OR (NOT 
(t2_hierarchy_mainInternalHierarc.HIERARCHY_FK IS NULL))) ORDER BY t0_hierarchy.CODE 
ASC
;


JBoss 3.2.4RC2 does this (doesn't fall over, but appears not correct):

SELECT DISTINCT t0_hierarchy.id, t0_hierarchy.CODE
FROM cmp_hierarchy t0_hierarchy, cmp_main_internal_hierarchy 
t3_hierarchy_mainInternalHierarc, maininternalhierarchy_hierarchys 
t2_hierarchy_mainInternalHierarc, cmp_party_group t4_hierarchy_partyGroup, 
partygroup_hierarchys t1_hierarchy_partyGroup_RELATION

WHERE (((t1_hierarchy_partyGroup_RELATION.HIERARCHY_FK IS NULL) OR ( NOT 
(t2_hierarchy_mainInternalHierarc.HIERARCHY_FK IS
NULL))) AND t0_hierarchy.id=t2_hierarchy_mainInternalHierarc.HIERARCHY_FK AND 
t3_hierarchy_mainInternalHierarc.id=t2_hierarchy_mainInternalHierarc.MAIN_INTERNAL_HIERARCHY_FK
 AND t0_hierarchy.id=t1_hierarchy_partyGroup_RELATION.HIERARCHY_FK AND 
t4_hierarchy_partyGroup.id=t1_hierarchy_partyGroup_RELATION.PARTY_GROUP_FK) ORDER BY 
t0_hierarchy.CODE ASC
;

I did also test with 3.2.4 final and it still didn't work.  I can't be 100% sure its 
the same generated sql as for 3.2.4rc2 above because I don't have the output here 
right now.

I also don't have access to the output of the sql92 compiler.  I will post it when I 
do.


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: dynamically create XMBeans?

2004-06-19 Thread chrisdutz
I think I found a solution to my problem ... after Googling quite a while.

Instead of using one of the more komplex registerMBean methods I can create an 
instance of XMBean with the deployment descriptor as a parameter in it's constructor 
and simply register it as regular MBean ... sorry for having bothered you.

Chris

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Problem configuring JBoss with PostgreSQL

2004-06-19 Thread pnevado
Try to change the reference to mysqlDS to your datasource in the 
hsqldb-jdbc-state-service.xml:

server
  | 
  |   !--  --
  |   !-- JBossMQ State Management using HSQLDB--
  |   !-- See docs/examples/jms for other configurations   --
  |   !--  --
  |
  |   !-- A Statemanager that stores state in the database --
  |   mbean code=org.jboss.mq.sm.jdbc.JDBCStateManager
  |   name=jboss.mq:service=StateManager
  | depends 
optional-attribute-name=ConnectionManagerjboss.jca:service=LocalTxCM,name=mysqlDS/depends
  | 
  | 

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Security Exception while trying to access secured EJB

2004-06-19 Thread kuchhal
Hi!, I am trying a sample EJB application to RD some security related issues. I want 
to access EJB through a web application as well as a Swing client. I have set 
approriate method-permission in EJB deployment descriptor. I am using 
users.properties/roles.properties file for authentication mechanism.
- On the web application side I am using BASIC authentication and the servlet is able 
to access the EJB OK, as long as I am using a login/password that has access to the 
EJB.
- Now I am trying to access the EJB using a stand alone Java class. These are the 
things I have tried till now:
=Created a InitialContext with appropriate principal, credentials and tried getting a 
reference to EJB home interface. That resulted in security exception.
=Logged into a LoginContext by using appropriate JBossSX classes and then tried 
getting a EJB home interface. Again security exception.
Now I am not sure what to do.  I read at some places about client side container but 
not sure what that is. Can anyone give some ideas to try? Is there any other way I can 
make a swing application and a web applicatin authenticate to EJB container?
Also can anyone point me to any documentation that gives some idea about how the 
security credentials gets propagated from web application to EJB container?


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: ClassDefNotFound when deploying MDB in EAR

2004-06-19 Thread StephaneNicoll
Have you tried to put in the server's lib directory?

$JBOSS_HOME/server/default/lib if you're using the default server.

You can also declare your lib with a java module inside application.xml


  jaxen-full.jar


Regards,

Stephane

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Dynamically starting and stoping MDB from consuming mess

2004-06-19 Thread StephaneNicoll
Yup, JMX.

Each MDB is exposed as an MBean and have a startDelivery() and stopDelivery() method. 
I will add a sample code later on Wiki.

Regards,

Stephane

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: user: NULL is not authenticated

2004-06-19 Thread StephaneNicoll
Do you need custom security config? If no declare your queue as


  | mbean code=org.jboss.mq.server.jmx.Queue
  |  name=jboss.mq.destination:service=Queue,name=myEvents
  | depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
  |   /mbean  
  | 

Regards,

Stephane

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Null ConnectionFactory

2004-06-19 Thread StephaneNicoll
If you're running your sample code inside JBoss you only need to create a default 
InitialContext object.


  | Context context = new InitialContext(); 
  | 

If you're running for a separate process, you need to set the property that are inside 
$JBOSS_HOME/server/default/conf/jndi.properties and only those

Regards,

Stephane

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Going crazy with the JBossRolledBackException ... NEED H

2004-06-19 Thread spiritualmechanic
Just initally looking at it, it doesn't look like you're getting a transaction. What 
JTA were you using with Tomcat? We're still on Jetty, so I'm not up on the latest 
Tomcat news.


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Security Exception while trying to access secured EJB

2004-06-19 Thread [EMAIL PROTECTED]
Read the JAAS Howto in this forum.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Security Exception while trying to access secured EJB

2004-06-19 Thread kuchhal
I read the article and based on it the following standalone class should be able to 
access the remote EJB because the logincontext.login() call succeeds. Is there 
anything wrong with this class?

===
package tutorial.client;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.Set;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.security.auth.callback.*;
import javax.security.auth.login.LoginContext;
import javax.security.auth.login.LoginException;

import tutorial.interfaces.Fibo;
import tutorial.interfaces.FiboHome;


public class ClientMain {
static class AppCallbackHandler implements CallbackHandler
{
private String username;
private char[] password;

public AppCallbackHandler(String username, char[] password)
{
this.username = username;
this.password = password;
}

public void handle(Callback[] callbacks) throws
java.io.IOException, UnsupportedCallbackException
{
for (int i = 0; i  callbacks.length; i++)
{
if (callbacks instanceof NameCallback)
{
NameCallback nc = (NameCallback)callbacks;
nc.setName(username);
}
else if (callbacks instanceof PasswordCallback)
{
PasswordCallback pc = (PasswordCallback)callbacks;
pc.setPassword(password);
}
else
{
throw new UnsupportedCallbackException(callbacks, Unrecognized 
Callback);
}
}
}
}

public static void main(String[] args) {
FiboHome home;
String name = login;
char[] password = password.toCharArray();
try {
AppCallbackHandler handler = new AppCallbackHandler(name, password);
LoginContext lc = new LoginContext(TestClient, handler);
System.out.println(Created LoginContext);
lc.login();
} catch (LoginException le) {
System.out.println(Login failed);
le.printStackTrace();
}

try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
env.put(Context.PROVIDER_URL, jnp://localhost:1099);
env.put(Context.OBJECT_FACTORIES, org.jboss.naming:org.jnp.interfaces);

Context context = new InitialContext(env);
Object ref = context.lookup(ejb/tutorial/Fibo);
home = (FiboHome) PortableRemoteObject.narrow(ref, FiboHome.class);

env = context.getEnvironment();
Set keys = env.keySet();
Iterator it = keys.iterator();
while (it.hasNext()) {
Object next = it.next();
System.out.println(key:  + next + , value:  + env.get(next));
}

Fibo bean = home.create();
double[] result = bean.compute(5);
bean.remove();
System.out.println(The first 5 Fibonacci numbers );
for (int i = 0; i  result.length; i++) {
System.out.println(result);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
===


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Security Exception while trying to access secured EJB

2004-06-19 Thread kuchhal
Never mind it is working now. I realized that I should use 
org.jboss.security.ClientLoginModule in auth.conf instead of 
org.jboss.security.auth.spi.UsersRolesLoginModule on the client side (standalone class)


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - JAAS doAsPrivileged with a null AccessControlContext

2004-06-19 Thread HakanBerlin
This is not a specific JBoss question. 
But JBoss is our app server.

I make my JAAS-based authorisations being wrapped by an JBoss-EJB providing an EJB 
method 

doAsPrivileged(Subject,
PrivilegedExceptionAction,
AccessControlContext)

with a null as AccessControlContext argument. This has the effect that
for each new user access control an empty stack with ProtectionDomain[0] is 
constructed internally by JAAS.

The wrapped exampleEJB.doAsPrivileged is invoked on the JSP side. Inside the 
PrivilegedExceptionAction I wanted to do invocation of the protected operation rather 
to call AccessController.checkPermission inside the action as is given as example 
everywhere.

The access control should start on the server-side and inside the method
that does realise any protected operation:

class exampleEJB ... {

doSomething {
AccessController.checkPermission(Permission);
...
}
...
}

Does anyone know, if this is possible without getting code source access control 
problems?? Because when I have an action like exampleEJB.doSomething as argument to 
the doAsPrivileged, then the just
refreshed accesscontrolcontext gets one method call onto the stack and the stack 
will look like this:

Stack 1:
-
AccessController.checkPermission
exampleEJB.doSomething
--

When inside the action at the jsp side, I would have called directly the 
checkpermission, than I would have only one method on the stack:

Stack 2:

AccessController.checkPermission


This class is in the system domain and so authorisation is really based exclusively 
onto the Subject's permissions.

But I would rather have the permission checks on the server side inside the protected 
method. However, do I get some problems with the stack 1??? In which domain is the 
exampleEJB.doSomething-method?? In the domain where the JSP is stored that calls the 
EJB???

I had a problem with JAAS on JBoss a few time ago. Thanks to a very good answer, I had 
found my way.

I needed the JAAS-based authorisation in my project. 

1- JBossSX provides the J2EE declarative role-based access control

2- EJB SecurityInterceptor were an alternative but are not an EJB 2.0 standard.

I hope, JACC will help in future with this problem.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - JBOSS and Maxdb

2004-06-19 Thread vkasuba
Hi,

I tried to connect a jboss server to my maxdb. A made my sapdb-ds.xml file. But i dont 
know how can i create my service file. I tried to use a default 
mysql-jdbc2-service.xml for this (i rename, and i change inside the datasource), but i 
got these errors!!


2004-06-19 19:39:32,333 INFO  
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.DefaultDS] Bound 
connection factory for resource adapter for ConnectionManager 
'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS'
2004-06-19 19:39:32,333 INFO  
[org.jboss.resource.connectionmanager.TxConnectionManager] Started 
jboss.jca:service=LocalTxCM,name=DefaultDS
2004-06-19 19:39:33,405 ERROR [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting 
failed
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.  Message 
recovery may not be accurate; - nested throwable: 
(com.sap.dbtech.jdbc.exceptions.DatabaseException: [-3014] (at 21): Invalid end of SQL 
statement)
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:336)
at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1356)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
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:546)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy14.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
at org.jboss.system.ServiceController.start(ServiceController.java:411)
at org.jboss.system.ServiceController.start(ServiceController.java:411)
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:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
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:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
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:546)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
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:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
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:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at 

[JBoss-user] [Performance Tuning] - Regarding maximum number of JAVA,JAVAC pids

2004-06-19 Thread msfteam
Hi,
I am using JBOSS-3.2.2.and j2sdk1.4.1_01.When i start the jboss server as JBOSS user i 
am seeing maximum number of java and javac pids running .And why Jboss is taking that 
much of memory.I am using a standalone server.When i sent a request it is taking lot 
of time and memory is eating.I am deploying EAR file in the server.I am pasting the 
output of the TOP command

 11:49pm  up 1 day,  8:36,  3 users,  load average: 0.19, 0.09, 0.09
105 processes: 100 sleeping, 5 running, 0 zombie, 0 stopped
CPU states: 91.0% user,  8.9% system,  0.0% nice,  0.0% idle
Mem:   513308K av,  285788K used,  227520K free, 160K shrd,   22356K buff
Swap: 2097136K av,8740K used, 2088396K free  122520K cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
12039 jboss 14   0 46996  45M 35360 R30.6  9.1   0:01 javac
12049 jboss 10   0 46996  45M 35360 S 6.6  9.1   0:00 javac
11214 root   9   0  1100 1100   836 R 3.2  0.2   1:10 top
11276 jboss  9   0  104M 104M 30556 S 3.0 20.8   0:15 java
12043 jboss  9   0 46996  45M 35360 S 2.3  9.1   0:00 javac
11273 jboss 19   0  104M 104M 30556 R 1.7 20.8   0:08 java
11254 jboss 12   0  104M 104M 30556 R 0.7 20.8   0:23 java
12038 jboss  9   0  104M 104M 30556 S 0.1 20.8   0:00 java
12044 jboss  9   0 46996  45M 35360 S 0.1  9.1   0:00 javac
1 root   0   0   120   7272 S 0.0  0.0   0:03 init
2 root   8   0 00 0 SW0.0  0.0   0:00 keventd
3 root   9   0 00 0 SW0.0  0.0   0:00 kapm-idled
4 root  19  19 00 0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
5 root   9   0 00 0 SW0.0  0.0   0:01 kswapd
6 root   9   0 00 0 SW0.0  0.0   0:00 kreclaimd
7 root   9   0 00 0 SW0.0  0.0   0:00 bdflush
8 root   9   0 00 0 SW0.0  0.0   0:00 kupdated
9 root  -1 -20 00 0 SW   0.0  0.0   0:00 mdrecoveryd
   13 root   9   0 00 0 SW0.0  0.0   0:00 kjournald



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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-19 Thread madadi
hai..

 Is it possible that i can use userid as a Primarykey for one table and Foreign key 
for other table.

because i have a one registration form which contains personal data and specific data. 
but both should store in 2 different table.

in my database i declared user id as a Primarykey for personal_data table and foreign 
key for specific_data table.

so what will be the solution ? i want to store data in both tables and retrieve info 
from both tables.

regards
madadi


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: nukes 1.1RC1 available

2004-06-19 Thread jae77
i've just committed the changes to add management of user submissions for the 
downloads module. 

this was the only thing holding up the final release of 1.1, so it'd be great if some 
ppl could help give some final qa testing to everything. 

the tag (Nukes_1_1_0_RC1) has been promoted as a new zip has been dropped at 
http://www.scriptkitty.org/nukes-1.1.0-mysql-RC1.zip

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - problem configuring jboss 3.2.3 with mySql 3.23

2004-06-19 Thread jonasj
Searing on google yields conflicting info on setting up mysql
with jboss.
After spedning much time on this issue,  the only way I could get it working
is to define mysql as DefaultDS in the sample mysql-ds.xml, provided in jboss , copy 
it to deploy AND deleting hypersonic ds.xml in deploy.

It works but I get some expection thrown when jboss is started.

I think I should be able to have both hypersonic as DefaultDS and
mySQl as MySqlDS working.

Any help here?





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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - can a Servlet use local intefaces to talk to BMP Entity Bean

2004-06-19 Thread jonasj
I tired to use local interfaces in my Servlet to talk to BMP bean
but no luck. I only got it working using remote interfaces.

If Servlet and EJb are deployed under the same jboss server process,
servlet should be able to use local interfaces to talk the EJB for higher
performance.
Also it should not matter if Servlet is in separate jar or in .ear file where
EJB resides.

Any help here?

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: nukes 1.1RC1 available

2004-06-19 Thread cooper
there's a bug I need to fix regarding changing password as well

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Excelent Tutorials Xdoclet, Struts, EJB's

2004-06-19 Thread WebSel
Hi!,

For the beginners here is my owns startup documentation:
I've found several very usefull here:
http://www.arc-mind.com/downloads.htm

The following usefull totorials are there:

Struts Quick Start Tutorial
Master the Struts Tiles Framework Tutorial
Enhance J2EE component reuse with XDoclet
Introduction to container-managed persistence and relationships, Part 1,2,3,4
   Covering CMP, CMR, QL, 1:n n:m relations etc.
Use XDoclet to generate Web service support files 

Special JBOSS artivles which are awsome i.m.h.o not all are beginner level Written by 
Timothy J. Potter 
http://techniques.org/discuss/viewforum.php?f=33

JBoss Cluster
Using MySQL for Persistence on JBoss
Using LDAP for Security on JBoss AS 3.2.3

Wessel


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: user: NULL is not authenticated

2004-06-19 Thread gfreemankc
So, changing to OIL didn't resolve the issue, I still had the security manager 
disabled.

I tried defining my queue as above, without the dependency on the security manager, 
but the result was the same - user null is NOT authenticated.

I just don't understand why it's not working...  :(

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: user: NULL is not authenticated

2004-06-19 Thread gfreemankc
Here's my security manager mbean:
mbean code=org.jboss.mq.security.SecurityManager 
name=jboss.mq:service=SecurityManager
  | attribute name=DefaultSecurityConfig
  |   security
  | role name=guest read=true write=true create=true/
  |   /security
  | /attribute
  | attribute name=SecurityDomainjbossmq/attribute
  | depends 
optional-attribute-name=NextInterceptorjboss.mq:service=DestinationManager/depends
  |   /mbean
  | 

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[Installation Configuration] - [JBoss-user] [Installation Configuration] Running JBoss wi

2004-06-19 Thread bodaro
I have an application that  intiially separated Jboss 3.0.6 and Tomcat 4.1.24 into 
separate JVMs. To gain efficieny we wish to run both in the same JVM and avoid the 
cost of marshalling/unmarshalling and remote invocations.

I took our Jboss 3.0.6 server and embedded the tomcat 4.1.18 server that came with the 
Jboss 3.0.6-Tomcat 4.1.18 distribution. I am able to successfully start the 
application and it unpacks my WAR and EAR files without errors.

On the first request that uses EJB calls I see this error:

15:37:07,648 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, 
method=public abstract com.yaga.contentmanager.ContentManager 
com.yaga.contentmanager.ContentManagerHome.create() throws 
java.rmi.RemoteException,javax.ejb.CreateException
at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:597)
...

I have done no configuration changes from t he original tomcat webapp - so I assume 
its still communicating on port 1099 with JBoss. But why shouldnt it work in this new 
configuration? Presumably Jboss is still listening on port 1099 and my client side 
bean calls have not changed.

Any ideas?


I wish to remove the overhead of marshalling. I was told that there is a switch in 
Jboss that will recognize that the EJB calls are in-process and avoid themarshalling 
and avoid using TCP over port 1099. Can you tell me how to enable this?

Any help is appreicated, including pointers to documentation.

Mike

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Avoiding EJC Call Overhead by Running Jboss and Tomcat in th

2004-06-19 Thread bodaro
I have an application that  intiially separated Jboss 3.0.6 and Tomcat 4.1.24 into 
separate JVMs. To gain efficieny we wish to run both in the same JVM and avoid the 
cost of marshalling/unmarshalling and remote invocations.

I took our Jboss 3.0.6 server and embedded the tomcat 4.1.18 server that came with the 
Jboss 3.0.6-Tomcat 4.1.18 distribution. I am able to successfully start the 
application and it unpacks my WAR and EAR files without errors.

On the first request that uses EJB calls I see this error:

15:37:07,648 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, 
method=public abstract com.yaga.contentmanager.ContentManager 
com.yaga.contentmanager.ContentManagerHome.create() throws 
java.rmi.RemoteException,javax.ejb.CreateException
at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:597)
...

I have done no configuration changes from t he original tomcat webapp - so I assume 
its still communicating on port 1099 with JBoss. But why shouldnt it work in this new 
configuration? Presumably Jboss is still listening on port 1099 and my client side 
bean calls have not changed.

Any ideas?


I wish to remove the overhead of marshalling. I was told that there is a switch in 
Jboss that will recognize that the EJB calls are in-process and avoid themarshalling 
and avoid using TCP over port 1099. Can you tell me how to enable this?

Any help is appreicated, including pointers to documentation.

Please note: I accidentally posted a similar message as a reply to another pos.

Mike

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Synchronization of Stateful Session Bean

2004-06-19 Thread fruehbeck
Hi,

I want to use SFSB for a kind of state machine. But a big problem is, that the SFSB is 
not synchronized, but throws an EJBException - which is correct reg. the specification.

The hint I found until now was to synchronize the invocations of the SFSB on client 
side (eg. JSP/Servlet). But unfortnately this doesn't work with multiple clients or 
multithreaded clients not under my programmatic control.

Can anyone help me?


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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Problem running JBoss 3.2.4 under Eclipse

2004-06-19 Thread gchialli
When i run JBoss under Eclipse i get this:

java.lang.NoClassDefFoundError: org/jboss/Main
Exception in thread main 

this is the stack:

org.jboss.Main at localhost:10166
System Thread [Finalizer] (Running)
System Thread [Reference Handler] (Running)
Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 198 [local variables unavailable]
AccessController.doPrivileged(PrivilegedExceptionAction, 
AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 186
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 
299
Launcher$AppClassLoader.loadClass(String, boolean) line: 265
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 255
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 
315
System Thread [Signal Dispatcher] (Running)



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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: How to shutdown Jboss running in minimal configuration

2004-06-19 Thread [EMAIL PROTECTED]
You can't as the minimal config is too minimal. It does not the the remote jmx invoker 
that allows shutdown from an external process.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Can I just use java.util.Timer in MBean?

2004-06-19 Thread [EMAIL PROTECTED]
Yes. Really, there is no advantage to the timer mbean. The jmx spec existed before the 
jdk had a timer so it created its own.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: jnp.disableDiscovery?

2004-06-19 Thread [EMAIL PROTECTED]
Its only read from the InitialContext environment obtained from jndi.properties on one 
explicitly passed in. jnp.disableDiscovery is not read as a system property. Write 
your own InitialContextFactory impl that does this.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: running jboss with -Djava.security.manager

2004-06-19 Thread [EMAIL PROTECTED]
What does adding -Djava.security.debug=domain,failure show around this exception? I 
did testing of a security manager with the hsqldb driver, but no external databases. 
I'll try pointbase for th 3.2.5 release.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: URGENT: Classloading issue: No class found even that the

2004-06-19 Thread [EMAIL PROTECTED]
If an ear is deployed with a heirarchical loader configuration no other deployment can 
load classes from it.

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user