Re: [JBoss-user] [Installation Configuration] - Gentoo Linux JBoss

2004-10-28 Thread Tim Meals
Gentoo has 3.2.5 in Portage, only it's marked as masked.  Create an 
/etc/portage/package.keywords with which packages you want to include as 
masked.  Format of the file is:

www-servers/jboss ~x86
Then emerge -v jboss and you'll be on version 3.2.5.  I'm currently 
running 3.2.3, but will probably switch over to 3.2.5 soon to expirament 
with clustering.

Tim
zambizzi wrote:
Anyone using this combination?
I'm having problems w/ the 3.2.3 version that is available through Gentoo's portage 
application
I'd use a newer version and custom install, which I tried and it works, but I can't 
find a startup script that works (bash shell) and I'm not familiar enough w/ shell 
scripting to do anything about it.
Thanks!
View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853163#3853163
Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853163
---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [Beginners Corner] - specify deploy directory for jk2

2004-09-14 Thread Tim Meals
Michael --
You don't need to fuss with aliases in Apache.  Instead, you'll define 
which URIs to pass onto JBoss/Tomcat in the workers2.properties file.

For example, if you want to have JBoss handle all /test/* requests, 
you'll add a couple of lines in workers2.properties like this:
[uri:/test/*]
group=lb

You might also want to have it take all JSP requests:
[uri:/*.jsp]
group=lb
I just got finished integrating Apache 2.0.50, mod_jk2 and JBoss 3.2.5 
on a Windows 2k box.

Best of luck,
Tim
mjremijan wrote:
I'd like to use the apache jk2 in front of jboss.  However, I have a small problem.  
In the httpd.conf file I would normally need to use an alias to point to the webapp 
directoy.  Using straight tomcat this is easy:
Alias /test D:/Programs/jakarta/tomcat/5.0.28/webapps/test/
However, with jboss, I drop an ear into the /deploy directory and it ends up in some 
wierdly named directory like tmp\deploy\tmp458310.0.1-dsr.ear-contents\homesuite.war 
but the name of this directory changes everytime the webapp is redeployed.  Is there 
any way to specify where jboss will unpack the ear?
Michael.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3848232#3848232
Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3848232
---
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 


---
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [Installation Configuration] - help needed deploying .ear file

2004-09-04 Thread Tim Meals
Srik --
Check the ?xml version=1.0? declaration.  I don't think ISO8859_1 
is a valid encoding.  Try using iso-8859-1 instead, or change it to 
utf-8 depending on your needs.

Hope it helps,
Tim
srik wrote:
Dear friends,
when i tried to deploy the helloWorld.ear file in the
server/default/deploy folder of the jboss distribution folder, i
get the following error:
ERROR [MainDeployer] Could not initialise deployment: file:/C:/jbos
s-3.2.5/jboss-3.2.5/server/default/deploy/helloWorld.ear
org.jboss.deployment.DeploymentException: Invalid encoding name
ISO8859_1.; - nested throwable: (org.xml.sax.SAXParseException:
Invalid encoding name ISO8859_1.)
so, should i need to change the encoding some where. please guide me.
Thanks in advance,
srik.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3847253#3847253
Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847253
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 


--
Tim Meals   
Senior Programmer

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Internal Tomcat version upgrade

2004-06-23 Thread Tim Rickard
How can I upgrade internal tomcat versions. For example from 5.0.16 to 5.0.19. Can I 
just copy the files from the tomcat distibution server directory to the 
jbossweb-tomcat50.sar directory in the jboss distribution.


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Problems occuring under load

2003-09-18 Thread Tim McAuley
Hi,

We've been running some tests on our system to simulate a high load and 
have been getting some errors. Maybe people could point out what may 
need to be fixed or if JBoss might have an issue with this. It'd be 
interesting to know if JBoss (that is 3.2.1) currently has any issues 
when being run on a high load or on a multiple CPU box.

My last run, where I retrieved these errors from was run on a dual PIII 
Linux system running JBoss 3.2.1 and Java 1.4.2

1 ) This one is weird. In a section of code below, we get an error on 
the removeFrist method. This has cropped up once or twice on both a 
windows and Linux system, running JBoss 3.2.1 and JBoss 3.2.2RC2. (and 
Java 1.4.2_01 on windows).

It should not be possible for this error to occur because of the check 
right before hand. Could this possibly be a JVM issue?

The code below should not be shared between beans. The items in the 
linked list are entity bean references.

   if (collection != null)
   {
   for (int i = 0; i  preferredAmount; i++)
   {
   if (!(getLinkedList().isEmpty()))
   {
   
collection.add(getLinkedList().removeFirst());// ERROR OCCURS
   }
   else
   {
   break;
   }
   }
   }

2003-09-17 10:56:19,515 ERROR [our code ] Unexpected Exception in 
getChat()
java.util.NoSuchElementException
   at java.util.LinkedList.remove(LinkedList.java:579)
   at java.util.LinkedList.removeFirst(LinkedList.java:131)
   at our code(class with code above.java:182)

2) This one occurs in various areas. It did not occur when I ran tests 
using 10 threads, but did when running with 100 threads on the test client.

Do I need to adjust the transactions requirements for these methods?

Caused by: java.lang.IllegalStateException: removing bean lock and it 
has tx set!
   at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:430)
   at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.fieldStateEventCallback(JDBCStoreManager.java:187)
   at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.getInstanceValue(JDBCCMP2xFieldBridge.java:152)
   at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.getValue(JDBCAbstractCMPFieldBridge.java:174)
   at 
org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:124)
   at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
   at our entity bean$Proxy.getPriority(generated)
   at our entity bean.getDcPriority(our entity bean.java:927)
   at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1044)
   at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95)
   at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:301)
   at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)

All the best,

Tim



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Help with memory leak issue

2003-08-28 Thread Tim McAuley
Stephane Nicoll wrote:

Hello,

We had exactly the same problem!

Using Jboss 3.2.1 with the pg73jdbc3 driver solves our problem.

Regards,

Stphane Nicoll
You're dead right.

I had tried out the latest driver but to fix the original problem. I 
never noticed it had fixed the commit issue.

Just got the 7.3.4 source code and have rebuilt the JDBC driver (with 
changes to use long indexes) and it works a treat.

Thanks, one more bug I can close.

Tim



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Help with memory leak issue

2003-08-27 Thread Tim McAuley
Jon Barnett wrote:

Have you logged information on pool sizes, bean lifecycles (particularly
for the stateful session beans) and so on? You'll probably want to monitor
activity on the servlets as well - session expiry probably being an
important event. No session expiry on servlets results in a memory leak.
The Postgresql driver has not exhibited any leakage in my experience under
any of the 7.2.x and 7.3.x implementations.
Are there any other strange issues? Large number of open connections to
hsqldb? Some people have experienced this with JBoss under Linux. We
usually don't see that as we run with no port for the hsqldb (in-process).
Have you tried with various JVMs as well?

Do you get any log messages showing any errors and do you ever run out of
memory?
Perhaps outline the JVMs used and the -X options used.

That's all I can think of at the moment. Others might have some better
suggestions.
JonB.
 

Jon,

Thanks for the reply. I have at last managed to track down the problem.

Just after sending the first email I decided to remove the call to 
message bean altogether. This worked and JBoss ran for 6 hours without 
any problems. After a bit of work I tracked this down to the fact that 
when calling a stored procedure the leak seemed to occur as opposed to 
calling a basic sql query.

It ended up that the stored procedure was producing NOTICE messages 
and these were being received by the jdbc driver. The jdbc driver was 
storing these SQLWarning messages under the connection and because 
JBoss does not actually close the connection but returns it to the pool, 
the messages weren't being purged.

I now have calls to read all the SQLWarnings from any jdbc calls being 
made and this seems to be doing the job. These messages are then traced 
out by log4j for safety.  I have also lowered the level of the messages 
being outputted so that fewer messages will be received.

Took a while but it was worth it.

Now I just have to figure out why I'm getting so many COMMIT: no 
transaction in progress messages from Postgresql. Have to examine our 
transaction handling I guess.

All the best,

Tim



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Help with memory leak issue

2003-08-23 Thread Tim McAuley
Hi all,

Firstly, I apologies if this is a vague request but I feel I need some 
pointers.

I am currently testing an application for memory leaks and seem to have 
found one but am not sure where it is or how to isolate the leak (if 
there is in fact one).

Test:
- Set our entry servlet to have a timeout of 3 minutes (i.e. to logout a 
user)
- Every 5 minutes login members 1 to 100 using Grinder (single thread)
- Leave running overnight.
(Code uses servlets accessing stateless and statefull session ejbs and 
uses a combination of jdbc and entity ejbs for database access 
[depending on type])
- A stored procedure is called on the database when the user logs out 
(to refresh the users data) asynchronously using message beans.

Environment:
- Client: Windows 2000 client for Grinder
- JBoss: 3.0.7 (and JBoss 3.2.2RC2) running on Redhat Linux 9
- Database:   Postgresql 7.3.2 running on Redhat Linux 9 (separate 
server to JBoss)

The tests runs for about 4 hours okay and then JBoss runs out of memory 
(no modifications to heap size have been made).

Using a cron job to record the memory of the JBoss java process every 
1/2 hour we get the following type of results (for both 3.0.7 and 3.2.2)

104852 (start)
117816 (after initial run)
124784
130908
136060
158512
163104
164356 (started to run out of memory)
I have used a memory profiler to check for left over objects and none 
are showing up (at least in our code i.e. ones starting with ie.*). The 
JBoss ones are flucuating all the time but nothing is jumping out at me 
as to what may be causing the leak.

Has anyone else had issues like this using JBoss 3.0.7 or 3.2.2RC2? If 
our own objects seem to be getting cleaned up, then what could be 
causing the leak? (hmmm jdbc driver possibly? We're using our own 
compiled version of the Postgresql jdbc driver from the 7.3.2 sourcecode 
so that indexes for bigints would be used correctly... therefore not the 
lates JDBC driver on the postgresql website).

Any thoughts would be greatfulyl received. I'm off to try some more 
manual runs and see if I can track anything else down.

Tim





---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] force reload of read-only entity bean

2003-07-14 Thread Tim McAuley
Hi,

This might sound like an odd request but is it possible to force a 
read-only entity bean (or all read-only entity beans) to reload from the 
database.

The reason I ask this is that we use dbunit for some of our unit tests. 
These tests will reset the database to a known state according to a 
given xml dataset before running the test(s). The only problem with this 
is that if a read-only entity bean is changed and has already been 
loaded by JBoss, then the test has a stale copy of the data. Is there 
anyway to force JBoss to reload its entity bean cache for the purpose of 
running these tests?

Our alternative is to run through all of our dbunit datasets and make 
sure we do not have any overlap on read-only entity beans but this could 
become unmanageable very quickly.

Many thanks,

Tim

PS... current set-up is:
JBoss 3.0.7 (but might be moving to 3.2 in near future).
Java SDK 1.4.1_02


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] force reload of read-only entity bean

2003-07-14 Thread Tim McAuley
Tim McAuley wrote:

Hi,

This might sound like an odd request but is it possible to force a 
read-only entity bean (or all read-only entity beans) to reload from 
the database.

The reason I ask this is that we use dbunit for some of our unit 
tests. These tests will reset the database to a known state according 
to a given xml dataset before running the test(s). The only problem 
with this is that if a read-only entity bean is changed and has 
already been loaded by JBoss, then the test has a stale copy of the 
data. Is there anyway to force JBoss to reload its entity bean cache 
for the purpose of running these tests?

Our alternative is to run through all of our dbunit datasets and make 
sure we do not have any overlap on read-only entity beans but this 
could become unmanageable very quickly.

Many thanks,

Tim
Another quick note... as I think of different options to use.

Might it be possible to disable the read-only caching ability of JBoss 
entirely upon start-up? This would allow us to run the unit tests, where 
performance is not an important factor.

One reason that this issue has cropped up is that we're making some of 
our previously read-write entity beans read-only, which is why it is 
difficult to start re-writing all of our unit tests (and data).

Tim



---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] force reload of read-only entity bean

2003-07-14 Thread Tim McAuley
Sometimes the simplest solution is the best... we use to xdoclet to 
generate our deployment descriptor files, so they are recreated each 
time we rebuild our app. I've just added this target into our ant file 
to build the ejb jar file.

target name=disable-read-only-entity-beans depends=init 
if=disable-read-only
   replace
   file=${project.ejbxml.dir}/jbosscmp-jdbc.xml
   
replacetoken![CDATA[read-onlytrue/read-only]]/replacetoken
   
replacevalue![CDATA[read-onlyfalse/read-only]]/replacevalue
   /replace
   /target

So now all we have to do, when we want to deploy the app for unit 
testing is add the option:
-Ddisable-read-only=true

A bit hacky, I know, but the least obtrusive way of working around our 
problem.

All the best,

Tim

Hi,

This might sound like an odd request but is it possible to force a 
read-only entity bean (or all read-only entity beans) to reload from 
the database.

The reason I ask this is that we use dbunit for some of our unit 
tests. These tests will reset the database to a known state according 
to a given xml dataset before running the test(s). The only problem 
with this is that if a read-only entity bean is changed and has 
already been loaded by JBoss, then the test has a stale copy of the 
data. Is there anyway to force JBoss to reload its entity bean cache 
for the purpose of running these tests?

Our alternative is to run through all of our dbunit datasets and make 
sure we do not have any overlap on read-only entity beans but this 
could become unmanageable very quickly.

Many thanks,

Tim

PS... current set-up is:
JBoss 3.0.7 (but might be moving to 3.2 in near future).
Java SDK 1.4.1_02


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: Unexpected behavior when when deleting one entity in CMR 1-many rel

2003-06-19 Thread Tim McNerney
jeremy
When you make the COLOR_ID non null, then you are making the constraint
 mandatory inside the database, but the EJB specification does not have 
such
 a notion. When you remove the Color, the CMP nulls out the 
relationship in
 memory (as it should), but the constraint prevents this being 
persisted.
/jeremy

So it sounds like my problem is that there is no concept of constraints 
inside EJB and so while CMP will enforce integrity of the data by 
nulling out the COLOR_ID column, there is not mechanism to describe the 
constraint. Basically, no mechanism analogous to what can be done in a 
RDBMS. That's a bit frustrating

jeremy
 If you make the COLOR_ID column nullable, then you are allowing Cars to
 exist that have an unknown Color. When you remove a referenced Color, 
CMP is
 correctly removing the reference in the database preserving its 
integrity.
 By removing a referenced entity, you are actually asking for this to 
happen.
/jeremy

Changing the column to nullable was forced by some other oddity of CMP 
handling in JBoss. I don't want it nullable. But in any case, there are 
instances where I do want something nullable, but don't want my CMP 
engine doing updates behind my back.

Anyway, thanks for the quick response. Looks like I get to do my own 
checks.

--Tim



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Unexpected behavior when when deleting one entity in CMR 1-many rel

2003-06-18 Thread Tim McNerney
 Using 3.0.7, I have two entity beans with a 1-to-many relationship 
defined. Using CMP  CMR. This is not a parent-child relationship, so 
there is no cascade set up.

Let's call them Car and Color. A Car has a Color. A Color may be 
related to several Cars.

If I try and delete a Color that some Car is referencing and the 
underlying database COLOR_ID field is set to not null, I get a 
constraint violation and the operation fails. This is what I'd expect.

If the underlying database COLOR_ID field is set to null, the Color is 
deleted and the COLOR_ID field is set to null. This is not what I would 
expect.

I read somewhere that JBoss CMP enforced integrity, but in this case it 
doesn't seem to be the case. Rather it seems to rely on the underlying 
database to support integrity by performing an action that I didn't 
think I was asking for, namely nulling out the COLOR_ID field of all 
Car entries referring to the Color I'm deleting, with failure 
determined by the database's response.

Is there some way to get JBoss CMP/CMR to enforce integrity at its 
level so that if I try and delete a Color still accessed by a Car I get 
an exception? Alternatively, is there a way to tell it not to try and 
null out the COLOR_ID fields in the Cars, so that it would get the 
exception from the DB?

This is a general problem we're running into, so I'd prefer a general 
solution that modifies the behavior of CMP, rather than having to 
change some settings for each relationship I want to behave in this 
manor. And I know I can check this by hand, but that is not the 
solution I'm hoping for.

I've found the same behavior in 3.2.1.

Please reply to my email address in addition to the list.

Thanks in advance.

--Tim



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] CMP - Primary Key Strategies?

2003-03-17 Thread Eric Tim
I'm working on a CMP EntityBean with JBoss3 on
Oracle8.

My primary key must be a unique number. Oracle has a
nice facility for handling sequences, which doesn't
seam possible with this senerio because i'd need to
write some jdbc code in the ejbCreate method to get
the nextval.

I'm aware that there are several J2EE
patterns/blueprints to solve this...most have
not-so-clean side effects that i'd like to
avoid...such as extra tables..etc.

Is there anything that i can do with JBoss to solve
this problem in a simple and clean manner?

Someone told me that there is a cmp engine that i can
buy that plugs into jboss that makes this easy. Does
anyone know what product this is? Does anyone have
experience with it?

thanks,
-et

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Using UserTransaction within servlets with JBoss (for junit tests)

2002-10-25 Thread Tim McAuley
Hi,

I mailed the list before enquiring about this but I thought I'd try again,
this time narrowing it down a little.

I want to test some code that accesses an entity beans CMR field collection
and iterates through it. This code will be used through a session bean in
the final product but for the junit test I am not using a session bean. The
test works fine in JBoss 3.0.0 but not beyond. This is because the retrival
and accessing of the cmr collection needs to be done within a single
transaction (and prior to JBoss 3.0.1 this was incorrectly not checked for,
it now is) . How can I mimic this in my test case?

Currently I have: (in a junit test extending ServletTestCase i.e. using
cactus)

uTrans = (UserTransaction)new
InitialContext().lookup(java:/comp/UserTransaction);
uTrans.begin();
interestAction = new UpdateInterestAction(memberContext, interest, value);
uTrans.commit();

Whether I use this with or without the usertransaction code I always get the
message:
java.lang.IllegalStateException: A CMR collection may only be used within
the transction in which it was created

Am I retrieving the UserTransaction correctly??

Is it possible that I might be getting the UserTransaction from Jetty (the
one with JBoss) which is being used by cactus to host the test class? I know
that to be able to access JBoss's datasource from within a cactus test case
I
needed to add entries into the web.xml and jboss-web.xml files in the war
file
containing the test code. Do I need to do the same to be able to access the
correct UserTransaction?

Currently using JBoss 3.0.3, on Win 2K, accessing Postgres 7.2.2 (using
current stable release of the postgresql's jdbc drivers for 7.2)

Many thanks,

Tim



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] What's JBoss doing to my BASIC authentication?

2002-10-14 Thread Penhey, Tim

I have a war file that contains two JSPs, the first is checker.jsp that does
not have any constraints, and the second is secured.jsp.
The contents of the war file is: 

[tpenhey]86: jar -tf role-test.war 
META-INF/
META-INF/MANIFEST.MF
jsp/
WEB-INF/
jsp/checker.jsp
jsp/secured.jsp
WEB-INF/web.xml

When deployed under just tomcat 4.0.4, the checker.jsp can be seen, but the
secure.jsp brings up the prompt to set username and password (as defined by
the web.xml file below).  The server.xml file has the default memory realm
commented out and a JDBCRealm added in.  Now this all works fine.

However...

I then changed the tomcat4-service.xml file to have a Realm (same JDBCRealm
that the
standalone tomcat used) section in the Engine.   I deploy the war file and
start jboss.

I can see the checker.jsp as expected, but the secured.jsp can be seen
without the browser
bringing up a dialog box asking for authentication details.

After reading through some of the tomcat 4.0.4 source, it appears that if
there is a principal 
object associated with the request then it is considered authenticated, and
so does not
ask.  

Which JBoss bit is inserting an empty principal?
How could I get around it for simple war's?

Thanks,

Tim

--- web.xml ---
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  security-constraint
web-resource-collection
  web-resource-nameSecure JSPs/web-resource-name
  url-pattern/jsp/secured.jsp/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection

auth-constraint
  role-namedeveloper/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodBASIC/auth-method
realm-nameSecured Pages/realm-name
  /login-config

  security-role
role-namedeveloper/role-name
  /security-role
  
/web-app


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Controlling transactions during unit tests

2002-10-08 Thread Tim McAuley

Hi,

I am having a trouble with transactions during one of my unit tests. Someone
might be able to help.

I have some code to update a member's interest in a topic. This will
retrieve the list of current interests, store them in a cache (seperate
collection) and update the specified interest when asked to do so (both in
the cache and to the db currently).

DB Layout: Member 1 - N MemberInterest N - 1 Interest

This call will be made through a session bean under normal operation but for
the moment I would like to test it seperately (using Cactus).

Currently I get an exception, with the message:
A CMR collection may only be used within the transction in which it was
created

This happens when I want to load the list of member interests into a cache.
This is done by retrieveing the cmr collection and then iterating through it
to create a seperate collection in cache.

How can I get this to run within the same transaction using cactus, like it
would under normal operation using a session bean (I presume)?

I have tried this code (within the unit test) but it does not seem to help:
uTrans = (UserTransaction)new
InitialContext().lookup(java:/comp/UserTransaction);
uTrans.begin();
// Create the action... which will create the interest cache on
first call
interestAction = new UpdateInterestAction(memberContext,
interest, value);
uTrans.commit();

This is the only reference I could find on the web to a similar problem...
and suggesting to make sure to run everything within a usertransaction.
http://www.jboss.org/forums/thread.jsp?forum=46thread=20507message=3738688
#3738688

I am using JBoss 3.0.2, on Win 2K, accessing Postgres 7.1.3

Many thanks,

Tim



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] best primary key generator method

2002-07-25 Thread McAuley, Tim

Hi,

Someone has asked me this question so I thought I'd pass it on.

Currently for primary key generation we're using a pattern described in the
EJB Design Patterns book.
http://www.theserverside.com/books/EJBDesignPatterns/index.jsp

In brief
- the entity bean in question will query a stateless session bean
for the next PK. 
- The stateless session bean has a block of numbers available and
returns the next number in the block.
- If the session bean's block has been used up, it will
create a new block by requesting the 
  latest PK from a sequence table in the database (via an
entity bean), and incrementing this value.

It seems to work very well so far. The interaction with the DB is kept to a
minimum due to the caching of PKs using the stateless session bean and it is
not possible to duplicate keys in a clustered environment because each
stateless session bean holds a unique block (taken from the database).

My question is this. How does this compare to using JBoss's own PK generator
class? Might the JBoss solution offer a more efficient option? AND... how
might this compare to, say, Weblogic's autoprimarykey option.

Any information greatly received.

Thanks,

Tim


___

emuse technologies
Hanover Quay
Dublin 2
Ireland

Tel:  353-1-671-7317
Fax:  353-1-671-7319

website: http://www.emusetechnologies.com/
email: mailto:[EMAIL PROTECTED]
___

This message has been scanned for viruses using GroupShield 4.5 for Exchange
Server 5.5

CONFIDENTIALITY NOTICE - The information contained in this email message is
intended only for confidential use of the named recipient. If the reader is
not the intended recipient or the person responsible for delivering it to
the recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination or copying of this
communication is strictly prohibited. If you have received this in error,
please notify the sender immediately.
 


---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] What is the CVS Password for anonymous user?

2002-06-21 Thread Tim Fox

are you behind a firewall? - if so you need to open port 2401

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Dain
 Sundstrom
 Sent: 21 June 2002 00:00
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] What is the CVS Password for anonymous user?
 
 
 You can try the source forge cvs documentation.
 
 http://sourceforge.net/docman/?group_id=1
 
 -dain
 
 Douglas Su wrote:
  I tried blank (press enter) and also I've looked at the 
 instruction from 
  JBoss's CVS page as well as the QuickStart.pdf for JBoss 3.0.  I've 
  tried the command on both winCVS and on linux.  I can't login.  The 
  connection gets refuse all the time.  I need to download the latest 
  source of JBoss3.0 which has the CMR fixed.  Any suggestion?
  
  Douglas
  
  
  From: Hunter Hillegas [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: JBoss User [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] What is the CVS Password for anonymous user?
  Date: Thu, 20 Jun 2002 15:32:58 -0700
 
  I think it is blank.
 
  There are CVS instructions on JBoss's CVS page on SourceForge.
 
 
   From: Douglas Su [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   Date: Thu, 20 Jun 2002 14:27:40 -0700
   To: [EMAIL PROTECTED]
   Subject: [JBoss-user] What is the CVS Password for anonymous user?
  
   What is the CVS Password for anonymous user?  In the QuickStart 
  guide it
   says the password is empty but it not.  It doesn't allow me to 
  login.  Any
   suggestion?
 
 
 
  ---
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
  
  
  
  
  _
  Send and receive Hotmail on your mobile device: http://mobile.msn.com
  
  
  
  ---
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 -- 
 
 Dain Sundstrom
 Chief Architect JBossCMP
 JBoss Group, LLC
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] XATxConnectionManager with Oracle?

2002-06-18 Thread Tim

Hi Igor-

Could you tell me which files were added/modified in the patch, because
we're having some real problems getting the cvs version to run, and we
really need the xa transactions?

Thanks


- Original Message -
From: Igor Fedorenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 17, 2002 3:51 PM
Subject: Re: [JBoss-user] XATxConnectionManager with Oracle?


 David,

 I checked Branch_3_0 and it seemed to work. I completely agree that
 XidFactory is more elegant and flexible solution then hardcoded change
 to XidImpl. One suggestion though -- I would add comment about
 XidFactory mbean and its Pad attribute into sample
 oracle-xa-services.xml, otherwise it is not obvious how to configure
 this thing and invalid transaction id exception thrown during
 conn.close() does not add clarity ;-)

 David Jencks wrote:
  Many many thanks.
 
  I checked in the config file and applied the XAManagedConnection patch.
  Instead of applying the changes to Xid handling I changed Xid creation
to
  be done through a factory mbean.  You can configure the factory with the
  pad boolean property to specify if the xid's are of maximum size.  In
  jboss 3, this mbean config is in the main jboss-service.xml file.  In
3.1
  it will be in a separate tm-service.xml file.
 
  Can you please check whether or not my reinterpretation of the patches
  still works?  If so I will clean up the XidFactory interface a bit and
port
  the changes to 3.1 as well.
 
  Thanks!
 
  david jencks
 
  On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote:
 
 Attached, please fine a patch which fixes problems with Oracle XA driver
 I
 have described earlier and example configuration file. The patch is
 against
 JBoss_3_0_0 cvs tag (branch?). Hope this helps.
 
 PS: sorry for html posting
 
 -Original Message-
 From: Igor Fedorenko [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 4:06 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: [JBoss-user] XATxConnectionManager with Oracle?
 
 
 Thanks for a helpful hint, David. As you correctly guessed my test ssb
 was
 leaking sql connections. I'll post my patch and config files here
 shortly.
 
 -Original Message-
 From: David Jencks [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 2:01 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] XATxConnectionManager with Oracle?
 
 
 Thanks for your work on this. Please post the results when you are
 satisfied.  IMO the entire xa wrapper needs replacing which I
 unfortunately
 won't have time for soon.  I'm not sure if associateConnection can be
 implemented easily.  You can avoid it being called if you always close
 connection handles before calling other ejb methods (through
 home or remote
 interfaces) (and do not hold connections over method
 boundaries).  So, try
 this:
 
 Connection c = myds.getConnection();
 //do something
 c.close()
 myotherRemoteInterface.doSomethingElse();
 c = myds.getConnection();
 //do the rest of your work
 c.close();
 
 david jencks
 
 On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote:
 
 I spent last two days trying to make this work and it looks
 
 like there
 
 are
 number of issues with both oracle xa datasource and jboss
 
 itself. I am
 
 getting close to have this configuration work (it's oracle
 
 8.1.7.3 in my
 
 case but this should not make big difference). Problems that I've
 seen/fixed
 so far
 
 1. Oracle xa driver returns difference XAResource for each call to
 XAConnection.getXAResource (see specs jdbc 2.0, section 7.2.2 why it
 should
 not). This problem causes xaRes not enlisted. Fixed
 
 XAManagedConnection
 
 to
 cache XAResource, this fix should not break anything else.
 
 2. Although oracle xa driver accepts non-oracle Xid object,
 
 it seems to
 
 require that both getGlobalTransactionId and
 
 getBranchQualifier always
 
 return byte[64], otherwise it throws invalid transaction id during
 XAResource.end. Fixed XidImpl to return such arrays, not
 
 sure if it will
 
 work with all resource managers.
 
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN
 HTML
 HEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1
 META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.45
 TITLERE: [JBoss-user] XATxConnectionManager with Oracle?/TITLE
 /HEAD
 BODY
 
 PFONT SIZE=2Attached, please fine a patch which fixes problems with
 Oracle XA driver I have described earlier and example configuration
file.
 The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this
 helps./FONT/P
 
 PFONT SIZE=2PS: sorry for html posting/FONT
 /P
 
 PFONT SIZE=2-Original Message-/FONT
 BRFONT SIZE=2From: Igor Fedorenko [A

HREF=mailto:[EMAIL PROTECTED];mailto:ifedorenko@thinkdynamics
.com/A]/FONT
 BRFONT SIZE=2Sent: Friday, June 14, 2002 4:06 PM/FONT
 BRFONT SIZE=2To: '[EMAIL PROTECTED]'/FONT
 BRFONT SIZE=2Subject: RE: [JBoss-user] XATxConnectionManager with
 Oracle?/FONT
 /P
 BR
 
 PFONT SIZE=2Thanks for a helpful hint, David. As you correctly
 guessed my test ssb was 

Re: [JBoss-user] XATxConnectionManager with Oracle?

2002-06-18 Thread Tim

Thanks for that.

Basically I checked out the 3_0_0 branch, and built it, and couldn't even
get my non xa application (which works on 3.0.0 final release) working - I
was getting NoSuchMethodErrors from the ear deployer.

I guess I was doing something wrong and it was late and I was in a rush so
I'd thought it might just be easier to patch the files directly onto our
working codebase, hence the question.

I shall try again tomorrow with a clearer head and see if I get the same
effect

- Original Message -
From: Igor Fedorenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 9:18 PM
Subject: Re: [JBoss-user] XATxConnectionManager with Oracle?


 Tim,

 Basically, I did two things (see attached diff)

 1. In

connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnection.ja
va
 I added caching of XAResource

 2. In server/src/main/org/jboss/tm/XidImpl.java I changed
 getGlobalTransactionId() and getBranchQualifier() to always return
 64-byte arrays. Devid reinterpreted this change slightly, he added xid
 factory which can be configured to create correct xids (I mean, correct
 from oracle's point of view).

 You should be able to apply the diff to JBoss_3_0_0 (cvs -z3 co
 -rJBoss_3_0_0) which I assume corresponds to jboss 3.0.

 Btw, what are these real problems you are talking about? Are they
 related to setting oracle xa driver or Branch_3_0 has some other issues?

 Tim wrote:
  Hi Igor-
 
  Could you tell me which files were added/modified in the patch, because
  we're having some real problems getting the cvs version to run, and we
  really need the xa transactions?
 
  Thanks
 
 
  - Original Message -
  From: Igor Fedorenko [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 17, 2002 3:51 PM
  Subject: Re: [JBoss-user] XATxConnectionManager with Oracle?
 
 
 
 David,
 
 I checked Branch_3_0 and it seemed to work. I completely agree that
 XidFactory is more elegant and flexible solution then hardcoded change
 to XidImpl. One suggestion though -- I would add comment about
 XidFactory mbean and its Pad attribute into sample
 oracle-xa-services.xml, otherwise it is not obvious how to configure
 this thing and invalid transaction id exception thrown during
 conn.close() does not add clarity ;-)
 
 David Jencks wrote:
 
 Many many thanks.
 
 I checked in the config file and applied the XAManagedConnection patch.
 Instead of applying the changes to Xid handling I changed Xid creation
 
  to
 
 be done through a factory mbean.  You can configure the factory with
the
 pad boolean property to specify if the xid's are of maximum size.  In
 jboss 3, this mbean config is in the main jboss-service.xml file.  In
 
  3.1
 
 it will be in a separate tm-service.xml file.
 
 Can you please check whether or not my reinterpretation of the patches
 still works?  If so I will clean up the XidFactory interface a bit and
 
  port
 
 the changes to 3.1 as well.
 
 Thanks!
 
 david jencks
 
 On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote:
 
 
 Attached, please fine a patch which fixes problems with Oracle XA
driver
 I
 have described earlier and example configuration file. The patch is
 against
 JBoss_3_0_0 cvs tag (branch?). Hope this helps.
 
 PS: sorry for html posting
 
 -Original Message-
 From: Igor Fedorenko [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 4:06 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: [JBoss-user] XATxConnectionManager with Oracle?
 
 
 Thanks for a helpful hint, David. As you correctly guessed my test ssb
 was
 leaking sql connections. I'll post my patch and config files here
 shortly.
 
 
 -Original Message-
 From: David Jencks [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 14, 2002 2:01 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] XATxConnectionManager with Oracle?
 
 
 Thanks for your work on this. Please post the results when you are
 satisfied.  IMO the entire xa wrapper needs replacing which I
 unfortunately
 won't have time for soon.  I'm not sure if associateConnection can be
 implemented easily.  You can avoid it being called if you always
close
 connection handles before calling other ejb methods (through
 home or remote
 interfaces) (and do not hold connections over method
 boundaries).  So, try
 this:
 
 Connection c = myds.getConnection();
 //do something
 c.close()
 myotherRemoteInterface.doSomethingElse();
 c = myds.getConnection();
 //do the rest of your work
 c.close();
 
 david jencks
 
 On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote:
 
 
 I spent last two days trying to make this work and it looks
 
 like there
 
 
 are
 number of issues with both oracle xa datasource and jboss
 
 itself. I am
 
 
 getting close to have this configuration work (it's oracle
 
 8.1.7.3 in my
 
 
 case but this should not make big difference). Problems that I've
 seen/fixed
 so far
 
 1. Oracle xa driver returns difference XAResource for each call to
 XAConnection.getXAResource (see specs jdbc 2.0, section

[JBoss-user] How to get XA transactions with oracle datasource

2002-06-14 Thread Tim



The oracle-service.xml in cvs seems to be using 
local transactions. (??)

Does anyone know how to configure it to use xa 
transactions?

I need this to get my data access from inside MDBs 
working.

I've looked at the volunteer docs, but they seem to 
be referring to 2.4.x on this.

Thanks.


Re: [JBoss-user] How to get XA transactions with oracle datasource

2002-06-14 Thread Tim

ok, i shall try on monday

i think someone else posted a message on this subject, but i have only seen
one message - i only recently subscribed to the list

hopefully forums will be up soon :) and it will be easier to communicate

- Original Message -
From: David Jencks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 9:46 PM
Subject: Re: [JBoss-user] How to get XA transactions with oracle datasource


 I've been asking for months for someone with Oracle to please contribute
an
 xa configuration, with so far no takers.

 david jencks

 On 2002.06.14 14:45:40 -0400 Tim wrote:
  The oracle-service.xml in cvs seems to be using local transactions. (??)
 
  Does anyone know how to configure it to use xa transactions?
 
  I need this to get my data access from inside MDBs working.
 
  I've looked at the volunteer docs, but they seem to be referring to
2.4.x
  on this.
 
  Thanks.
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  HTMLHEAD
  META http-equiv=Content-Type content=text/html; charset=iso-8859-1
  META content=MSHTML 6.00.2712.300 name=GENERATOR
  STYLE/STYLE
  /HEAD
  BODY bgColor=#ff
  DIVFONT face=Arial size=2The oracle-service.xml in cvs seems to be
  using
  local transactions. (??)/FONT/DIV
  DIVFONT face=Arial size=2/FONTnbsp;/DIV
  DIVFONT face=Arial size=2Does anyone know how to configure it to use
  xa
  transactions?/FONT/DIV
  DIVFONT face=Arial size=2/FONTnbsp;/DIV
  DIVFONT face=Arial size=2I need this to get my data access from
  inside MDBs
  working./FONT/DIV
  DIVFONT face=Arial size=2/FONTnbsp;/DIV
  DIVFONT face=Arial size=2I've looked at the volunteer docs, but they
  seem to
  be referring to 2.4.x on this./FONT/DIV
  DIVFONT face=Arial size=2/FONTnbsp;/DIV
  DIVFONT face=Arial size=2Thanks./FONT/DIV/BODY/HTML
 

 ___

 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jms transaction problem - local and xa transactions

2002-06-13 Thread Tim



I am accessing some entity beans (cmp) from the 
onmessage() method of a message driven bean.
The mdb has a transaction attribute of 
"Required".

If I do something like the following in the 
onmessage() method:

//Create a new orderOrderLocal order = 
orderHome.create(...);//Create some order-itemsfor (int i = 0; i 
 20; i++){OrderItemLocal orderItem = 
orderItemHome.create(...);}
//Now try and iterate through the itemsIterator 
iter = order.getItems().iterator();The call to getItems() leads to an 
exception being thrown from the call to getItems() saying that the transaction 
has expired.

When I change the transaction attribute to 
"NotSupported"

JBoss gives me the following warning on the call to 
getItems()

2002-06-12 16:15:53,913 
WARN[org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener][Thread 
Pool Worker-0] prepare called on a local tx. You arenot getting the 
semantics you expect!

So it seems that one of the resources is 
using local transactions - consequently the transactions aren't being linked up 
and the calls to the entity beans are causing new transactions to be 
created.

But i do not know whether it is jms or the database 
doing this.

I guess there is someway to configure jms and 
the jdbc resources to use xa transactions but i can't figure out how, basically 
i am very confused :(

anyone know the answer, or can shed some 
light on what is going on?

thanks in advance.



RE: [JBoss-user] CreateException from ejbPostCreate method?

2002-06-13 Thread McAuley, Tim

Hiya,

 
 Did you declare CreateException for both the ejbCreate and 
 ejbPostCreate 
 methods? Do they both define the exact same exception 
 declarations?  

Yes to both of the above.

 Can 
 you post a bug report the reproduces the UndeclaredThrowableException.
 

I will do so tomorrow if it is still needed.

I tried it on JBoss 3.0.0 full release and got the same behaviour.

I have just tried it now on JBoss 3.1.0alpha but a good few other things
broke so I can't tell you the outcome of that test.
(java.lang.NoSuchFieldError: testData)

I saw your later posts. The beans I am testing are local entity beans. This
may explain the problem if a RemoteException is being generated for this.

All the best!

Tim

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CreateException from ejbPostCreate method?

2002-06-12 Thread McAuley, Tim

Hello,

I am currently running through implementing some junit tests for some entity
beans. For one of the tests I want to make sure that creating a duplicate
entry in the database fails. The entry looks something like this:

Entry:
EmployeeID = 3
CompanyUnit = 10

Both of the attributes are foreign keys (set-up using relationships) and are
set in the ejbPostCreate method of the entity bean. A unique index has been
set-up on the database for these two columns.

Unfortunately, when I try to enter a duplicate entry into the database I do
not receive a CreateException but a
java.lang.reflect.UndeclaredThrowableException.

Is there anyway I can wrap this exception up into a CreateException or do I
not have any choice in the matter.

I am using Windows NT 4 and currently jboss 3.0.0 RC2.

Many thanks,

Tim

___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CreateException from ejbPostCreate method?

2002-06-12 Thread McAuley, Tim

 
 Did you declare CreateException for both the ejbCreate and 
 ejbPostCreate 
 methods? Do they both define the exact same exception 
 declarations? 

As far as I know they do. Both ejbCreate, ejbPostCreate and create (under
LocalHome) throw CreateException.

 Can 
 you post a bug report the reproduces the UndeclaredThrowableException.


Will do, but it might take a day or two. 

I'll try out the latest version(s) of Jboss first. Our configuration files
need to be slightly updated to work with the new version, hence I have not
used it so far.

Thanks for the replies.

Tim

___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Log4J Problem!!! Please HELP ME

2002-06-03 Thread Tim Freund

I usually do something like this... put a log4j properties file in your
application e/j/war file, and somewhere in the initialization of the
application do this:

(sorry for the poor formatting)

private void init(){
ResourceBundle bundle = ResourceBundle.getBundle(com.kcp.sso.log4j);
Properties props = new Properties();
String tempKey = null;
for (Enumeration resourceKeys = bundle.getKeys();
resourceKeys.hasMoreElements();) {
tempKey = (String)resourceKeys.nextElement();
props.setProperty(tempKey, bundle.getString(tempKey));
} // end of for ()
bundle = null;
tempKey = null;

PropertyConfigurator.configure(props);
}


That way, as long as log4j is in the classpath of the app server, the
application can configure itself.

Tim 

On Mon, 2002-06-03 at 11:39, [EMAIL PROTECTED]
wrote:
 
 
 It seems like it would be easier, from a developer's point of view,
 to deploy your J2EE package without requiring the user to modify
 files outside of your ear, war or jar package. It would be nice for
 each app to include their own log4.properties files in their package.
 This way I should in theory just be able give my package to my
 customers and they just need to add it to their deploy directories.
 
 
 
 hth,
 danch
 
 [EMAIL PROTECTED] wrote:
 I have a problem in JBoss2-4.4. I have several bean that use log4j to log
 some aplication event. Thats beans work fine in JBoss-2.2, but when I try
 to use JBoss-2.4.4 I get an error:
 java.rmi.ServerException: RemoteException occurred in server thread;
 nested exception is:
  java.rmi.ServerException: Transaction rolled
 back:org/apache/log4j/Category
 java.rmi.ServerException: Transaction rolled
 back:org/apache/log4j/Category
 I try to enable and disable the Log4jService but nothing happen.
 I used my own category file.
 
 Operation System: HP-UX 11
 JDK: 1.3
 
 What can I do to solve my problem? I need to solve it quickly.
 
 Please Help.
 Regards.
 Alejandro
 
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 --
 
 =
 Disclaimer:
 All statements are my own, personal opinions and have nothing to do
 with the opinions of employer, wife, or cat. They may not have anything
 to do with objective reality, as a matter of fact. Your Milage May
 Vary, Excludes Delivery Charges, etc.
 =
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
-- 
Timothy Freund
IT System Engineer
Honeywell Federal Manufacturing  Technologies


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] unsubscribing

2002-05-23 Thread Tim Yates

 Hi,

Hi,

 how can I unsubscribe me from this mailing list?

Follow the link at the bottom of the email:

 JBoss-user mailing list
 ...
 https://lists.sourceforge.net/lists/listinfo/jboss-user

It is at the bottom of the page that links to?  I think you enter your email
address, and change options...

Thought that worked...

Good luck

Tim.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss and jbunit

2002-04-25 Thread McAuley, Tim

I have fixed the problem.

It was very simple in the end but took a little time for me to figure out.

The problem was the fact that I was using one of the DB connections from the
JBoss managed pool. This pool of connections was under the control of a
transaction manager and therefore any operations do not necessarily commit
straight away.

The two choices I had were to setup a second datasource, not under
transaction management, or to run the command:
connection.getConnection().commit() before I closed the connection.

A very simple solution, and probably highlighting my lack of experiences
with databases! ;-)

I might implement the first option at a later date, but as always, there's
other work to be done!

All the best,

Tim 

 
 
  Hi,
 
 I don't know if anyone here has used jbunit 
 (http://dbunit.sourceforge.net/)
 with JBoss but if anyone has I'd appreciate some help.
 
 I am trying a simple operation to populate the database with 
 data from the
 jbunit dataset from within a testcase (running within jboss, 
 using cactus).
 
 Initially I found that it would run but no data would appear 
 in the DB.
 Looking at the DB logs I saw that all the operations were 
 being roled back,
 but no errors were appearing from my testcase. I was using a 
 DB connection
 from the Jboss pool (PostgresDS).
 
 I then tried it again but this time making a database 
 connection manually.
 This worked okay. I have since tried several different 
 methods and have
 found the following:
 - It'll work fine when using a database connection manually created.
 - It'll fail when trying to use a DB connection from JBoss's Postgres
 datasource pool.
 
 Has anyone used jbunit before and would they have any advice? 
 I am assuming
 it's a problem caused by the fact that an external (if you 
 could call it
 that) entity is trying to use JBoss DB connections.
 
 More information can be found from my post to the jbunit mailing list:
 http://www.geocrawler.com/lists/3/SourceForge/20449/0/8463589/
 and a follow up at:
 http://www.geocrawler.com/lists/3/SourceForge/20449/0/8471840/
 
 I am currently trying to change the current commit option 
 used by JBoss but
 this is the first time I have really looked at this, so it'll 
 take me a
 little while to figure it out.
 
 Any ideas, advice would be appreciated!
 
 All the best,
 
 Tim
 
 
 



msg15551/bin0.bin
Description: application/ms-tnef


RE: [JBoss-user] problem with LoginModule

2002-04-17 Thread McAuley, Tim

I had the same (or at least similar) problem. 

From a recent version of JBoss beta2 (about 2 weeks ago) I found I needed to
add some security settings for accessing the database. These I added into
auth.conf, by duplicating the entry for DefaultDbRealm that was in that file
and produced:

// Security domain for testing new jca framework
PostgresDbRealm {
//  
//  Security domain for new jca framework. 
// One per ManagedConnectionFactory are required.
org.jboss.resource.security.ConfiguredIdentityLoginModule required
principal=postgresuser
userName=postgresuser
password=password
 
managedConnectionFactoryName=jboss.jca:service=LocalTxCM,name=PostgresDS
;
};

When I switched to RC1 I began getting security errors.

After a while of messing about I found the settings had been moved from
auth.conf to login-config.xml, like so:

!-- Security domains for testing new jca framework --
application-policy name = PostgresDbRealm
   authentication
  login-module code =
org.jboss.resource.security.ConfiguredIdentityLoginModule
 flag = required
 module-option name = principalpostgresuser/module-option
 module-option name = userNamepostgresuser/module-option
 module-option name = passwordpassword/module-option
 module-option name =
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=PostgresDS/
module-option
  /login-module
   /authentication
/application-policy

Once I reset auth.conf to the RC1 version and setup login-config.xml
correctly everything was fine. I didn't need to add in users.properties or
roles.properties.

This may or may not help you, but it worked for me fine. 

Yes, it would be nice to have access to updated docs... or even basic
release notes to point out these things, but aside from that you're getting
a lot from JBoss and we just have to be patient sometimes.

Cya

Tim


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ren Weili
 Sent: 17 April 2002 07:19
 To: Jboss-User (E-mail)
 Subject: [JBoss-user] problem with LoginModule
 
 
 Hi all,
   my old .ear worked fine with jboss-3.0.0beta.
   in jboss-3.0.0RC1, it first complained with 
 NullPointerException.
   After I have read the user-maillist, I removed all ejb 
 interfaces in
 .war file.
   then it complained SecurityException. and in the JBoss 
 Console, it
 said can not find users.properties and roles.properties.
   I followed the description in
 jboss-3.0.0RC1/server/default/conf/login-config.xml, created 
 the 2 files
 with same line :
   unauthenticatedIdentity=nobody
   
   finally it appears in the browser :
   getAll failed due to: java.lang.SecurityException:Invalid
 authentication attempt, principal=null; nested exception is:
 javax.ejb.EJBException: getAll failed due to:
 java.lang.SecurityException:Invalid authentication attempt, 
 principal=null
 
   what can I do ?
   Hope the Manual for 3.0.0 can be updated not too late.
 
 
   thanks to any answer.
 
 Mit freundlichen Gruessen
 Ren Weili  
 mailto:[EMAIL PROTECTED]
 TEL   : 0086-21-695-62686
 FAX   : 0086-21-595-77922
 SVW CS *-1
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] custom finder help with cmp2.0

2002-04-02 Thread McAuley, Tim

Hi,

I was wondering if people could give me some pointers in relation to custom
finders in JBoss 3.0.0beta2.

The query I want to implement is:

SELECT member_fk FROM member_dialog_cluster GROUP BY member_fk HAVING COUNT
(member_fk)  5;
(i.e. to select all members from member_dialog_cluster where their entry
occurs more than 5 times.)

Having looked at the various options, I have some queries.

1)  In terms of implementing the finder method in code:
a) Do I need to manually make a DB connection, or can I use one of
the pooled connections. If so, how to I get access to this connection?

b) I want to return a Set of member local objects to the user. The
sql call retrieves a list of primary keys from the DB. Will the container
map these for me, or will I have to do a findByPrimaryKey on each PK...
(gulp! Hope not!)

2)  In terms of implementing this method in jbosscmp-jdbc.xml, how do I
do it?
i.e. declared-sql seems unsuitable because I am not using WHERE and
I'm not exactly sure what to place in the query.
  query
descriptionGet member's with low queue/description
query-method
  method-nameejbFindByQueueState/method-name
  method-params/
/query-method
???
  /query
/entity

3)  Overall... what is the suggested way of doing this?
- I would ideally like the code to be as portable as possible, for
comparing performance to other app servers with minimal code changes. 

- I want to keep the code manageable i.e. steering clear of BMPs
would be nice.

4)  I don't suppose ejb-ql might be refined some time to help with this
call? Might jboss-ql help?

Many thanks,

Tim

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-02 Thread McAuley, Tim

Which version of JBoss are you using?

My advise is firstly to make sure you're using a copy of the service file
applicable to the version of JBoss you're using. 

- Make a copy of hsqldb-default-service.xml and rename it to
postgres-service.xml. 
- Modify the relevent sections for use with Postgres i.e.
- jdbc driver, datasource name (if not default)
- database to access, and username password
(possibly the location of the postgres jar file needs to be added
in).

If you let me know what version of JBoss you have, I might be able to send
you a copy of my postgres service file. I have been using alpha, beta and
beta2 (26/03)

Tim


 
 I havent been successful in get PostgreSQL to be used
 for CMP in my entity EJB running on JBoss 3.0.0.
 Can anyone show some light in the areas I am may have
 overlooked or if possible a step by step listing of
 what I is required to get PostgreSQL being used for
 CMP.
 Thank you all in advance.
 
 Allan Kamau.


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-02 Thread McAuley, Tim

oh apologies...

I have just seen that this file was the CVS version... hmmm, thanks. I might
compare them and see how my modifications worked.
;-)

Cheers,

Tim

 A better solution is get the 3.0 postgresql-service.xml from 
 the public 
 documentation on the database setup: 
  http://jboss.org/online-manual/HTML/ch03s12.html and modify 
 it for your 
 setup.  (Change the server address, username, password, etc.)
 You can just dump the postgresql.jar file into the deploy 
 directory to 
 make it accessible.

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP in EJB2.0 with Postgres

2002-04-02 Thread McAuley, Tim

Hi,

I remember initially trying to use examples from the web for alpha and
having troubles. When I, instead, modified the hsqldb appropriately, it
worked fine first time.

I have also found that that particular file has changed a bit from alpha to
beta2. It's also much nicer to read, mostly XMLified.

Another thing I did was to place the postgres jar file into ext rather
than deploy. 

It works for me anyway and I find it safer to do it this way rather than
using outdated examples on the web. (same applies to the XML files... I have
now got into the habit of validating them against the latest DTDs and it has
saved me some hours of tinkering to say the least).

Just my tuppence worth (ah... 2 cent worth I guess... darn Euro).
;-)

Cya

Tim
 
 
 This is probably not the best way to do this, though, since 
 hypersql's 
 setup is different from a standard JDBC driver.  (The 
 database runs in 
 the same VM as JBoss)
 A better solution is get the 3.0 postgresql-service.xml from 
 the public 
 documentation on the database setup: 
  http://jboss.org/online-manual/HTML/ch03s12.html and modify 
 it for your 
 setup.  (Change the server address, username, password, etc.)
 You can just dump the postgresql.jar file into the deploy 
 directory to 
 make it accessible.
 

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss beta, foreign key mapping

2002-03-27 Thread McAuley, Tim

Hi,

Just signed on and I have a question?

Has any had problems with the foreign key mapping in JBoss beta and beta2
(Last nights)?

I can't seem to get it to work. It works in alpha okay. 

I tried validating the jbosscmp-jdbc file against the latest dtd (from cvs)
and changed a few things i.e. foreign-key-fields is now key-fields but to no
avail.

Is this broken currently?

Cheers!

Tim

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss beta, foreign key mapping

2002-03-27 Thread Tim McAuley

Hi,

Just signed on and I have a question?

Has any had problems with the foreign key mapping in JBoss beta and beta2
(Last nights)?

I can't seem to get it to work. It works in alpha okay.

I tried validating the jbosscmp-jdbc file against the latest dtd (from cvs)
and changed a few things i.e. foreign-key-fields is now key-fields but to no
avail.

Is this broken currently, or has anyone else experienced similar problems?

Cheers!

Tim


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Background process

2002-03-06 Thread Tim Yates

This page in the manual explains how to write something which will be called
by the Timer bean

http://www.jboss.org/online-manual/HTML/ch13s55.html

So you can set the timer to post a message to the MDB every 10 minutes or so

Then, this page:

http://www.jboss.org/online-manual/HTML/ch08s20.html

Explains how to write a Message Driven Bean.  Your User events can also post
messages to this bean, and it will deal with them in order and in the
background...

I believe they do work with JBoss 2.4.4.

We are using 2.4.3, and they work fine (we use an MDB for Creating Search
indexes of our content)

(till development gets to a stage where we can update to a later version,
and know it is that causing the bugs, not our code) =)

Hope this helps...  I haven't been developing this side of the product, but
I might be able to get the guy who has to copy and paste a snippet of code
or three if you need more assistance =)

Good Luck!!

Tim.

- Original Message -
From: Loïc Lefèvre [EMAIL PROTECTED]
To: JBoss User Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 06, 2002 4:22 PM
Subject: RE: [JBoss-user] Background process


 First a question: MDB are supported by JBoss 2.4.4?
 I don't know this concept, have you an url?

 Well I'm going to explain...

 I need a background process to manipulate EJBs.
 Let's take my example: an AI background process manages the
 weather and virtual people. This process needs to change
 EJBs properties quickly and to manages modifications from
 users (the virtual people have to search for guards if
 a user attacks them...).

 Indeed, the thread will awake at regular intervals but
 when an user event occurs too...

 Thanks in advance,
 Loïc

 -Message d'origine-
 De: Tim Yates [mailto:[EMAIL PROTECTED]]
 Envoyé: mercredi 6 mars 2002 17:04
 À: Loïc Lefèvre
 Objet: Re: [JBoss-user] Background process


 How about a MessageDriven Bean (MDB)?

 Or I believe there is a Timer bean, which you can get to call your bean at
 regular intervals...

 Tim.

 - Original Message -
 From: Loïc Lefèvre [EMAIL PROTECTED]
 To: JBoss User Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, March 06, 2002 3:12 PM
 Subject: [JBoss-user] Background process


  Hi,
  Could someone tell me the best way to implement a background
  process (a thread) that has access to some EJBs (server side).
  The code of this process must be in the ear archive.
 
  Currently, I have only two ideas:
  - Run my thread in the init method of a servlet.
  - Run my thread in a static block of an EJB (I know it's very bad).
 
  Regards,
  Loïc Lefèvre
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss Temp File Problem

2002-02-13 Thread Tim Sheridan

Has anyone had problems creating temp files inside the container? Below is
the source code snippet and the resulting message from JBoss when I attempt
save a file created with the File.createTempFile() method. It appears that
the JBoss 'bin' folder is prepended to the path I give as a parameter on
this method. Is the a bug in JBoss or am missing something like setting a
property? I'm running on Win2K, JBoss 2.4.4 w/Tomcat.

Thanks,
Tim Sheridan

Source:
 try
 {
 // create the file
 pdfFile = File.createTempFile( HelloWorld, .pdf, new File( 
/temp ) );

 // log debugging statement
 LOG.debug( pdfFile );

 // save the pdf
 document.savePDF( pdfFile.getAbsolutePath() );
 }
 catch( IOException exception )
 {
 throw( new CommandException( exception ) );
 }

JBoss:
  [java] [INFO,Default] java.io.FileNotFoundException: 
C:\develop\jboss\bin\C:\temp\HelloWorld1360.pdf (The filenam
e, directory name, or volume label syntax is incorrect)
  [java] [INFO,ServiceProxy] deleting service proxy
  [java] [ERROR,RenderService] BEAN EXCEPTION:
  [java] javax.ejb.EJBException: null
  [java] Embedded Exception

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-User] Problem with Applets and Security

2002-01-29 Thread Tim Yates

Hi Everybody!!

  Hopefully this is a quick one...  We are using the JBoss 2.4.3/Tomcat
3.4.3 package, and are trying to deploy a client Applet which can interact
with our EJBs.  However, no matter what I try, I keep getting the Exception:

java.security.AccessConterolException: access denied (java.io.FilePermission
\C:\version2\dist\TeamNetBuild\jboss\conf\tomcat\- read)

Now, I remember this was a problem about 6 months ago, as the applet should
not be trying to access the file properties.  For one they do not exist on
the machine that the applet is running on...

Has this bug crept back into 2.4.3?  Is it fixed in a later version?  Has
anyone managed to get Applets to work as client apps?

Hehe, I hope so, as otherwise I am going to have to serialize objects to a
servlet...  hee hee

Hope someone can help!

Thank-you very much!

Tim Yates
Java Developer
Team Netsol Ltd.


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-User] Problem with Applets and Security

2002-01-29 Thread Tim Yates

Actually

After peeking at the forums, it appears that the Applet - Servlet - EJB
way is the way to go...  So that we can guarantee we aren't going to get any
firewall problems along the way...

Hehehe...where's my Servlet book...

Thanks anyway :-)

Tim.

- Original Message -
From: Tim Yates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 5:22 PM
Subject: [JBoss-User] Problem with Applets and Security


 Hi Everybody!!

   Hopefully this is a quick one...  We are using the JBoss 2.4.3/Tomcat
 3.4.3 package, and are trying to deploy a client Applet which can interact
 with our EJBs.  However, no matter what I try, I keep getting the
Exception:

 java.security.AccessConterolException: access denied
(java.io.FilePermission
 \C:\version2\dist\TeamNetBuild\jboss\conf\tomcat\- read)

 Now, I remember this was a problem about 6 months ago, as the applet
should
 not be trying to access the file properties.  For one they do not exist on
 the machine that the applet is running on...

 Has this bug crept back into 2.4.3?  Is it fixed in a later version?  Has
 anyone managed to get Applets to work as client apps?

 Hehe, I hope so, as otherwise I am going to have to serialize objects to a
 servlet...  hee hee

 Hope someone can help!

 Thank-you very much!

 Tim Yates
 Java Developer
 Team Netsol Ltd.


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] MDB Deployment Problem

2002-01-25 Thread Tim Sheridan

Hello,

I'm using JBoss 2.4.4 and I'm a rookie at this stuff. I'm getting the
following problem when I start JBoss after deploying my MDB:

[INFO,ContainerFactory] Deploying RenderService
[WARN,JMSContainerInvoker] destination not found: queue/RenderService
reason: javax.naming.NameNotFoundException: Render
Service not bound
[WARN,JMSContainerInvoker] creating a new temporary destination:
queue/RenderService

Here is the JAR descriptor:

ejb-jar
   enterprise-beans
  message-driven
 ejb-nameRenderService/ejb-name
 
ejb-classchoreo.server.message.render.RenderServiceBean/ejb-class
 transaction-typeContainer/transaction-type
 acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
 message-driven-destination
destination-typejavax.jms.Queue/destination-type
 /message-driven-destination
 resource-ref
res-ref-namejava:comp/env/jms/QCF/res-ref-name
res-typejavax.jms.QueueConnectionFactory/res-type
res-authContainer/res-auth
 /resource-ref
  /message-driven
   /enterprise-beans
/ejb-jar

Here is the JBoss descriptor:

jboss
enterprise-beans
message-driven
ejb-nameRenderService/ejb-name
 
destination-jndi-namequeue/RenderService/destination-jndi-name
resource-ref
res-ref-namejava:comp/env/jms/QCF/res-ref-name
jndi-nameQueueConnectionFactory/jndi-name
/resource-ref
/message-driven
/enterprise-beans
/jboss

I am trying to do my own MDB following those documented in the (PDF) book
and the examples. Any help would be greatly appreciated.

Thanks,
Tim Sheridan

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] MDB Deployment Problem

2002-01-25 Thread Tim Sheridan

That is exactly what the problem was. Thanks for pointing me in the right
direction!

There are those who call me ... Tim?

-Original Message-
From: Dave Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 2:58 PM
To: Tim Sheridan
Cc: '[EMAIL PROTECTED]'
Subject: Re: [JBoss-user] MDB Deployment Problem


The queues have to be configued as MBeans at jboss startup time. I'm 
using 3.0 but something like ..

mbean code=org.jboss.mq.server.QueueManager
name=jboss.mq:service=Queue,name=RenderService
/mbean

You will have to look for  an example on 2.4.4.




Tim Sheridan wrote:

 Hello,
 
 I'm using JBoss 2.4.4 and I'm a rookie at this stuff. I'm getting the
 following problem when I start JBoss after deploying my MDB:
 
 [INFO,ContainerFactory] Deploying RenderService
 [WARN,JMSContainerInvoker] destination not found: queue/RenderService
 reason: javax.naming.NameNotFoundException: Render
 Service not bound
 [WARN,JMSContainerInvoker] creating a new temporary destination:
 queue/RenderService
 
 Here is the JAR descriptor:
 
 ejb-jar
enterprise-beans
   message-driven
  ejb-nameRenderService/ejb-name
  
 ejb-classchoreo.server.message.render.RenderServiceBean/ejb-class
  transaction-typeContainer/transaction-type
  acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
  message-driven-destination
 destination-typejavax.jms.Queue/destination-type
  /message-driven-destination
  resource-ref
 res-ref-namejava:comp/env/jms/QCF/res-ref-name
 res-typejavax.jms.QueueConnectionFactory/res-type
 res-authContainer/res-auth
  /resource-ref
   /message-driven
/enterprise-beans
 /ejb-jar
 
 Here is the JBoss descriptor:
 
 jboss
 enterprise-beans
 message-driven
 ejb-nameRenderService/ejb-name
  
 destination-jndi-namequeue/RenderService/destination-jndi-name
 resource-ref
 res-ref-namejava:comp/env/jms/QCF/res-ref-name
 jndi-nameQueueConnectionFactory/jndi-name
 /resource-ref
 /message-driven
 /enterprise-beans
 /jboss
 
 I am trying to do my own MDB following those documented in the (PDF) book
 and the examples. Any help would be greatly appreciated.
 
 Thanks,
 Tim Sheridan
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Many Processes spawned by JBoss when running on Linux

2002-01-22 Thread Tim Yates

Try using the IBM Jdk...  This is a known issue with Sun's 1.3 JDK

Hope this helps,

Tim.

- Original Message -
From: Imran Bohoran [EMAIL PROTECTED]
To: Jboss-User (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, January 22, 2002 11:30 AM
Subject: [JBoss-user] Many Processes spawned by JBoss when running on Linux



 Hi all

 I have a JBoss installation running on Red Hat 7.0. When I start my JBoss
 with all my beans there are over 80 processes that's been spawned and each
 process indicates that it uses 35.2 % of memory. Is this normal or am I
 missing something in my configurations. The memory usage shows 100% when
 JBoss is running . Can any one let me know why all these processes are
 spawned. And what is the necessacity for all these processes to be
spawned.
 I really need this information a little quickly. Hoping to receive an
 answer.

 TIA  Cheers

 Imran

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] changing port 8080 to 80

2002-01-16 Thread Tim Yates

Have a look inside jboss.jcml (it used to be in /jboss/conf/tomcat)

I think the port is also defined there 

Hope this helps!!

Tim.

- Original Message - 
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 10:56 PM
Subject: [JBoss-user] changing port 8080 to 80


 I'm accustomed to changing from the default port 8080 to port 80 in the
 server.xml file in the tomcat conf directory.
 
 I have done this now with jboss2.4.4-tomcat4.0.1 in the
 catlina/conf/server.xml and it is still serving on port 8080. Where do I
 change the port option?
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Question about JBOSS/Tomcat JSP

2002-01-16 Thread Tim Yates



You have to make sure that tools.jar (from 
JAVA_HOME/lib) is in your classpath...

Either add it to your classpath (in 
run_with_tomcat), or copy it into /jboss/lib/ext

Tomcat needs this to compile the JSPs

Hope this helps!

Tim.

  - Original Message - 
  From: 
  Scott Salisbury 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, January 16, 2002 3:03 
  AM
  Subject: [JBoss-user] Question about 
  JBOSS/Tomcat JSP
  
  Hello,
  
  I have recently downloaded 
  JBoss-2.4.4_Tomcat-3.2.3.zip and have installed it on a Linux Redhat 7.1 
  box. It all seems to start fine but I can't seem to get any of the JSP 
  samples to work nor can I get a simple JSP and java bean of my own to 
  work. The same JSP and javabean work fine within Tomcat running 
  standalone on a windows 2000 box. Below is the message. It looks 
  like a classpath problem to me. Is there something that needs to be done 
  to get this to work. This is one of the Tomcat samplesI get the same 
  message when I run my own JSP...
  
  Thanks,
  Scott 
  
  
  Error: 500
  Location: /examples/jsp/checkbox/checkresult.jspInternal Servlet 
  Error:javax.servlet.ServletException: sun/tools/javac/Main
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main
	at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)



Re: [JBoss-user] Urgent regarding how to put external jar classes in Jboss2.4.4

2002-01-16 Thread Tim Yates



I thought putting into jboss/lib/ext was 
enough... Have you tried putting them in a dir like /jboss/myJar and then 
adding the jar into the classpath inside run.sh?

Hope this helps, and someone can give you a 
"cleaner" soloution

Tim.

  - Original Message - 
  From: 
  seshusrinivas 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, January 16, 2002 6:51 
  AM
  Subject: [JBoss-user] Urgent regarding 
  how to put external jar classes in Jboss2.4.4
  
  Hi,
  
   
  I want to put my classes as jar files in Jboss2.4.4.So, where i have to 
  put these jar file. If i put all the unjar files in jboss it is able to 
  access
  these files. If i put as jar files in jboss2.4.4 
  in lib\ext directory it is not able to access those files which are in jar 
  file. 
  
   Please let 
  me know the problem immediately as we are in running project.
  
  Thanks,
  
  Bye
  Seshu 
Srinivas


Re: [JBoss-user] JBoss CMP DataType CLOB

2002-01-16 Thread Tim Yates

We use BMP...  CMP didn't work in JBoss 2.2 with Oracle BLOBs...  Not sure
about the latest version...

http://wamoz.com/JDBC_and_Oracle_LOB.asp

helps to explain the code needed in your BMP layer to read and write to
BLOBs...

Tim.

- Original Message -
From: Thieme, Winfried [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 11:09 AM
Subject: [JBoss-user] JBoss CMP DataType CLOB


 Hello!

 Is it possible to use the data type CLOB of an oracle database in
 combination with CMP in JBoss?
 If not, are there any alternatives ?

 Thank you

 Winfried


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] SYDNEY WE ARE ON

2002-01-15 Thread Tim Yates

Thanks Marc for making me laugh for the first time this week :-)

hehehehe

Tim.


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss Deployment Strategy

2002-01-15 Thread Tim Sheridan

Where is an appropriate place to put shared or common code (in the form of
JAR files) that are utilized by session/entity/message beans in JBoss?

Should I deploy all business objects and supporting code in the
JBOSS_HOME/deploy folder or just business logic beans?

What's the best strategy?

Thanks,
Tim Sheridan


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Australia training new price

2001-12-20 Thread Tim Yates

Heheheh, I'd fly to Hungary from the UK for that :)

- Original Message - 
From: Jozsa Kristof [EMAIL PROTECTED]

 Any chance for a free Hungarian training in Budapest? ;)
 
 j/k,
 Christopher
 



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Buy the documentation?

2001-12-04 Thread Tim Yates

The link on the documentation seems to be broke...

Can you still purchase the documentation?

Looking forward to Marc's book too :)  ...roll on march... :)

Tim Yates
Java Developer
Team Netsol Ltd

PS:  The jboss-user shutdown thread was very active about a month or two
ago, and I stated my aprehension about losing the list then... :(

http://www.teamnetsol.com
**
  This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
are addressed.  If you have received this email in error please notify
   [EMAIL PROTECTED]

Team Netsol Limited is incorporated in England and Wales under company
 number 3697370.  Its registered office is at 2-4 Little Peter Street,
 Manchester M15 4PS. +44 (0)161 834 8342
**



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Eternal problem : JBoss 2.4.3 and Log4J

2001-12-03 Thread Tim Yates

Hi, I may be completely off-topic here, but we just had a problem with our
freshly downloaded JBoss 2.4.3, where putting xerces.jar into /lib/ext was
not enough, and we kept getting ClassNotFound exceptions whenever we tried
to use xerces...

We solved this by moving it from /lib/ext to /lib, and adding it to the
classpath in run.sh

I assume the problem is that the MBeans do not end up using the same
classloader as JBoss (which is the one which has added all of the log4j, etc
jars to the classpath)...

If this is nothing to do with the problem described here, please feel free
to ignore me, it just sounded too similar, so I thought I'd stick my oar in
:-)

Cheers,

Tim yates


 I was using jboss 2.2.1 and I didn´t have any problem with my code, but
when
 I installed jboss 2.4.3 I began to get the exception: NoClassDefFoundError
 when I deployed beans that use classes from jar files that are at lib/ext
 like log4j.jar. I also tried different options of classpaths but jboss
 doesn´t startup correctly if you put log4j.jar in your classpath.




___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Multiple emails

2001-11-27 Thread Tim Buchalka

Anyone else getting multiple emails from this list?

I am getting five (count 'em) 5 copies of each message!

I've checked the mail headers and they are all being sent to the same
address (i.e. I have subscribed under 5 separate email addresses!).

It's really only started doing it today, but has occurred on and off a
few times in recent days.

It seems to be doing it consistently now though!

Can anyone let me know if it's happening to them?

Thanks




Tim


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problems when accessing JSP pages

2001-11-14 Thread Tim Yates
Title: problems when accessing JSP pages



You need to ensure that "tools.jar" is either on the 
classpath, or copied into the jboss/lib directory

"tools.jar" is in the JDK distribution

Tim.

  - Original Message - 
  From: 
  Herve 
  Tchepannou 
  To: jboss 
  Sent: Wednesday, November 14, 2001 1:49 
  PM
  Subject: [JBoss-user] problems when 
  accessing JSP pages
  
  I've deployed a .ear application succesfully in JBoss 
  Im now trying to access any JSP of my app but Im receiving 
  the following error: 
  javax.servlet.ServletException: sun/tools/javac/Main 
  


[JBoss-user] Completely off-topic... Apologies now...

2001-10-22 Thread Tim Yates

Hi, sorry abut this...

  Does anyone know where to get hold the binaries of InterServer for Solaris
x86?

  I can't find it, and I have given myself a migrane trying to get Solaris
to build it from the source :-(

  Just wondering if anyone has a pre-built copy I can leech off them..

  Thanks,

  Tim Yates

PS:  Sorry again for spamming the list with this sort of stuff :-(


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Agent in jboss?

2001-10-16 Thread Tim Yates

What you want to write is an MBean (Management Bean)

Have a look here

http://www.jboss.org/documentation/HTML/ch13s32.html

Good Luck!!

Tim.

- Original Message -
From: jquest jquest [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 4:24 PM
Subject: [JBoss-user] Agent in jboss?


 Hi all,
 is it possible to write a part of code that will run as agent in jboss.
 I need to have a task that live in jboss and strarts every 30 min.

 Many thanks in advance.

 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] RE: JNDI question

2001-09-12 Thread Tim Yates

JFYI, the error you had was because this:

  Hashtable props = new Hashtable();
  props.put(Context.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory);
  props.put(Context.PROVIDER_URL, tech2:1099);
  props.put(java.naming.rmi.security.manager, yes);
  props.put(Context.URL_PKG_PREFIXES, org.jboss.naming);

should have been this:

  Hashtable props = new Hashtable();
  props.put(Context.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory);
  props.put(Context.PROVIDER_URL, tech2:1099);
  props.put(java.naming.rmi.security.manager, yes);
  props.put(Context.URL_PKG_PREFIXES, org.jboss.naming);

ie: no quotes round the hash keys...

using the jndi.properties file would fix it too ;-)

Tim

- Original Message -
From: ALex Loubyansky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 9:51 AM
Subject: [JBoss-user] RE: JNDI question


 Sorry, I've solved it by adding jndi.properties file.

 java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
 java.naming.provider.url=localhost:1099
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

 jalex



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss via Applet

2001-08-10 Thread Tim Yates

Yeah sure!!

Thank you so much =o)

Tim.

PS:  I managed to get JBoss2.5alpha running with Tomcat 3.2.3 in the same
VM, and the problem still persists...
PPS:  For anyone else following this thread behind me, if a solution is
reached, I will post it here, and try to write up the documentation for how
to do it...

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 10, 2001 1:31 PM
Subject: RE: [JBoss-user] JBoss via Applet


 Hello Tim,

  Ok, I have done this, and built it.  I run jBoss with a simple
  jar deployed
  that contains one bean that has one method.  This method just appends
some
  text to the front of a String, then returns it.

 OK

  If I run the applet as an application, the String comes back fine.

 Hopefully... ;)

  If I run the applet as an applet (under tomcat running in a
  separate VM), I
  get the following:
 
  java.security.AccessControlException: access denied
  (java.io.FilePermission
  \C:\jboss2.5a\jboss\dist\tmp\deploy\Default\test.jar\- read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
   at javax.naming.InitialContext.lookup(Unknown Source)
   at applet.Applet1.jButton1_actionPerformed(Applet1.java:118)
  ...truncated...

 Yes, the problem is still the same... The fact is that when RMI serializes
 the proxy on the server to send it to the client, it also associates it
the
 name of its codebase i.e. from where the client will be able to download
the
 code if it doesn't own it locally. The RMI subsystem gets this information
 from the URLClassLoader associated to the proxy class on the server. In
your
 scheme, it seems that the URLClassLoader gave it first the file URL to the
 class which doesn't make much sense from the applet point of view. When
the
 client application tries this, it fails and then tries with the http URL
 that is most probably also serialized in the code base information. The
 problem is that for the applet, this first try is fatal as it raises a
 security exception.

 Could you please send me in private your test case. I will try to take a
 look at it if I have time.

 Cheers,



 Sacha


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss via Applet

2001-08-09 Thread Tim Yates

Hiya JBoss fans =)

  We are trying to get an applet to call jBoss (via a webpage), but whenever
we try, we get the following exception in the java console:

TNSMapEditorTreeModel: Can't look up TNSMapBean.
java.security.AccessControlException: access denied (java.io.FilePermission
\C:\JBoss-2.2.2\tmp\deploy\Default\tnsmapeditor.jar\- read)
java.lang.NoClassDefFoundError: tnsmapeditorbeans/TNSMapHome
 at
tnsmapeditorclient.TNSMapEditorTreeModel.init(TNSMapEditorTreeModel.java:5
7)
 at
tnsmapeditorclient.TNSMapEditorTreePanel.init(TNSMapEditorTreePanel.java:2
5)
 at tnsmapeditorclient.TNSMapEditorFrame.init(TNSMapEditorFrame.java:59)
 at tnsmapeditorclient.TNSMapEditorApplet.jbInit(TNSMapEditorApplet.java:32)
 at tnsmapeditorclient.TNSMapEditorApplet.init(TNSMapEditorApplet.java:22)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

it looks like the applet is trying to load the EJB's from my local machine!!
Not the one running jBoss...

We have jBoss running seperatly from tomcat, and when this applet is run
standalone as an application (admittedly on the same machine as jBoss), it
works fine.

the applet looks up on the ip address of the jboss machine, and the URL
contains the ip address of the same machine (as I know that was something
brought up in the list-archive)

Has anyone managed to use an applet to call ejb's?

It says in the documentation: A user of EJBs may be another EJB, an
ordinary JavaBean, a JSP page, an applet, or a stand-alone application.

We have managed successfully to get all of these apart from the applet to
work...

Help me jBoss user listyou're my only hope =)

Oh well, back to Google for me :-)

Cheers,

Tim Yates


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss via Applet

2001-08-09 Thread Tim Yates

Will do :-)

Thanks Sacha!

I'll report our results back here :-)

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 4:53 PM
Subject: RE: [JBoss-user] JBoss via Applet


 Hello,

 Can you try with one of the lastest CVS snapshot? A RMI codebase bug has
 been corrected in a recent release (2.4 I think). It may solve this
problem.

 Cheers,



 Sacha



  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Tim Yates
  Envoyé : jeudi, 9 août 2001 17:39
  À : [EMAIL PROTECTED]
  Objet : [JBoss-user] JBoss via Applet
 
 
  Hiya JBoss fans =)
 
We are trying to get an applet to call jBoss (via a webpage),
  but whenever
  we try, we get the following exception in the java console:
 
  TNSMapEditorTreeModel: Can't look up TNSMapBean.
  java.security.AccessControlException: access denied
  (java.io.FilePermission
  \C:\JBoss-2.2.2\tmp\deploy\Default\tnsmapeditor.jar\- read)
  java.lang.NoClassDefFoundError: tnsmapeditorbeans/TNSMapHome
   at
  tnsmapeditorclient.TNSMapEditorTreeModel.init(TNSMapEditorTreeMo
  del.java:5
  7)
   at
  tnsmapeditorclient.TNSMapEditorTreePanel.init(TNSMapEditorTreePa
  nel.java:2
  5)
   at
tnsmapeditorclient.TNSMapEditorFrame.init(TNSMapEditorFrame.java:59)
   at
  tnsmapeditorclient.TNSMapEditorApplet.jbInit(TNSMapEditorApplet.java:32)
   at
tnsmapeditorclient.TNSMapEditorApplet.init(TNSMapEditorApplet.java:22)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
 
  it looks like the applet is trying to load the EJB's from my
  local machine!!
  Not the one running jBoss...
 
  We have jBoss running seperatly from tomcat, and when this applet is run
  standalone as an application (admittedly on the same machine as jBoss),
it
  works fine.
 
  the applet looks up on the ip address of the jboss machine, and the URL
  contains the ip address of the same machine (as I know that was
something
  brought up in the list-archive)
 
  Has anyone managed to use an applet to call ejb's?
 
  It says in the documentation: A user of EJBs may be another EJB, an
  ordinary JavaBean, a JSP page, an applet, or a stand-alone application.
 
  We have managed successfully to get all of these apart from the applet
to
  work...


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss via Applet

2001-08-09 Thread Tim Yates

Just quickly, I do this:

cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss co
jboss

to download the latest CVS snapshot don't I?

Me and CVS have a shaky relationship ;-)

Cheers,

Tim.

- Original Message -
From: Tim Yates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 5:12 PM
Subject: Re: [JBoss-user] JBoss via Applet


 Will do :-)

 Thanks Sacha!

 I'll report our results back here :-)

 - Original Message -
 From: Sacha Labourey [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 4:53 PM
 Subject: RE: [JBoss-user] JBoss via Applet


  Hello,
 
  Can you try with one of the lastest CVS snapshot? A RMI codebase bug has
  been corrected in a recent release (2.4 I think). It may solve this
 problem.
 
  Cheers,
 
 
 
  Sacha
 
 
 
   -Message d'origine-
   De : [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]De la part de Tim Yates
   Envoyé : jeudi, 9 août 2001 17:39
   À : [EMAIL PROTECTED]
   Objet : [JBoss-user] JBoss via Applet
  
  
   Hiya JBoss fans =)
  
 We are trying to get an applet to call jBoss (via a webpage),
   but whenever
   we try, we get the following exception in the java console:
  
   TNSMapEditorTreeModel: Can't look up TNSMapBean.
   java.security.AccessControlException: access denied
   (java.io.FilePermission
   \C:\JBoss-2.2.2\tmp\deploy\Default\tnsmapeditor.jar\- read)
   java.lang.NoClassDefFoundError: tnsmapeditorbeans/TNSMapHome
at
   tnsmapeditorclient.TNSMapEditorTreeModel.init(TNSMapEditorTreeMo
   del.java:5
   7)
at
   tnsmapeditorclient.TNSMapEditorTreePanel.init(TNSMapEditorTreePa
   nel.java:2
   5)
at
 tnsmapeditorclient.TNSMapEditorFrame.init(TNSMapEditorFrame.java:59)
at
  
tnsmapeditorclient.TNSMapEditorApplet.jbInit(TNSMapEditorApplet.java:32)
at
 tnsmapeditorclient.TNSMapEditorApplet.init(TNSMapEditorApplet.java:22)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
  
   it looks like the applet is trying to load the EJB's from my
   local machine!!
   Not the one running jBoss...
  
   We have jBoss running seperatly from tomcat, and when this applet is
run
   standalone as an application (admittedly on the same machine as
jBoss),
 it
   works fine.
  
   the applet looks up on the ip address of the jboss machine, and the
URL
   contains the ip address of the same machine (as I know that was
 something
   brought up in the list-archive)
  
   Has anyone managed to use an applet to call ejb's?
  
   It says in the documentation: A user of EJBs may be another EJB, an
   ordinary JavaBean, a JSP page, an applet, or a stand-alone
application.
  
   We have managed successfully to get all of these apart from the applet
 to
   work...
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem Connecting to Oracle v8.1.7

2001-08-06 Thread Tim Yates

I don't think you want :

attribute
name=URLjdbc:oracle:thin:@sameer:1521:samora,scott,tiger/attribute

try

attribute name=URLjdbc:oracle:thin:@sameer:1521:samora/attribute

instead...

And make sure you have classes12.zip in jboss/lib/ext

Good Luck!

Tim.

- Original Message -
From: Prashant Sarode [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 06, 2001 9:43 AM
Subject: [JBoss-user] Problem Connecting to Oracle v8.1.7


 Hi all,
  I want to use Oracle 8 as a backend instead of Hypersonic.
 I've changed the jboss.jcml file as shown below:
   mbean code=org.jboss.jdbc.JdbcProvider
 name=DefaultDomain:service=JdbcProvider
  attribute name=Driversoracle.jdbc.driver.OracleDriver/attribute
   /mbean

   mbean code=org.jboss.jdbc.XADataSourceLoader
 name=DefaultDomain:service=XADataSource,name=OracleDB
 attribute name=PoolNameOracleDB/attribute
 attribute

name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
 l/attribute
 attribute

name=URLjdbc:oracle:thin:@sameer:1521:samora,scott,tiger/attribute
 attribute name=JDBCUserscott/attribute
 attribute name=Passwordtiger/attribute
 /mbean




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JMS multiple deliveries

2001-08-06 Thread Tim Rickard

I have a small test suite for JMS. I deliver several thousand messages to a
queue and then read those messages. I am using transacted sessions. The messages
are delivered without problem. The messages are consumed and committed by a
receiver. If I run the receiver again the messages will not be delivered a
second time. Everything is correct at this point. If I then restart JBoss and
run my receiver again all the the messages that were previously delivered will
be redelivered with the redelivery flag set to false. I am just using the
factory and queues that come configured in JBoss, QueueConnectionFactory and one
of the named queues A, B , or C. Is this a configuration issue or does JBossMQ
not work. These programs have worked with several other JMS providers. 

If JBossMQ does not work does anyone know how to configure OpenJMS as the
default provider in JBoss.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Resolution: Problem with CMP Bean cache with different findermet hods

2001-07-30 Thread Penhey, Tim

As it often happens, while trying to provide a concise test program that
demonstrates the problem with as few lines of code as possible, we happened
to find the heart of the problem.

The intern doing the project with the problems was using JBoss on NT and
using the Hypersonic database.  I was trying to replicate the problem using
JBoss on Solaris with Sybase.  Interestingly enough, it was this that
brought the problem to the foreground.

At the heart of the problem is the primary key that we were using for one of
our entity beans.  It was a composite key encapsulating a date and an
integer.  The hash value for the key was created by assembling a string of
the two values and taking a hash off that.  If I was thinking more clearly,
I would have noticed the problem earlier as the debugging was printing out
different formatted strings for the same object (java.util.Date).

When trying to replicate the problem on Solaris and Sybase, I came across
the problem of now jaws mapping for a java.util.Date.  After looking into
the standardjaws.xml file, I decided that a java.sql.Date would have to do.
However my application seemed to be working exactly as intended.

The next step was to execute it on the NT box with Hypersonic.  Another
problem.  Jaws doesn't have any mapping for java.sql.Date to the Hypersonic
database.  A quick edit of standardjaws.xml and a restart of JBoss and that
problem is fixed.  Everything seemed to be working on the NT system now.
However the intern's project was still exhibiting strange behaviour.  It was
then that the relevance of the debugging format made itself clear.

All of the debugging was using the objects toString method.  Sometimes the
debugging for the java.util.Date would show the time (all as zeros) which is
the toString for the java.util.Date, and sometimes it would just show the
date, which is the implementation of the java.sql.Date.  

What appeared to be happening was the java.util.Date was actually a
java.sql.Date under the covers.  And this somehow was screwing up our
equality tests.  By changing the underlying field in the bean and the
primary key to a java.sql.Date instead of a java.util.Date everything then
worked.

Black magic (ooh aaah).

Tim Penhey


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Resolution: Problem with CMP Bean cache withdif ferent finder methods

2001-07-30 Thread Penhey, Tim

I didn't really want to get into it on the original resolution item, but I
did try to change the hashcode method.

Admittedly I didn't think of an XOR of the hashcodes.  What I did do though
was to create the string using the simple date format so they would always
generate the same string whether or not it was a java.util.Date or a
java.sql.Date.  I was very surprised to find that this did not fix the
problem.  I thought that it might have also been the .equals implementation,
but that also was generating equality independently of the type, so I could
not quite fathom exactly what was going on there.  All I knew was that it
was still exhibiting the strange behaviour and by then I knew that using a
java.sql.Date for the member variable fixed it.

As an aside, when trying to use a java.util.Date with the standard JAWS
mapping for Sybase, it created a field of IMAGE type.  When trying to read
the field again, the Sybase driver through the exception Implicit
conversion form datatype 'IMAGE' to 'BINARY' is not allowed.  It was this
that started the chase of types and standard JAWS mappings.

Tim

 Date: Mon, 30 Jul 2001 11:37:32 +0200
 From: Philipp Meier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Resolution: Problem with CMP Bean cache with
 different finder met hods
 Reply-To: [EMAIL PROTECTED]
 
 On Mon, Jul 30, 2001 at 09:54:50AM +0100, Penhey, Tim wrote:
  All of the debugging was using the objects toString method.  Sometimes
 the
  debugging for the java.util.Date would show the time (all as zeros)
 which=
  is
  the toString for the java.util.Date, and sometimes it would just show
 the
  date, which is the implementation of the java.sql.Date. =20
 =20
  What appeared to be happening was the java.util.Date was actually a
  java.sql.Date under the covers.  And this somehow was screwing up our
  equality tests.  By changing the underlying field in the bean and the
  primary key to a java.sql.Date instead of a java.util.Date everything
 then
  worked.
 
 Why didn't you consider to fix your hashcode method? A XOR of all of the
 fields' hashcodes should be sufficient:
 
 int hashcode =3D field1.hashcode() ^ field2.hashcode() ^
 datafield.hashcode=
 ();
 
 My $0.02,
   -billy.
 
 --=20
 Philipp Meier  o-matic GmbH
 Gesch=E4ftsf=FChrer  Pfarrer-Wei=DF-Weg 16-18
 Tel.: +49-(0)700-66284236 89077 Ulm


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Design Question...

2001-07-30 Thread Tim Yates

Hi there!!

When a user hits the site, they get allocated a unique 48 character session
ID (allocated by me).  If they then login, I tie that sessionId to a userId
(both rows in seperate tables)

But I have a design question...  They can log-out, but many do not
(obviously), so what would be the best way of clearing out-of-date
sessionIds at regular intervals?

As far as I can see, I have two choices...

1) A seperate java server which runs through the instance table every hour
or so, and calls my EJB's to delete those rows that have become inactive

or 2) Use a Timer MBean to callback after a certain time to remove the
row...

I am thinking that option 2 would be a much cleaner way of doing things, but
what would be the way to do it?

Sorry if I am talking rubbish, I have been searching for tutorials, and
books all afternoon, and the Web (and Amazon) has come up dry :(

Thanks for any input you can give :)

Tim Yates


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Design Question...

2001-07-30 Thread Tim Yates

Sorry, by the site, I meant our website

- Original Message -
From: Tim Yates [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 4:45 PM
Subject: [JBoss-user] Design Question...


 When a user hits the site, they get allocated a unique 48 character
session
 ID (allocated by me).  If they then login, I tie that sessionId to a
userId
 (both rows in seperate tables)



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Design Question...

2001-07-30 Thread Tim Yates

Yeah, the reason we do it this way (and not via HTTP sessions or cookies),
is that it was decided early on that it should be possible to style the site
differently dependant on the device that was accessing it, and we couldn't
guarantee that storing the HTTPSession, or using cookies would work on any
of the four major browsing devices...

- Original Message -
From: Mike Abney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 5:28 PM
Subject: Re: [JBoss-user] Design Question...


 Sorry, just re-read this. So... you're making your own session IDs and
 storing them in the database? Why? If you let the app server do that work
 for you, you can take advantage of the solution I suggested before.

Cheers!!

Tim.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with connecting to an Oracle database

2001-07-27 Thread Tim Yates

try

DataSource ds = (javax.sql.DataSource)
initCtx.lookup(java:/OracleDB);

- Original Message -
From: Eli Gjørven [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 11:00 AM
Subject: [JBoss-user] Problem with connecting to an Oracle database



 There is probably a solution to this problem to be found in the archives
 at sourceforge, but the search service has unfortunately not been
 available when I have tried to use it.

 I used to have this in my jboss.jcml file:

   mbean code=org.jboss.jdbc.HypersonicDatabase
  name=DefaultDomain:service=Hypersonic
 attribute name=Port1476/attribute
 attribute name=Silenttrue/attribute
 attribute name=Databasedefault/attribute
 attribute name=Tracefalse/attribute
   /mbean

   mbean code=org.jboss.jdbc.XADataSourceLoader
  name=DefaultDomain:service=XADataSource,name=DefaultDS
 attribute name=PoolNameDefaultDS/attribute
 attribute
  name=URLjdbc:HypersonicSQL:hsql://localhost:1476/attribute
 .
 .
   /mbean

   mbean code=org.jboss.jdbc.XADataSourceLoader
  name=DefaultDomain:service=XADataSource,name=OracleDB
  attribute name=PoolNameOracleDB/attribute
  attribute name=DataSourceClass
  org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute
  attribute name=URL
  jdbc:oracle:thin:@myhost:1521:mydatabase/attribute
  attribute name=JDBCUsermyuser/attribute
  attribute name=Passwordmypasswd/attribute
  attribute name=MaxSize10/attribute
   /mbean

 I tried to lookup Oracle from an EJB with this call:

 DataSource ds = (javax.sql.DataSource)
 initCtx.lookup(java:comp/env/OracleDB);

 and got a connection to Hypersonic (and no exceptions). Why?

 When i removed the two upper xml parts, i got the following error message
 when starting JBoss:

 [Container factory] Deploying mybean
 [Container factory] No resource manager found for OracleDB

 I have found no documentation on the upper xml part about Hypersonic. It
 seems like it have to be there, do I have to change it to make this work?
 What else is missing? I am quite new to JBoss, so I guess there might be
 an obvious reason why this does not work.

 --
 Eli.



 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with oracle Clob column.

2001-07-26 Thread Tim Yates

I know I have to do this (with JBoss 2.1...)

  public static OracleResultSet getOracleResultSet( ResultSet r )
  {
ResultSet rslt =
((org.jboss.minerva.jdbc.ResultSetInPool)r).getUnderlyingResultSet() ;
return ((OracleResultSet)rslt) ;
  }

I know that :

  org.jboss.minerva.jdbc.ResultSetInPool

has changed for sure...

but you should know what it is :-)

Good Luck,

Tim.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 10:49 AM
Subject: [JBoss-user] problem with oracle Clob column.


 hello jboss users.
  I want to write inside a Clob column in a oracle database. And I have
 problems with it. My code is this:
  ---
  .
  .
  import oracle.sql.*;
  import oracle.jdbc.driver.*;
  .
  .
  con.setAutoCommit (false);
  Statement stmt = con.createStatement ();
  /*
  first,I insert into my table one record with  only one blank space.
  */
  stmt.execute (insert into mytable(mycol) values(' '));
  /*
   second,I obtain my CLOB object and call fillClob, this is a method that
 write inside this object.
  */
  ResultSet rset = stmt.executeQuery (select * from mytable for update);
   while (rset.next ())
  {
CLOB clob = ((OracleResultSet)rset).getCLOB (1); /*  this line
 cause the exception with pooling*/
fillClob (con, clob, 6000);
  }
  rset.close();
  stmt.close();
  con.commit();
  con.setAutoCommit (true);

 -

 This is a modification of one example from

