[JBoss-user] [JBossCache] - Re: JBossCache-1.2.4 & Weblogic 8.1 SP4 (ClassCastException)

2005-11-09 Thread rajs1
Well, as it turns out it was a "jar" problem. I had a servlet that created the cache, started it and inserted the TreeCache object in JNDI. I made sure that this servlet always ran first (in WebLogic). The war file had the jboss-cache related jars in its WEB-INF/lib dir My ear's also had the jb

[JBoss-user] [JBossCache] - JBossCache-1.2.4 & Weblogic 8.1 SP4 (ClassCastException)

2005-11-07 Thread rajs1
JBossCache-1.2.4 & Weblogic 8.1 SP4 (ClassCastException) I have managed to insert the TreeCache object into the JNDI tree following the example given in the wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic But when I try and retreive the TreeCache object in my stateless s

[JBoss-user] [Persistence & CMP/JBoss] - JBoss/Hibernate & object versioning

2005-03-16 Thread rajs1
| public void updateDeal(Deal deal) | { | ... | 1 session = this.getSession(); | 2 session.update(deal); | 4 session.flush(); | 5 session.close(); | ... | The above

[JBoss-user] [Security & JAAS/JBoss] - Secure connection to port 1099

2005-01-03 Thread rajs1
Most of what I have read about SSL to JBoss is do to with Tomcat. For web connection to JBoss/Tomcat, this is acheived (by us) using Apache as the web server (with a digi cert port:443) and jk2 connectot from Apache to Tomcat. The web users are public access users. However users inside the LAN

[JBoss-user] [Persistence & CMP/JBoss] - Hibernate(JBoss4) and the Sequence Block Pattern

2004-12-16 Thread rajs1
Going through the hibernate docs (section 5.1.4) on id's, under Hi/Lo Algorithm it says anonymous wrote : | .. you can't use hilo .. when Hibernate is using an application server datasource to obtain connections enlisted with JTA. | I am therefore using the sequence block pattern (as per

[JBoss-user] [Security & JAAS/JBoss] - Re: principalsQuery fails

2004-12-16 Thread rajs1
Ok, so I'm missing something basic, because the principalsQuery is not being set to what I specified in my login-config.xml The trace is as below: | 2004-12-15 22:04:46,515 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] initialize | 2004-12-15 22:04:46,515 TRACE [org.jboss.

[JBoss-user] [Security & JAAS/JBoss] - Re: principalsQuery fails

2004-12-16 Thread rajs1
It seems as if the principalsQuery is not being set as per the login-config.xml detail. What do I do (in log4j.xml) to get the trace so that I can see what the principalsQuery was set to? My client code is as follows: | System.setProperty(Context.INITIAL_CONTEXT_FACTORY

[JBoss-user] [Persistence & CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-12-16 Thread rajs1
I got it all working with Apache Derby as the database server, without a hitch (so far). First one needs to replace (in default/lib) the jboss-hibernate.jar that comes with JBoss4RC2 with the one from this wiki http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate Rename jboss-hibernate-NEW.

[JBoss-user] [Management, JMX/JBoss] - JBoss4.0.1RC2 EJBTimerService failure

2004-12-16 Thread rajs1
I posted this in Installation & Configuration forum and got no joy, maybe it was the wrong forum, maybe I'd have some better luck here. I noticed this new MBean in the ejb-deployer.xml (whe compared to v4.0.0): | | jboss.jca:service=DataSourceBinding,name=DefaultDS | org.jbo

[JBoss-user] [Installation & Configuration] - JBoss4.0.1RC2 EJBTimerService failure (with Apache Derby DB

2004-12-16 Thread rajs1
I noticed this new MBean in the ejb-deployer.xml (whe compared to v4.0.0): | | jboss.jca:service=DataSourceBinding,name=DefaultDS | org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin | | This causes the following (metadata) exception with my database (Apache

[JBoss-user] [Security & JAAS/JBoss] - Re: principalsQuery fails

2004-12-16 Thread rajs1
My error after all login-config.xml was: | | java:/DefaultDS | select user_passwd from Login_Schema.Registration where user_id = ? | select user_role, 'Roles' from Login_Schema.User_Roles where user_id = ? | | but should

[JBoss-user] [Security & JAAS/JBoss] - principalsQuery fails

2004-12-15 Thread rajs1
I am trying to set up a simple Security test with JBoss4RC2 and Apache Derby. I have set up the security config in login-config.xml as follows: | | | | java:/DefaultDS | select user_passwd from Login_Schema.Registration

[JBoss-user] [Security & JAAS/JBoss] - Re: Encrypted database connection (follow up)

2004-12-09 Thread rajs1
Oh well, back to the drawing board then. Anyway, thanks for all the fish. Cheers -raj View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857997#3857997 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857997 --

[JBoss-user] [Security & JAAS/JBoss] - Encrypted database connection (follow up)

2004-12-08 Thread rajs1
Following this comment in an earlier thread (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=56817), anonymous wrote : | More generically I have thought about adding support for encyrpting any mbean attribute using the service described in the datasource password encryption faq but

[JBoss-user] [Installation & Configuration] - Re: Hibernate2 with JBoss4 (cannot bind) ?

2004-11-30 Thread rajs1
Thanks for the replies Darran. I went through the forum archives and thought that was the case. But then I came across a snippet of code where someone claimed to use the above and got a session. Anyway it is much is clearer now. So does this mean that (one of) the only means of operating on Hi

[JBoss-user] [Installation & Configuration] - Re: Hibernate2 with JBoss4 (cannot bind) ?

2004-11-30 Thread rajs1
Yes, I know, but I can only bind as to what JBoss tells me the JNDI name is. It says: | Bound factory to JNDI name: java:/hibernate/SessionFactory | I have tried it without the java: etc etc etc but I always get the same error: javax.naming.NameNotFoundException: hibernate not bound I a

[JBoss-user] [Installation & Configuration] - Hibernate2 with JBoss4 (cannot bind) ?

2004-11-29 Thread rajs1
I posted this on Persistence & CMP/JBoss but did not get much milage. I am hoping I will have some better luck in this forum. Failing this, I wil have to give up on JBoss on move on, I really hope you can help. I am trying a simple test with Hibernate on JBoss 4 (with Firebird as the DB) but ca

[JBoss-user] [Persistence & CMP/JBoss] - Hibernate2 with JBoss4 (cannot bind) ?

2004-11-29 Thread rajs1
I don't know if this is the correct forum for this post but there seems to be nothing dedicated to Hibernate with JBoss4 at the moment. I am trying a simple test with Hibernate on JBoss 4 (with Firebird as the DB) but cannot get a context.lookup to work. I have replaced the jboss-hibernate.jar

[JBoss-user] [Security & JAAS/JBoss] - Re: encrypted database connection [again]

2004-11-23 Thread rajs1
Thanks for the reply. First and foremost, the app in question is stuck with the db for the mo. The db does not support roles etc and due to legacy reasons was encrypted. It will be replaced by something more appropriate a.s.a.p and I hope to revert back to just password encryption at that point

[JBoss-user] [Security & JAAS/JBoss] - Re: encrypted database connection [again]

2004-11-23 Thread rajs1
Ok, here goes. my {db}-ds.xml file is as follows: | | | DefaultDS | jdbc:...://localhost../testdb;bootPassword=foobar | ... | test | test | 10 | 50 | | | The reason the url

[JBoss-user] [Security & JAAS/JBoss] - Re: encrypted database connection [again]

2004-11-23 Thread rajs1
That may well be the case but since thats how the driver expects the URL and its in JBoss where the configuration is being set, its like being stuck between a rock and a hard place. I wonder if this might work (and I would like your opinion). If I were to extend | org.jboss.resource.adapt

[JBoss-user] [Security & JAAS/JBoss] - Re: encrypted database connection [again]

2004-11-23 Thread rajs1
Firstly, thanks for the reply. The problem is not enrypting the user password (life would be easy if that was the case). Here the database itself is encrypted on disk. So the {db}-ds.xml looks like: | jdbc:blah b blah://localhost:/;bootPassword= | Obviously the is currently in clear t

[JBoss-user] [Security & JAAS/JBoss] - encrypted database connection [again]

2004-11-23 Thread rajs1
I really would appreciate a query on how to connect JBoss to an encrypted database (as posted below). If (at the very least) this is confirmed as not being in the realm of possibilties (for JBoss), at least I can search for alternate solutions. Thanks -raj View the original post : http://www.

[JBoss-user] [Security & JAAS/JBoss] - encrypted database connection

2004-11-22 Thread rajs1
I am trying to use hibernate (2.1) with JBoss4 with a Java database. The DB has been encrypted which means that the boot password has to be provided as part of the URL (or as a connection parameter anyway). For development, this has been entered in my ds.xml file. When I need to send it out in

[JBoss-user] [Persistence & CMP/JBoss] - CMP with Compound Primary Key (Bug?)

2004-10-03 Thread rajs1
I have a CMP ContactOrgList with a compound primary key as follows: anonymous wrote : | public class ContactOrgPK implements java.io.Serializable | { | public String category_code = null; | public Long contact_org_id = null; | | public ContactOrgPK() | { | }

[JBoss-user] [Persistence & CMP/JBoss] - Re: design opinions sought

2004-07-04 Thread rajs1
anonymous wrote : To clarify, a Job has multiple Activities. Activity is a part of 1 Job. job_id act_id | 1 1 | 1 2 | 1 3 | 1 4 | 2 1 | 2 2 | 3 1 If an activity is only associated with one job surely activity_id 1 cannot be associated with job_id's 1, 2 & 3? Cheers

[JBoss-user] [Persistence & CMP/JBoss] - Re: Relationship mapping in jbosscmp-jdbc.xml (another probl

2004-07-04 Thread rajs1
Its this statement this causes the exception. return tradingCentreHome.findByPrimaryKey(this.getLocalTradingCentre().getTrading_centre_code()); I suppose the container is building the SQL using the relationship: | TradingCentreEJB - TradableInstrumentEJB If I were not to use the relationship

[JBoss-user] [Persistence & CMP/JBoss] - Relationship mapping in jbosscmp-jdbc.xml (another problem)

2004-07-02 Thread rajs1
I am gettinga curious java.rmi.ServerException and I hope you can help. A table Tradable_Instrument has symbol (String) and trading_centre_code (String, foreign key) as its compound primary keys. Table Trading_Centre has trading_centre_code as its primary key. I have defined a one-to-many bidi

[JBoss-user] [Persistence & CMP/JBoss] - Re: Relationship mapping in jbosscmp-jdbc.xml

2004-07-02 Thread rajs1
Much obliged squire, works a treat. Cheers -raj View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840748#3840748 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840748

[JBoss-user] [Persistence & CMP/JBoss] - Re: design opinions sought

2004-07-02 Thread rajs1
anonymous wrote : A job can have multiple activities. | Is an activity associated with multiple jobs or only a single job? anonymous wrote : | Job | -- | job_id(pk) || || |^ | Job_Activity_List | - | job_id (pk,fk) | activity_id (pk,fk

[JBoss-user] [Persistence & CMP/JBoss] - Relationship mapping in jbosscmp-jdbc.xml

2004-07-01 Thread rajs1
I have a Table called | Country (primary key country_code[String]). | Trading_Centre (primary key trading_centre_code[String] & foreign key country_code[String] NOT NULL) | | | I am trying to establish a entity relationship (all tables exist, create table = false). | | TradingC