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
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
| public void updateDeal(Deal deal)
| {
| ...
| 1 session = this.getSession();
| 2 session.update(deal);
| 4 session.flush();
| 5 session.close();
| ...
|
The above
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
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
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.
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
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.
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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.
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
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()
| {
| }
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
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
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
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
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
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
31 matches
Mail list logo