http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.81
 7/a83724/samapp4.htm#1000956
 (if you wish to see it and need password. Membership  is free )

 This code is working fine if I obtain the Connection without using
 minerval or jboss conection pooling . But if I obtain this
 Connection with this pooling(I tried it with jboss 2.2.2 and beta
2.4 ).
 I obtain the next exception in line above mark with '###'

  java.lang.ClassCastException:
 org.opentools.minerva.jdbc.ResultSetInPool


  ¿Can I work with this objects (CLOB) with pooling ?
  thaks for your help.


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with connecting to an Oracle database

2001-07-26 Thread Tim Yates

have you tried:

DataSource ds = (javax.sql.DataSource)initCtx.lookup(java:/OracleDB);

Tim.

- Original Message -
From: Eli Gjørven [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 11:00 AM
Subject: [JBoss-user] Problem with connecting to an Oracle database



 There is probably a solution to this problem to be found in the archives
 at sourceforge, but the search service has unfortunately not been
 available when I have tried to use it.


 I tried to lookup Oracle from an EJB with this call:

 DataSource ds = (javax.sql.DataSource)
 initCtx.lookup(java:comp/env/OracleDB);

 and got a connection to Hypersonic (and no exceptions). Why?




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jive Forums speed feed-back wanted

2001-07-26 Thread Tim Yates

I have to agree with this...clicking reply when you are not logged in
takes ages to come up with a login screen...(about 20 seconds)

IE 5.5
2 meg pipe

 Hello,

 One slow case:
 - when: a few seconds ago
 - not yet logged
 - selected a message (Will JBoss support RMI-IOOP? )
 - hit  Reply
 - and wait.
 - wait...
 - hit once again... idem...
 - hit another button ( login/register).. moved to the login/register
 page very quickly

 = the reply button seems to be deadly slow.




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jive Forums speed feed-back wanted

2001-07-26 Thread Tim Yates

Netscape does have _real_ problems rendering multiple tables, and tables
with many rows/columns

- Original Message -
From: Victor Langelo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 3:49 PM
Subject: Re: [JBoss-user] Jive Forums speed feed-back wanted


 Marc,

 I'm using Netscape Communicator 4.76 on a 330 MHz Window NT machine with a
high
 speed connection. Every topic list page takes about 5-6 seconds to
display. Even
 with only 15 topics in the list. Other pages take 2-3 seconds. I have
tried with
 IE and the pages draw much faster. However, I use Netscape because I
prefer the
 imap e-mail, newsreader and calendar. I won't be switching to IE anytime
soon.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problem with CMP Bean cache with different finder methods

2001-07-25 Thread Penhey, Tim

I searched the archives, but could not find any other messages which are
experiencing the same problems that I am getting at the moment.

We have a small project attempting to use Entity beans using CMP.

Our home interface defines a few different finder methods.

findByPrimaryKey and findByPersonPK(PersonPK)

Here are the symptoms:

Call findByPersonPK - this returns a collection of Entity Beans.  We iterate
over these and dump the contents to our debug log.

Call findByPrimaryKey to get a single Entity (that was also returned in our
previous find), this returns a single Entity bean.
We call a mutator function (change one of the persisted fields).

Call findByPrimaryKey again and store in a different object (just 'cause I'm
paranoid), and dump the output to the debug log.  The beans internals have
changed as we expected.

Check the database (which is using the default Hypersonic, out of the box
one), and the field has changed.

Call findByPersonPK - gets new collection into a different object than the
first one (more paranoia), and dump the contents to our debug log.  The
original value (before the change) is shown.  This is the same as the one
showed in our last collection.  The database is then updated again (through
the call of ejbStore) and it overwrites our change back to what it was
before.

When we run the program again, the first collection is now an accurate
representation of the database (even though it is not what we wanted nor
expected), but when we do the first findByPrimaryKey and dump that out, it
shows the changed value not the database value.

What I think is happening here is a conflict somewhere in the bean cache.
The first finder that returns a collection creates one instance of our
particular entity bean.  The next finder creates another instance of that
entity bean.  We change the second one which then changes the database, and
everything appears fine, then we call the first finder again, which returns
its cached objects (which have the old value) and iterating through that
collection causes the database to be changed.  However when we run our test
application again all the cached entity beans are there but the two
instances of the one row contain different data.

Has anyone else come across this?  If so what did you do?  If not, is there
anyone on the JBoss team that can confirm this behaviour?  What do I need to
do to get it to work the way that I expect?

Thanks
Tim Penhey


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with CMP Bean cache with differentfinde r methods

2001-07-25 Thread Penhey, Tim

We were using JBoss 2.2.2, but following your comment, I downloaded 2.4 beta
with Tomcat and tried that.
We had exactly the same symptoms as before.

Tim

-
What jboss version are you using? This may have been fixed in 2.4,
something like it was.

david jencks

On 2001.07.25 07:32:05 -0400 Penhey, Tim wrote:
 I searched the archives, but could not find any other messages which are
 experiencing the same problems that I am getting at the moment.
 
 We have a small project attempting to use Entity beans using CMP.
 
 Our home interface defines a few different finder methods.
 
 findByPrimaryKey and findByPersonPK(PersonPK)
 
 Here are the symptoms:
 
 Call findByPersonPK - this returns a collection of Entity Beans.  We
 iterate
 over these and dump the contents to our debug log.
 
 Call findByPrimaryKey to get a single Entity (that was also returned in
 our
 previous find), this returns a single Entity bean.
 We call a mutator function (change one of the persisted fields).
 
 Call findByPrimaryKey again and store in a different object (just 'cause
 I'm
 paranoid), and dump the output to the debug log.  The beans internals
 have
 changed as we expected.
 
 Check the database (which is using the default Hypersonic, out of the box
 one), and the field has changed.
 
 Call findByPersonPK - gets new collection into a different object than
 the
 first one (more paranoia), and dump the contents to our debug log.  The
 original value (before the change) is shown.  This is the same as the one
 showed in our last collection.  The database is then updated again
 (through
 the call of ejbStore) and it overwrites our change back to what it was
 before.
 
 When we run the program again, the first collection is now an accurate
 representation of the database (even though it is not what we wanted nor
 expected), but when we do the first findByPrimaryKey and dump that out,
 it
 shows the changed value not the database value.
 
 What I think is happening here is a conflict somewhere in the bean cache.
 The first finder that returns a collection creates one instance of our
 particular entity bean.  The next finder creates another instance of that
 entity bean.  We change the second one which then changes the database,
 and
 everything appears fine, then we call the first finder again, which
 returns
 its cached objects (which have the old value) and iterating through that
 collection causes the database to be changed.  However when we run our
 test
 application again all the cached entity beans are there but the two
 instances of the one row contain different data.
 
 Has anyone else come across this?  If so what did you do?  If not, is
 there
 anyone on the JBoss team that can confirm this behaviour?  What do I need
 to
 do to get it to work the way that I expect?
 
 Thanks
 Tim Penhey



--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Some problem with JBoss and Oracle

2001-07-24 Thread Tim Yates

Yeah, I had that problem :-(

Change

  attribute
name=DataSourceClassoracle.jdbc.xa.client.OracleXADataSource/attribute

to

  attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l/attribute

And it worked for me :-)

Hope this helps...sorry I can't explain why the first method doesn't
work...from the documentation, it seems like it should...

Tim.

- Original Message -
From: Anton Vityaz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 4:14 PM
Subject: [JBoss-user] Some problem with JBoss and Oracle


 Hello jboss-user,


 Exception occured when try save in to the Oracle database :

 PLS-00201: identifier 'JAVA_XA.XA_START' must be declared
 ORA-06550: line 1, column 8:
 PL/SQL: Statement ignored


 We have next JBOSS configuration:
 -
 Application server JBOSS
 jboss.jcml

   mbean code=org.jboss.tm.TransactionManagerService
name=DefaultDomain:service=TransactionManager
 attribute name=TransactionTimeout300/attribute
 attribute name=XidClassNameoracle.jdbc.xa.OracleXid/attribute
   /mbean
   mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
  attribute name=Driversoracle.jdbc.driver.OracleDriver/attribute
   /mbean

   mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=DefaultDS
  attribute name=PoolNameDefaultDS/attribute
  attribute
name=DataSourceClassoracle.jdbc.xa.client.OracleXADataSource/attribute
  attribute
name=URLjdbc:oracle:thin:@acher.popnet.kiev.ua:1521:maggi/attribute
  attribute name=JDBCUsercrm_pro_debug/attribute
  attribute name=Passwordcrm_pro_debug/attribute
   /mbean




 --
 Best regards,
  Anton  mailto:[EMAIL PROTECTED]



 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] BMP tools

2001-07-17 Thread Tim Yates

JBuilder Enterprise edition :-) j/k


- Original Message -
From: Jon Finanger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 17, 2001 11:18 AM
Subject: [JBoss-user] BMP tools


 Any BMP generation tool around yet? (generating beans classes out of a sql
 database)

 /Jon

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss use of ejb2.0.jar vs. ejb.jar

2001-07-16 Thread tim . haley



This seems to be a configuration control issue for JBoss development:

When should each of the subj jar files be used?

ejb.jar exists in 2 locations in the JBoss-2.2.2 directory structure:
-   %JBOSS_HOME%\client\
-   %JBOSS_HOME%\lib\ext\

ejb2.0.jar exists in:
-   %JBOSS_HOME%\lib\ext\

1) Why are both jars needed in lib\ext\ ?

2) When I remove %JBOSS_HOME%\client\ejb.jar, why does the server throw:
   NoClassDefFoundError: javax/ejb/EJBMetaData
   when I deploy my beans? Shouldn't it find it in the ext dir?

3) Why is the server even looking in %JBOSS_HOME%\client\ ?

I believe that ejb2.0.jar should be the only one currently in use.  But that
causes the exception in #2 above.

This just doesn't seem right.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] 2 WEEKS EVICTION NOTICE

2001-07-12 Thread Tim Yates

Mailing list for me to I'm afraid :-(

Not that the forums aren't good :-)


- Original Message - 
From: Cor Hofman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 12, 2001 12:03 PM
Subject: RE: [JBoss-user] 2 WEEKS EVICTION NOTICE


 Okay, lets have a vote.
 I'm in favor of letting the mailing list live.
 
 Regards,
 
Cor.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: Oracle Connection Pool Setup

2001-07-12 Thread tim . haley



Vinay,
If I understand correctly; you are successfully using DB connections directly
from your beans to access the Oracle database, and you want to change that to
use a connection Pool set up by JBoss.  If that is the case, then you already
have your Oracle thin/OCI driver set up and working correctly.  All you need to
do is set up and use the connection pool.



I put my JDBC driver in the %JBOSS%/lib/ext directory; however, you could use
the class path extension mechanism in jboss.conf to point to wherever your
driver already exists.



Here is the section of my jboss.jcml file regarding the connection pool:

-
 !-- JDBC --
 mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
  attribute name=Driversoracle.jdbc.driver.OracleDriver/attribute
 /mbean
 mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=jdbc/DBName
  attribute name=PoolNamejdbc/DBName/attribute
  attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute

  attribute name=Properties/attribute
  attribute name=URLjdbc:oracle:thin:@localhost:1521:DBName
/attribute
  attribute name=GCMinIdleTime120/attribute
  attribute name=JDBCUserusername/attribute
  attribute name=MaxSize10/attribute
  attribute name=Passwordpassword/attribute
 attribute name=GCEnabledfalse/attribute
 attribute name=InvalidateOnErrorfalse/attribute
 attribute name=TimestampUsedfalse/attribute
 attribute name=Blockingtrue/attribute
 attribute name=GCInterval12/attribute
 attribute name=IdleTimeout180/attribute
 attribute name=IdleTimeoutEnabledfalse/attribute
 attribute name=LoggingEnabledfalse/attribute
 attribute name=MaxIdleTimeoutPercent1.0/attribute
 attribute name=MinSize0/attribute
 /mbean
-

Here is my utility class used to get the database connections:

-
package com.acme.Utilities;

import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;

public class DBConnectionFactory
{
 public DBConnectionFactory() { }

 public static final Connection getConnection()
throws SQLException, NamingException
 {
  //***
  // Use DataSource with the deployment descriptor
  // to get a Database Connection from
  // the Pool maintained by theserver.
  InitialContext ic = new InitialContext();
  DataSource ds = (DataSource)ic.lookup(java:jdbc/DBName);
  Connection con= ds.getConnection();
  if (con.getAutoCommit())
  {
   con.setAutoCommit(false);
  }

  return con;

 }
}
-

Every bean method that needs access to the database has a call similar to:
 con = DBConnectionFactory.getConnection();
where con is defined as:

 protected Connection con   = null;
when the method is finished with the connection:

-
 finally
 {
  try {
   if (result != null)
   {
result.close();
result = null;
   }
  } catch (SQLException se){se.printStackTrace();}
  try {
   if (pStatement != null)
   {
pStatement.close();
pStatement = null;
   }
  } catch (SQLException se){se.printStackTrace();}
  try {
   if (con != null)
   {
con.close();
con = null;
   }
  } catch (SQLException se){se.printStackTrace();}
 }
-
Good luck,

- Tim




To:   Tim Haley/SAR/Global@Global
cc:

Subject:  Hi Tim



Hi Tim,
  I got ur mail-id Jboss mailing list.
  If you can help me I would be greatful to you.
  I'm developing EJB's and using JBoss. I want to do connection pooling.
  What properties have to set and where for enabling connection pooling in
JBoss?
  And also code for using instances of DB connection?
  My software configuration is as follows:
  JBoss-2.2.2_Tomcat-3.2.2  with Oracle(8.1.7)
  Everything is setup and running successfully. Now my aim is to enable
connection
  pooling using Oracle thin/OCI drivers. I think I 've to set properties in
jboss.jcml
  but how the properties should look like I don't know. I'm confused.
  Pl help me.

Thanks very much
Vinay Ram




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss

Re: Re: Re: [JBoss-user] MySQL, BMP, Table not found

2001-07-12 Thread tim . haley



Scott,
I think your jboss.xml file is still not quite right:



Here is my jboss.xml

entity
   resource-managers
resource-manager res-class=javax.sql.DataSource
  res-namejdbc/mySQLDB/res-name
  res-jndi-namejava:/jdbc/mySQLDB/res-jndi-name
   /resource-manager/resource-managers
/entity


This should be:


jboss

   securefalse/secure

   container-configurations
   /container-configurations

   resource-managers
   resource-manager res-class=javax.sql.DataSource
  res-namejdbc/mySQLDB/res-name
  res-jndi-namejava:/jdbc/mySQLDB/res-jndi-name
   /resource-manager
   /resource-managers

   enterprise-beans
 entity
  ejb-nameShipBean/ejb-name
  jndi-nametitan/ShipHome/jndi-name
  configuration-name/configuration-name
 /entity
   /enterprise-beans

/jboss

- Tim




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Configuring castor to work with jboss - help!

2001-07-11 Thread Tim Fox

I'm been hammering my head against a brick wall for some time now trying to
get Castor
to work with JBoss.
I've looked through all the postings on the subject at both castor and jboss
but to no avail.
I've looked at the examples on jboss, and from the rooms example that
someone kindly but up for public use - but couldn't get these to work (I get
the same error with these examples as with my own code).
I'm sure there must be some piece of configuration that hasn't been
mentioned that I need to do.
This is what I have done:

1. Added the following to jboss.jcml:
mbean code=org.jboss.jdo.castor.CastorJDOImpl
name=DefaultDomain:service=CastorJDO,name=castormercury
  attribute
name=Configuration../../../../dev/projects/mercury/config/database.xml/a
ttribute
  attribute name=JndiNamecastormercury/attribute
  attribute name=LockTimeout1/attribute
  attribute name=LoggingEnabledtrue/attribute
  attribute name=CommonClassPathfalse/attribute
  /mbean


2. Added the following inside my session/session tags for my stateless
session bean
resource-ref
descriptionCastor DataObjects factory/description
res-ref-namejdo/MercuryJDO/res-ref-name
res-typeorg.exolab.castor.jdo.DataObjects/res-type
res-authContainer/res-auth
/resource-ref

3. Added the following in jboss.xml inside the jboss/jboss tags:
resource-managers
resource-manager res-class=org.jboss.ejb.deployment.CastorJDOResource
res-nameCastorMercuryJDO/res-name
res-jndi-namecastormercury/res-jndi-name
/resource-manager
/resource-managers

4. Added the following in jboss.xml inside the session/session tags for
my bean
resource-ref
res-ref-namejdo/MercuryJDO/res-ref-name
resource-nameCastorMercuryJDO/resource-name
/resource-ref

5. my code does a lookup using the following:
DataObjects jdo = (DataObjects) ic.lookup(java:comp/env/jdo/MercuryJDO);

This fails with a jaxax.naming.NameNotFoundException saying that the name
castormercury has not been bound, note is *does not* say that the name
MercuryJDO has not been bound implying that the stuff in the .jcml file
has not been bound.

Anyway, I'm stumped coz I'm sure I've done everything it says in the
examples.(Though obviously something's missing!)

Any help greatly appreciated.

TIA



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: Re: Re: [JBoss-user] MySQL, BMP, Table not found

2001-07-11 Thread tim . haley



Scott,
It sounds like the InstantDB datasource is still being defined, but since you
have removed the driver, it cannot load.

I think that in JBoss 2.2.1 you have to delete the jboss-auto.jcml file in order
to avoid having previously defined mbeans from reappearing on you.  That was
changed in later versions.  You might want to use 2.2.2.

You also say that CMP still works.  How is that possible when the startup hangs?

In order to make the Context.lookup() call like you are, I think that you need
to change:

mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=mySQLDB
to
mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=jdbc/mySQLDB

To verify the JNDI name,

 Browse http://localhost:8082/

 Click on: service=JNDIView

 Click on the list button.

Your bean will have an entry for it's java:comp namespace.

Make sure that it has the entry:

  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- jdbc (class: org.jnp.interfaces.NamingContext)
  |   |   +- mySQLDB[link - java:/jdbc/mySQLDB] (class: javax.naming.LinkRef)

If not, either:

1) fix your deployment descriptors, you are missing:

  resource-ref
   res-ref-namejdbc/mySQLDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
  /resource-ref
 in your ejb-jar.xml file and:

  resource-managers
resource-manager res-class=javax.sql.DataSource
  res-namejdbc/mySQLDB/res-name
  res-jndi-namejava:/jdbc/mySQLDB/res-jndi-name
/resource-manager
  /resource-managers
 in your jboss.xml file.

2) Or, change your code to:

 DataSource ds = (DataSource)jndiCntx.lookup(java:jdbc/mySQLDB);
Good luck!





Scott Salisbury [EMAIL PROTECTED] on 07/11/2001 11:56:40 AM

To:   Tim Haley/SAR/Global@Global
cc:

Subject:  Re: Re: [JBoss-user] MySQL, BMP, Table not found




Thanks Tim!

I appreciate your help.   Here is what my jboss.jcml JDBC section now looks
like, after following your suggestion.

!-- JDBC --
 mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
attribute name=Driversorg.gjt.mm.mysql.Driver/attribute
 /mbean
mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=mySQLDB
   attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute

   attribute name=PoolNamemySQLDS/attribute
   attribute name=URLjdbc:mysql://165.121.243.05/test/attribute
   attribute name=JDBCUser /
   attribute name=Password /
   /mbean

The problem is that when I start JBOSS now, it hangs when the following appears
on the log

[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB

It does not continue after this point.Is there somewhere besides jboss.jcml that
I must look?

my CMP beans continue to work but my BMP bean test is now giving the following
message...

[ShipBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
   javax.ejb.EJBException
[ShipBean] javax.naming.NameNotFoundException: jdbc not bound
[ShipBean]  at org.jnp.server.NamingServer.getBinding(NamingServer.java:474)
[ShipBean]  at org.jnp.server.NamingServer.getBinding(NamingServer.java:482)
[ShipBean]  at org.jnp.server.NamingServer.getObject(NamingServer.java:488)
[ShipBean]  at org.jnp.server.NamingServer.lookup(NamingServer.java:254)
[ShipBean]  at org.jnp.server.NamingServer.lookup(NamingServer.java:257)

I must still be missing something.  Here is the java code that I am using

Connection con = null;
   PreparedStatement ps = null;
   try {
 con = this.getConnection();
 ps = con.prepareStatement(
  insert into Ship (id, name, capacity, tonnage)  +
  values (?,?,?,?));
 ps.setInt(1, id);
 ps.setString(2, name);
 ps.setInt(3, capacity);
 ps.setDouble(4, tonnage);
...
// here is the connection methodmaybe the problem is here
private Connection getConnection() throws SQLException {
 try {
   Context jndiCntx = new InitialContext();
   DataSource ds =
   (DataSource)jndiCntx.lookup(java:comp/env/jdbc/mySQLDB);
   return ds.getConnection();
 }
 catch (NamingException ne) {
   throw new EJBException(ne);
 }
   }

Thanks again for your help!




Thanks Tim!I appreciate your help. Here is what 
my jboss.jcml JDBC section now looks like, after following your suggestion. 
!-- JDBC --mbean 
code="org.jboss.jdbc.JdbcProvider" 
name="DefaultDomain:service=JdbcProvider"attribute 
name="Drivers"org.gjt.mm.mysql.Driver/attribute/mbeanmbean 
code="org.jboss.jdbc.XADataSourceLoader" 
name="DefaultDomain:service=XADataSource,name=mySQLDB"attribute 
name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attributeattribute 
name="PoolName"m

Re: [JBoss-user] NoClassDefFoundError: Referencing an EJB from another in a different jar file

2001-07-10 Thread tim . haley



Robert,
It sounds like you have your session beans in separate jar files.

If so, either

1) Include the Home and Remote Interfaces of the called session bean in the
calling session beans jar file

2) Use jboss.xml to create the link between the ejb-ref and the Global namespace
jndi-names that reference them.  If you use the jboss.xml option then you will
also need to include a Class-Path entry in your manifest.mf file.

For example:

 ---
ejb-jar.xml (SessionBeanA):

ejb-jar
 enterprise-beans
   session
 ejb-nameSessionBeanA/ejb-name
 homecom.acme.ejb.SessionAHome/home
 remotecom.acme.ejb.SessionA/remote
 ejb-classcom.acme.ejb.SessionABean/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type
   /session
 /enterprise-beans
...
/ejb-jar
 ---
ejb-jar.xml (SessionBeanB):

ejb-jar
 enterprise-beans
   session
 ejb-nameSessionBeanB/ejb-name
 homecom.acme.ejb.SessionBHome/home
 remotecom.acme.ejb.SessionB/remote
 ejb-classcom.acme.ejb.SessionBBean/ejb-class
 session-typeStateless/session-type
 transaction-typeContainer/transaction-type
 ejb-ref
ejb-ref-nameejb/SessionA/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeSessionAHome/home
remoteSessionA/remote
 /ejb-ref
   /session
 /enterprise-beans
...
/ejb-jar
 ---
jboss.xml (SessionBeanA):

jboss
 securefalse/secure
 enterprise-beans
   session
 ejb-nameSessionBeanA/ejb-name
 jndi-namecom/acme/ejb/SessionA/jndi-name
 configuration-nameStateless SessionBean/configuration-name
   /session
 /enterprise-beans
/jboss
---
jboss.xml (SessionBeanB):

jboss
 securefalse/secure
 enterprise-beans
   session
 ejb-nameSessionBeanB/ejb-name
 jndi-namecom/acme/ejb/SessionB/jndi-name
 configuration-nameStateless SessionBean/configuration-name
 ejb-ref
ejb-ref-nameejb/SessionBeanA/ejb-ref-name
jndi-namecom/acme/ejb/SessionA/jndi-name
 /ejb-ref
   /session
 /enterprise-beans
/jboss
---
manifest.mf (SessionBean B):

Class-Path: ./SessionBeanA.jar
---

- Original Message -
Date: Tue, 10 Jul 2001 09:30:38 -0700 (PDT)
From: Robert Bachan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: [JBoss-user] NoClassDefFoundError: Referencing an EJB from another in a
different jar file
Sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-To: [EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]?subject=help
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user,   
mailto:[EMAIL PROTECTED]?subject=subscribe
List-Id: The JBoss User main mailing list jboss-user.lists.sourceforge.net
List-Unsubscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user, 
mailto:[EMAIL PROTECTED]?subject=unsubscribe
List-Archive: http://lists.sourceforge.net/archives//jboss-user/


Hi Guys,
fairly new to JBoss and trying to call a session bean
from another.
I've installed a security manager but and the JNDI
bean context lookup is fine, but when I try to cast
the Home Interface I get:

[CompanySearchBean] TRANSACTION ROLLBACK
EXCEPTION:com/knet/session/utils/UtilitiesHome; nested
exception is:
 java.lang.NoClassDefFoundError:
com/knet/session/utils/UtilitiesHome
[CompanySearchBean] java.lang.NoClassDefFoundError:
com/knet/session/utils/UtilitiesHome
[CompanySearchBean]  at
com.knet.session.companysearch.CompanySearchBean.listCompanies(CompanySearchBean.java:48)


if any ideas please let me know,
Thanks alot in advance.

Robert Bachan




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] IT'S ALIVE!!!!!

2001-07-10 Thread tim . haley



Is it still alive?

I was in the middle of posting a new topic and the server went away.  I can no
longer connect to it.

Cannot find server or DNS Error

 Original Message 

From: marc fleury [EMAIL PROTECTED]
To: Jboss-User@Lists. Sourceforge. Net [EMAIL PROTECTED],
Jboss-Development@Lists. Sourceforge. Net
[EMAIL PROTECTED]
Date: Tue, 10 Jul 2001 14:07:12 -0400
Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Importance: Normal
Subject: [JBoss-user] IT'S ALIVE!
Sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-To: [EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]?subject=help
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user,   
mailto:[EMAIL PROTECTED]?subject=subscribe
List-Id: The JBoss User main mailing list jboss-user.lists.sourceforge.net
List-Unsubscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user, 
mailto:[EMAIL PROTECTED]?subject=unsubscribe
List-Archive: http://lists.sourceforge.net/archives//jboss-user/



www.jboss.org/forums


so go and bang on it, might go down for some maintainance but let's see how
much fire we can bring on it.

It is Jive/Jetty/JBoss

you go girl! bring it on!

marcf

PS: jboss-user is dead! long live jboss-forums!
_
Marc Fleury, Ph.D
[EMAIL PROTECTED]
_



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] ONLINE FORUM AVAILABLE

2001-07-02 Thread tim . haley



marcf wrote:
 yep we will put it on 80 when we go final,
 BUT USE IT PEOPLE ARE NOT BANGING ON IT AS MUCH AS WE WANTED
 COME ON

Until it gets put on port 80 those of us who are behind a firewall still can't
_bang_ on it at all!

When will it be moved over?



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: Re: [JBoss-user] Casting home interface to correct bean type

2001-07-02 Thread tim . haley



I haven't done this yet, but eventually I will have to.

My intended solution was to have a single Home/Remote Interface pair and just
provide multiple implementations of the bean class.  Each bean would be
registered with a separate name in JNDI and the client would just look up the
version of the bean that it needs.  Since they all have the same Home/Remote
Interface pair, the casting would be exactly the same for all implementations.

Is this not the expected way to do this in J2EE?

- Tim Haley


- Original Message -
From: Chris Adams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 3:17 PM
Subject: [JBoss-user] Casting home interface to correct bean type


 Hi,

 Need some help with remote casting objects when using ejb's

 I'm going to have a set of bean which each represent a form. Each for has
 the same set of methods, but they need to be independent ejb's because
each
 has different details.

 The client is a servlet, which will receive a parameter
 the type of form to return. This then needs to get the home interface of
 the bean. I am going to have a properties file which pairs the form name
to
 it's home interface class name.

 My problem is that the lookup method just returns an object, so how can I
 cast this object to the correct home interface, as the type of form is not
 know until the servlet is called.

 I've tried creating standard interfaces, which all form beans could
inheret
 from, but came up with all sort of problems.

 I could use relfection to call the methods, but would prefer not to. Any
 ideas.

 Many Thanks

 Chris Adams



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Suggested way of calling Session Beans from JSP

2001-06-26 Thread Tim Yates

I use an intermediate javabean...

it seems to keep the jsp (which natuarlly tends towards chaos) cleaner...

Tim.


- Original Message -
From: Devraj Mukherjee [EMAIL PROTECTED]
To: JBoss List Serve [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 2:17 PM
Subject: [JBoss-user] Suggested way of calling Session Beans from JSP


 Just wondering if some of you can tell me what is the suggested way of
 calling a session bean from a JSP file, should I call it directly or use a
 intermediate javabean for it?

 Devraj


 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: RE: [JBoss-user] JMS: Simple question!

2001-06-25 Thread tim . haley



Whenever you have a JNDI lookup question, you should first check out JNDIView
from the JMX Agent view  page on your server:  http://localhost:8082  follow
the service=JNDIView link under DefaultDomain and select the list button.

It will give you a tree listing of the fully qualified names from each namespace
to everything registered.  Most of the time, that will answer your questions.

- Tim

Message: 11
Message-ID: [EMAIL PROTECTED]
From: Sternagel Annegret (PN-SYS/DAS) [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
Subject: RE: [JBoss-user] JMS: Simple question!
Date: Mon, 25 Jun 2001 14:37:42 +0200
MIME-Version: 1.0
Content-Type: text/plain
Sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-To: [EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]?subject=help
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user,   
mailto:[EMAIL PROTECTED]?subject=subscribe
List-Id: The JBoss User main mailing list jboss-user.lists.sourceforge.net
List-Unsubscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user, 
mailto:[EMAIL PROTECTED]?subject=unsubscribe
List-Archive: http://lists.sourceforge.net/archives//jboss-user/


You must lookup queue/userQueue

 -Original Message-
 From:   Keerthi P [SMTP:[EMAIL PROTECTED]]
 Sent:   Montag, 25. Juni 2001 14:14
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] JMS: Simple question!

 Hi all,
 Could someone tell me how to look up a queue in
 Jboss... I have a created a queue by name userQueue,
 by specifying it in jbossmq.xml.. and i am trying to
 look up the same in a sample application.. but it
 throws NameNotFoundException: the code is here...

 Properties env = new Properties();
 env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
 org.jnp.interfaces.NamingContextFactory);
 env.setProperty(Context.PROVIDER_URL,
 localhost:1099);
 env.setProperty(Context.URL_PKG_PREFIXES,
 org.jboss.naming);

 InitialContext ic=new InitialContext(env);

 Queue q=(Queue)ic.lookup(userQueue);

 Thanks in advance..
 Keerthi

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Jboss build problem

2001-06-22 Thread Tim Kang - Syoni Communications Inc.

Hi

I am trying to build jboss from its source. When I ran build.sh, I get

BUILD FAILED

java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
117)
at
org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.jav
a:706)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)

I am not sure what the problem is but do I need to install ANT?

Thanks in advance


_
Tim Kang
Database Developer
Syoni Communications Inc.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] closing PreparedStatements

2001-06-21 Thread Tim Yates

Wotcha!

 That's what I did.  Sorry for not supplying the implementation for
 that helper.  'ere it is.

 public static void close( Connection c, PreparedStatement s, ResultSet
r )
 {
 try {
 if( c != null ){
 c.close();
 }
 if( s != null ){
 s.close();
 }
 if( r != null ){
 s.close();
 }
 }
 catch( SQLException e ){
 throw new EJBException( ExtendedJDBC: close:  + e.getMessage() );
 }
 }


did you mean :

r.close() for the last one?

Have you tried changing the order?

Does that help?

I always close non-dependant things first, so resultset, statement,
connection, in that order

Tim.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] closing PreparedStatements

2001-06-21 Thread Tim Yates

Hooray!!

And I was worried that I was just being hopelessly paranoid ;-)

Thanks for that :-) (I too use Oracle)

Tim.

- Original Message -
From: Allen fogleson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 3:44 PM
Subject: Re: [JBoss-user] closing PreparedStatements


 also I have always closed things in reverse order.. resultset,
 preparedstatement, connection. it may or may not matter depending on the
 drivers i guess, but better safe than sorry. amazingly ihave seen problems
 with oracle and closing connections before resultsets and prepared
 statements. at least that is all we could ever figure out the problem was.




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Two Questions: Connection is broken and POP3 locking

2001-06-21 Thread Tim Sawlor

I'm writing an app that uses the included POP3 provider for
sending/receiving emails. Everything is working great, except for two
problems: 

I am occasionally getting a Connection is broken message from
Hypersonic, when I am trying to create an CMP entity bean. It happens
intermittantly, and I haven't been able to piece together the exact set
of circumstances that causes it yet. Anyone have any ideas?

The second thing, is when I am trying to retrieve new mail messages,
occasionally a call to MimeMessagePart.getContent() just hangs. No
exception, no chewing up CPU time, it just doesn't return. It seems to
happen when receiving certain messages created using MS Outlook. 

I realize that both of these are outside the normal scope of jBoss, but
I've had a lot of trouble tracking down any answers on these, and
figured I'd see if anyone else had any ideas.

Thanx in advance,
Tim

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jboss.org web site broken?

2001-06-15 Thread Tim Yates

If you saw Marc Fleury's email from yeasterday, you will see:

snip
Again for the next few days the website will be a little messy and under
construction, thanks for your understanding,

regards

marcf
/snip

They are moving the website to run on jBoss...

Tim.

- Original Message - 
From: Richard Kasperowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 1:49 PM
Subject: [JBoss-user] jboss.org web site broken?


 It looks like it's not serving JSP.  Who can fix it?
 
 Thanks,
 
 -- 
 Richard Kasperowski (mailto:[EMAIL PROTECTED])
 Tel: 617-576-1552, Fax: 617-576-2441
 http://www.altisimo.com/
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] I'm I tripping? Or does JBoss 2.2.1 call ejbStore() on my ejb way too often??

2001-06-13 Thread Tim Yates

Have a look here

http://developer.java.sun.com/developer/technicalArticles/ebeans/sevenrules/

especially Rule 3 :-)

Tim.

- Original Message -
From: Georg Rehfeld [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 4:56 AM
Subject: Re: [JBoss-user] I'm I tripping? Or does JBoss 2.2.1 call
ejbStore() on my ejb way too often??


 Hi Robert,

 Robert Finneran wrote:

  The JBoss container seems to call ejbStore() on my BMP-style
  entity bean very often.
  This results in multiple unecessary UPDATE's to my base table.
 
  When does JBoss decide it should call ejbStore()?

 It stores at the end of every transaction and is required to do
 so by the EJB specification.

 RTFM http://www.jboss.org/documentation/HTML/ch06s08.html under
 the commit-option tag. Besides, interpret F as you want, but
 I meant FINE!

 regards
 Georg
  ___   ___
 | + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
 |_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Cannot start JBoss+Tomcat :(

2001-06-06 Thread Tim Yates

Looks ok to me...

- Original Message - 
From: Lachezar Dobrev 
To: JBoss Mailing-list 
Sent: Wednesday, June 06, 2001 12:33 PM
Subject: [JBoss-user] Cannot start JBoss+Tomcat :(


   Nothing between the tags :((
   Am i doing something WRONG?



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] EmbeddedTomcatServiceSX problem when using ConfigFile attribute

2001-06-01 Thread Tim Taylor

If the distributed jboss.jcml is modified to use the new ConfigFile
attribute, I get the attached stack trace.

I really would like to use that attribute.  Before now, I have maintained my
own version of EmbeddedTomcatService with exactly that attribute.  I was
hoping to convert to pure JBoss/Tomcat and EmbeddedTomcatServiceSX and get
rid of my custom code.

My jboss.jcml entry looks like this:

  !-- Uncomment to add embedded tomcat service --
  mbean code=org.jboss.tomcat.EmbeddedTomcatServiceSX
name=DefaultDomain:service=EmbeddedTomcat
attribute
name=ConfigFile/opt/JBoss-2.2.2_Tomcat-3.2.2/tomcat/conf/server.xml/attr
ibute
  /mbean

I just set the file path to point to the default server.xml file in the
distribution.  Looking at the MBean for EmbeddedTomcatServiceSX in JMX,
shows that the ConfigFile attribute setting did take place.

A quick look at the code of EmbeddedTomcatServiceSX.java...  Would it work
if the empty  was changed to -config?

if( configFile != null )
{
args = new String[]{, configFile};
}

Stack trace follows.

Thanks in advance,

Tim Taylor

$ run.sh tomcat
JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
jboss.home = /opt/JBoss-2.2.2_Tomcat-3.2.2/jboss
Using JAAS LoginConfig:
file:/opt/JBoss-2.2.2_Tomcat-3.2.2/jboss/conf/tomcat/aut
h.conf
Using configuration tomcat
[Info] Java version: 1.3.0_02,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Server VM 1.3.0_02,Sun Microsystems Inc.
[Info] System: Linux 2.2.16-22,i386
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 25 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[EmbeddedTomcatSX] Initializing
[EmbeddedTomcatSX] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[Service Control] Initialized 25 services
[Service Control] Starting 25 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://lurch.strata-group.com:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Starting jnp server
[Naming] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server
Sock
etFactory=null
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.securi
ty.SubjectSecurityProxyFactory@41f10e
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Database started
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
Enhydra InstantDB - Version 3.26
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies In
c.
Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies,
Inc.
All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[Container factory] Starting
[Container factory] Started
[EmbeddedTomcatSX] Starting
[EmbeddedTomcatSX] Starting EmbeddedTomcatSX
[EmbeddedTomcatSX] OK
[EmbeddedTomcatSX] Started
[JBossMQ] Starting
[JBossMQ] Server Version 0.8 Started
[JBossMQ] Started
[DefaultJMSProvider] Starting
[DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to
java:/Defa
ultJMSProvider

RE: [JBoss-user] JDK 1.4 Beta Release Today!

2001-05-24 Thread Tim McCune

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I tried it for a while today.  Swing looks quite buggy, and I ran
into a bug in the version of Xalan (2.0.1) that's built into the JDK.
 I have a feeling that with all the new features in 1.4, this will be
in beta for a long time. ;-)

 -Original Message-
 From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 9:44 PM
 To: JBoss 2
 Subject: Re: [JBoss-user] JDK 1.4 Beta Release Today!
 
 
 Anyone tried it yet?
 
 Unfortunately I am running my dev stuff on MacOS X so I can't 
 test it just
 yet...
 
 Have to put it on one of the Linux staging servers at work...
 
 Also, does anyone know what Java2 1.4 should bring to us 
 EJBers and where
 the timeline for a final release sits?
 
 Hunter
 
  From: Stephan Gruschke [EMAIL PROTECTED]
  Organization: Commedia
  Reply-To: [EMAIL PROTECTED]
  Date: Thu, 24 May 2001 02:58:31 +0200
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] JDK 1.4 Beta Release Today!
  
  Hi,
  
  just want to mention that Sun has published the
  Java Standard Edition 1.4 Beta on their
  website today:
  
  http://www.javasoft.com/j2se/1.4/?frontpage-hottopics
  
  Stephan Gruschke
  
  
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com

iQA/AwUBOw3SAtUPOr8a7vy5EQIaqACeOGXSqeX5cddP5OENdME/SnaW3l0AoOQU
hr2/ycrKbMTcUoV3tq2mLIMF
=Dfmc
-END PGP SIGNATURE-

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP and BLOBs

2001-05-22 Thread Tim McCune

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to, but there is currently a pretty serious bug in JBoss
that is really holding me back:

http://sourceforge.net/tracker/index.php?func=detailaid=424059group_
id=22866atid=376685

 -Original Message-
 From: Darius Davidavicius 
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 22, 2001 9:13 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] CMP and BLOBs
 
 
 
 re hi,
 
 For BMP beans if I using Oracle 8i BLOBs works fine. 
 I'm interesting if anyone uses CMP for BLOBs storing. (not 
 necessary Oracle)
 
 site http://wamoz.com/JDBC_and_Oracle_LOB.asp tells about the 
 BMP way of data reading / writing.
 
 DD
 
  
 On Tue, 22 May 2001 16:04:23 +0200, Burkhard Vogel wrote:
 
 No, due to Oracle driver limitations.
 see http://wamoz.com/JDBC_and_Oracle_LOB.asp
 Burkhard
 - Original Message -
 From: Darius Davidavicius [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, May 22, 2001 3:20 PM
 Subject: [JBoss-user] CMP and BLOBs
 
 
  hi all,
 
  I would be thankfull if anyone advice me if it is possible 
 to map byte[]
 to the BLOB field of DB?
  I'm going to use Oracle 8i, MSSQL or PostgreSQL
  any tips, samples or links to how to would be perfect.
  Thanks in advance,
  DD
 
 
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use http://www.pgp.com

iQA/AwUBOwqSLtUPOr8a7vy5EQJhBwCg/xCYzxWOpQfzEAM2oyzKPQsZTUsAoKHL
itlmtawitB7BLbIWOzho3cfO
=be+g
-END PGP SIGNATURE-

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



  1   2   >