RE: [JBoss-user] CMP tracing?

2003-03-24 Thread Alan Yost
Nathan - I'm not sure if this will help but we tend to change the log4j.xml file found 
in the conf directory.

Uncomment out the last few lines:-

  

  

This will then print out something very similar to the SQL statements.  e.g You will 
see WHERE XYZ=? rather than WHERE XYZ=22 etc.  


hth


Al.

-Original Message-
From: Nathan Hoover [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 25 March 2003 7:53 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] CMP tracing?


Is there a way within JBoss to see exactly what SQL is being executed for a 
CMP bean as finder methods are executed?

Thanks
N



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Entity Bean Performance Tuning Help

2002-10-30 Thread Alan Yost
Georg - one thing that may help here is to create a LocalBean object outside of the 
loop and then set it each time in the loop as follows:-

  // The following for-loop is way too slow.
LocalBean localBean = null;
  for (Iterator beanIter = localBeanRefs; beanIter.hasNext();) {
localBean = (LocalBean)beanIter.next();
ValueObject valueObject = ValueObjectFactory.createValueObject(); //
...

This should reduce the overhead required in creating a localbean object each time.  In 
fact you may be able to do the same with ValueObject too.


hth


Alan.

-Original Message-
From: Georg Schmid [mailto:georg-schmid@;ti.com]
Sent: Wednesday, 30 October 2002 4:34 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help



It seems that my (and, at least to some degree, Peter's) specific
problem is misunderstood.

In my case: the problem is NOT getting the data from the database fast
(the finders execute fast enough).
I think Jboss does not have a problem there, but that's my guess, as I
do not have personal experience
with other app servers.

The performance is lost, when I try to convert the a collection of local
entity bean references
into a collection of value objects. None of the previous posts (except
Peter's) touches upon this subject.

I want to understand and, if possible, solve this 'value object
conversion speed' problem:

  Collection localBeanRefs = localHome.findBySomeCriterion(...); <--
This is not the problem (good job, Dain) !!
  Collection valueObjects = new ArrayList();

  // The following for-loop is way too slow.
  for (Iterator beanIter = localBeanRefs; beanIter.hasNext();) {
LocalBean localBean = (LocalBean)beanIter.next();
ValueObject valueObject = ValueObjectFactory.createValueObject(); //
Same as new ValueObjectImpl();
valueObjects.add( localBean.buildValueObject( valueObject ) ); //
does: valueObject.setAttr1( getAttr1() ); ...
  }

The same using JDBC: 

  ResultSet rows = myJDBCWrapper.executeQuery( query, dataSource ); <--
Needs same amount of time as finder above.
  Collection valueObjects = new ArrayList();

  // This is at least 3 times faster than the for-loop above.
  while (rows.next()) {
ValueObject valueObject = ValueObjectFactory.createValueObject();
valueObject.buildFromRow( rows ); // valueObject.setAttr1(
rows.getString(...) ); etc.
valueObjects.add( valueObject );
  }

The for-loop should be able to convert 1000 local entity bean references
per second or better for simple entity beans.

I am not interested in any CMP vs non-CMP debate. TSS may be a better
place for this.

It would be convenient, if the size of the result sets, that can be
handled using CMP, coincides with the number of rows
you should/could reasonably display in a dialog or page in your
(web-based) GUI. This would remove the need to switch
to raw JDBC, when doing the CMP equivalent of plain vanilla (for
instance) "select * from BeanTable where lastUpdate >= '10/20/2002'"
queries. That's all I hope for. 

CMP will keep getting more powerful over time. Using it is 'Making the
trend work for you'.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Dain
Sundstrom
Sent: Wednesday, October 30, 2002 01:07
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help


Emerson Cargnin - SICREDI Serviços wrote:
> 
> 
> Dain Sundstrom wrote:
> 
>> Emerson,
>>
>> I disagree with you classification that cmp is not usable.  There are
>> many people that find the performance completely with in their 
>> expectations.  It is only when you have a high expectation and a very

>> complex schema that you have problems.
> 
> 
> what I really mean was that cmp would be alot more usable : )
> 
> by the way, we are in in a doubt about a point of architecture : as i 
> discussed before somew time ago, in a very big system (like the 
> financial one i'm on) there is the need to separate the modules of it,

> like one for accounting, other for savings, etc. And each one would 
> need to talk with a couple of others. The problem : to separate and 
> allowing those to be separate deployable, you would have to get rid of

> cmr's and make the modules talk with each other through session 
> facades. In this case even with cmr read-ahead would do nothing to 
> avoid the n*cmr needed to access each entity. And worse, how could I 
> manage the constraints between 2 related (and module separated) 
> entities? one would need to consult the dependent module (via session 
> facade) to see if it could be deleted...
> 
> I don't know what going be the solution, throwing entities away, or
> making up a monolitic system using cmr.
> 
> any suggestions?

Yes, in 4.0 there will be an abstraction layer between the cmp view of 
the world and the physical storage.  This means that it will be possible

to map several cmp beans in different applications to the same store. 
The real t

RE: [JBoss-user] Re: "removing bean lock and it has tx set" - revisited

2002-10-27 Thread Alan Yost
Adrian - thanks for the clarification of which JBoss versions this problem has been 
fixed in.  We have managed to code a work around for this as indicated below.  
Essentially, we are explicitly deleting the related child entities by cycling thru the 
related collection and applying the remove method.  i.e  We are manually performing 
the cascade delete at this stage.  When we do eventually upgrade to a version >=3.0.4 
we shall re-examine this area and see how we go.

Thanks again for your support

Regards


Alan.


public void removeJob(String erpId) throws RemoveException, FinderException, 
ObjectNotFoundException
{
  JobLocal job = jobHome.findByErpId(erpId);
  // TKH 25/10/02 added code to remove assignments before removing job as a work 
around for the 
  // IllegalStateException which is thrown if JBoss has been restarted since the 
job was created. 
  AssignmentLocal assignment;
  Collection assignments = job.getAssignments();
  Object[] assignmentsArray = assignments.toArray();
  for (int i = 0; i < assignmentsArray.length; i++)
  {
  ((AssignmentLocal) assignmentsArray[i]).remove();
  }
  job.remove();
}

 

-Original Message-
From: Adrian Brock [mailto:warjort@;hotmail.com]
Sent: Friday, 25 October 2002 5:08 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: "removing bean lock and it has tx set" -
revisited


Hello Alan,

The fix(es) are in 3.0.4 which has not yet been officially release.
But you can get it from CVS.

Try setting your cache size to something very small like 1. :-)
You should be able to reproduce the most likely cause of your
problem.

If 3.0.4 does not fix your problem, please feel free to open a bug report.

Regards,
Adrian


>From: "Alan Yost" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>,"Adrian Brock" <[EMAIL PROTECTED]>
>Subject: "removing bean lock and it has tx set" - revisited
>Date: Fri, 25 Oct 2002 14:24:16 +0800
>
>Guys - about a week ago there was a thread related to the subject matter 
>above.
>
>We still have a problem when attempting to delete an entity that has a 1:M 
>relationship using CMR 2 and a cascade delete tag.
>
>The error we receive whilst attempting to remove the parent entity is as 
>follows:-
>
>13:57:43,693 ERROR [LogInterceptor] TransactionRolledbackLocalException, 
>causedBy:
>java.lang.IllegalStateException: removing bean lock and it has tx set!
> at 
>org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:473)
> at 
>org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> at 
>org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:124)
> at 
>org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
>
>We have checked the descriptors for the relationships and these appear to 
>be the same as various examples regarding 1:M and cascade delete.  The 
>cascade delete will work in the same JBoss session that the parent and 
>child entities were created in, but will fail if the delete is attempted 
>after a restart of JBoss.
>
>We did note that in thread 
>http://www.mail-archive.com/jboss-user@;lists.sourceforge.net/msg22239.html 
>Adrian Brock indicated that he had resolved the matter after Alexey 
>Yudichev offered some assistance.
>
>If anyone could help us on this matter even we would very much appreciate 
>it.  There are various indications that this problem has been resolved in a 
>number of different JBoss versions - Is 3.0.2 one of them or is there a 
>work around that we require?
>
>Our Config:-
>   JBoss 3.0.2
>   Windows 2000 server
>   MySQL 2.0.11-bin.jar
>
>
>Regards and thanks in advance
>
>
>Alan.
>
>
>PS. If it helps I have included the original defect thread below...
>
>We are getting a similar error (see below) from a Stateless Session bean 
>using JBoss 3.0.2.
>We are also using the "Required" transaction attribute.  The error occurs 
>after the following sequence of events:
>1) create some data using entity beans, via a session facade
>2) Shutdown JBoss
>3) Restart JBoss
>4) Remove the data using entity beans, via a session facade
>
>Are we possibly doing something wrong or is this related to the same bug?
>
>Regards
>Chris
>
>This is the error message:
>
>2002-10-10 14:37:50,699 ERROR 
>[com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean] Failed due to 
>remote exception removing bean lock and it has tx set!; CausedByException 
>is:
>   removing bean lock and it has tx set!; CausedByException is:
>   removing bean lock and it has tx set!; Caus

[JBoss-user] "removing bean lock and it has tx set" - revisited

2002-10-24 Thread Alan Yost
Guys - about a week ago there was a thread related to the subject matter above.

We still have a problem when attempting to delete an entity that has a 1:M 
relationship using CMR 2 and a cascade delete tag.

The error we receive whilst attempting to remove the parent entity is as follows:-

13:57:43,693 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy:
java.lang.IllegalStateException: removing bean lock and it has tx set!
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimisticEJBLock.java:473)
at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:124)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)

We have checked the descriptors for the relationships and these appear to be the same 
as various examples regarding 1:M and cascade delete.  The cascade delete will work in 
the same JBoss session that the parent and child entities were created in, but will 
fail if the delete is attempted after a restart of JBoss.

We did note that in thread 
http://www.mail-archive.com/jboss-user@;lists.sourceforge.net/msg22239.html Adrian 
Brock indicated that he had resolved the matter after Alexey Yudichev offered some 
assistance.

If anyone could help us on this matter even we would very much appreciate it.  There 
are various indications that this problem has been resolved in a number of different 
JBoss versions - Is 3.0.2 one of them or is there a work around that we require?

Our Config:-
JBoss 3.0.2 
Windows 2000 server
MySQL 2.0.11-bin.jar  


Regards and thanks in advance


Alan.


PS. If it helps I have included the original defect thread below...

We are getting a similar error (see below) from a Stateless Session bean using JBoss 
3.0.2.
We are also using the "Required" transaction attribute.  The error occurs after the 
following sequence of events:
1) create some data using entity beans, via a session facade
2) Shutdown JBoss
3) Restart JBoss
4) Remove the data using entity beans, via a session facade

Are we possibly doing something wrong or is this related to the same bug?

Regards
Chris

This is the error message:

2002-10-10 14:37:50,699 ERROR 
[com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean] Failed due to remote 
exception removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; nested exception is: 
javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has 
tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!
javax.transaction.TransactionRolledbackException: removing bean lock and it has tx 
set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; nested exception is: 
javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has 
tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!; CausedByException is:
removing bean lock and it has tx set!
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:230)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
at org.jboss.ejb.Container.invoke(Container.java:720)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy61.removeJob(Unknown Source)
at 
com.yambay.mdrover.erp.proxy.session.ERPTestManagerBean.clearCache(ERPTestManagerBean.java:661)

[JBoss-user] Entity Bean in a sar that depends upon mqSqlDS...

2002-10-07 Thread Alan Yost

Guys - I have battled thru a few dependency issues regarding ears and jars and sars, 
though this one I have left for a while but now is the time for me to resolve it.
 
If I deploy my two ears and a sar (man what language is this anyway :-)) once JBoss 
3.0.2 is running everything is ok.
 
However, if I restart JBoss with them in the deploy directory then I get a problem 
with the sar file.  The sar file includes an entity bean that persists some data 
associated with a timer that is also in the sar file.  
 
The entity bean persists to a mySQL database using CMP 2.0 and the problem I get is 
that the entity bean fails to deploy because it cannot find the data source 
java:/MySqlDS.  I suspect that this is getting loaded later and that I may be able to 
use some form of dependency tags to sort this out.  I just don't know if or where 
these tags should exist.  Or if there is some other standard way of resolving the 
problem.
 
I have started reading the paid for documentation but it looks like I have a lot of 
reading and I figured somebody in this group may be able to point me in the right 
direction.
 
 
Any help out there?
 
 
Regards and thanks in advance
 
 
Alan.

<>

RE: [JBoss-user] Error When Starting JBoss 3.0.2

2002-09-09 Thread Alan Yost

Phuwarin - Are you running an RMI server that typically uses port 1099 or possibly 
another instance of JBoss.  You problem is related to something else using the port 
1099.  
 
 
 
hth
 
 
Alan.
 
-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Mon 9/09/2002 9:18 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: [JBoss-user] Error When Starting JBoss 3.0.2




I got this error when start JBoss 3.0.2. Can anyone help?

20:01:11,528 INFO  [NamingService] Starting
20:01:11,578 INFO  [NamingService] Starting jnp server
20:01:11,718 ERROR [NamingService] Could not start on port 1099
java.net.BindException: Address in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
 at java.net.ServerSocket.(ServerSocket.java:170)
 at

javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:156)
 at org.jnp.server.Main.start(Main.java:221)
 at org.jboss.naming.NamingService.startService(NamingService.java:156)
 at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
 at java.lang.reflect.Method.invoke(Native Method)
 at

org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

 at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
 at

org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
 at $Proxy0.start(Unknown Source)
 at
org.jboss.system.ServiceController.start(ServiceController.java:396)
 at java.lang.reflect.Method.invoke(Native Method)
 at

org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

 at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
 at $Proxy3.start(Unknown Source)
 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
 at java.lang.reflect.Method.invoke(Native Method)
 at

org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

 at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
 at org.jboss.Main.boot(Main.java:142)
 at org.jboss.Main$1.run(Main.java:375)
 at java.lang.Thread.run(Thread.java:484)
20:01:11,758 INFO  [NamingService] Listening on port 1099
20:01:11,798 INFO  [NamingService] Started



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>

RE: [JBoss-user] eclipse with xdoclet and jboss

2002-08-30 Thread Alan Yost

Bruce - I had a similar problem to what you are describing yesterday.  In the end it 
turned out to be a problem with my paths in the build.xml.  I have been using JBuilder 
with Ant and recently migrated over to Eclipse and Ant.  I had to do quite a bit of 
rework to get the builds working.
 
What are your Classpath settings under the Ant preferences dialog? - You should have 
four classes that come with Eclipse (ant.jar, jakarta-ant-1.4.1-optional.jar, 
xmlParserAPIs.jar, xercesImpl.jar ) and the tools.jar from your JDK.
 
In addition, I found that I needed to add extra paths in the actual build.xml for 
xdoclet to work.
 
PS.  I think that Eclipse is a fantastic product considering it is free.  My first 4 
hours with it were miserable (with probs like you describe) but once you get passed 
these it is a great environment.
 
Regards
 
 
Alan.

-Original Message- 
From: Bruce Scharlau [mailto:[EMAIL PROTECTED]] 
Sent: Fri 30/08/2002 10:47 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: [JBoss-user] eclipse with xdoclet and jboss



At 14:45 30/08/2002 +0100, you wrote:

>Bruce,
>I think this is quite common problem. Try sticking your JDK's tools.jar
>into the list of ant libraries. Go to Preferences/External Tools/Ant and
>add it there.
>
>Personally, I think Eclipse is wonderful. However, I've never learnt EMACS
>in any of its forms.
>Ciao,
>Jonathan O'Connor
>Ph: +353 1 872 3305
>Mob: +353 86 824 9736
>Fax: +353 1 873 3612
>
>


Jonathan,  thanks. Tried that, still no luck. For some reason eclipse
doesn't use the same java.class.path variable that gets built by ant, (ie
picks up the system classpath setting), but uses it's own, which points to
a startup.jar.

Bruce



>Hi all,
>
>I'm trying out eclipse (instead of xemacs) for doing projects with JBoss,
>but have encountered a problem.
>
>The Jboss3.0 Example with the template compiles, and builds fine in xemacs
>with the xdoclets, but doesn't do so in eclipse.
>
>The stacktrace shows:
>javadoc: In doclet class xdoclet.DocletTask$DocletMain,  method start has
>thrown an exception
>java.lang.reflect.InvocationTargetException
>java.lang.NoClassDefFoundError: 
org/apache/tools/ant/types/EnumeratedAttribute
>
>When I check the ant.jar, EnumeratedAttribute is there, and ant of course
>starts fine, so what's the problem?
>
>Any clues greatly appreciated.
>
>
>cheers,
>
>Bruce
>
>Dr. Bruce Scharlau
>Dept. of Computing Science
>University of Aberdeen
>Aberdeen AB24 3UE
>01224 272193
>http://www.csd.abdn.ac.uk/~bscharla
>mailto:[EMAIL PROTECTED]
>
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>

cheers,

Bruce

Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>

RE: [JBoss-user] eclipse with xdoclet and jboss

2002-08-30 Thread Alan Yost

Guys - may I also add that you can set the xdoclet.lib.dir (xdoclet.home) and 
ant.lib.dir (ant.home) in your build.xml file with environment variables by using the 
following syntax:-
 




 
The key to everything is the first line of code.

I found this useful little tip in the xdoclet doco.  It works for Windows - not sure 
about other environments.  Very useful when working with other team members who have 
different paths to you.


Regards


Alan.

-Original Message- 
From: Kevin Conner [mailto:[EMAIL PROTECTED]] 
Sent: Fri 30/08/2002 10:43 PM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: RE: [JBoss-user] eclipse with xdoclet and jboss



> Yep, it's javadoc complaining.  The initial classpath in
> eclipse does not contain
> the ant libraries and it is this classpath that is passed to
> javadoc.  I bodged
> this by changing the antsupport library in eclipse to pass
> through the classpath.
> I remember changing AntRunner and InternalAntRunner but I
> will need to check what
> changed.

One thing I forgot to add.  You do not need to bodge the eclipse
ant library to get it working.  The other way is to include the
ant jars in the xdoclet classpath, i.e. something like: -

  



  

  

...



Please try a variation of this, it has been copied by hand from
one of my build files. :-)

Good luck,
Kev

Kevin Conner
Orchard Information Systems Limited
Newcastle Technopole, Kings Manor
Newcastle Upon Tyne, NE1 6PA. United Kingdom
Registered in England, Number 1900078
Tel: +44 (0) 191-2032536  Fax: +44 (0) 191 2302515


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>

[JBoss-user] RE: Are there any timer service changes between Jboss 3.0.0 and JBoss 3.0.1

2002-08-27 Thread Alan Yost

Ok - I have solved my own problem.  Turns out that I need to create and deploy a 
separate file jboss-timer-service.xml that contains the following code:-
 






















 









 

Thanks anyway

 

 

Regards

 

 

Alan.

-Original Message- 
From: Alan Yost on behalf of Alan Yost 
Sent: Tue 27/08/2002 3:14 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Are there any timer service changes between Jboss 3.0.0 and JBoss 
3.0.1


I have an MBean that registers with the JBoss timer service to enable a 
polling facility that works fine with 3.0.0 but fails with 3.0.1. 
 
It seems that everytime I run the following code:-
 

Set lBeans = lServer.queryMBeans( new 
ObjectName("DefaultDomain","service","Timer" ), null );

if( !lBeans.isEmpty() ) ...



- the lBeans set is always empty.  

I have updated my jboss-service.xml file to include the following code:











and as indicated previously this works fine in 3.0.0.

 

If I look at the timer in http://localhost:8080/jmx-console it appears that 
the timer has started.  It's just that my MBean does not seem to be able to locate it 
anymore...

Does anyone have any idea what I may be missing, or if there is a subtle 
change that I am not aware of between 3.0.0 and .1 that is causing this problem?

 

Regards and thanks in advance

 

Alan.


<>

[JBoss-user] Are there any timer service changes between Jboss 3.0.0 and JBoss 3.0.1

2002-08-27 Thread Alan Yost

I have an MBean that registers with the JBoss timer service to enable a polling 
facility that works fine with 3.0.0 but fails with 3.0.1. 
 
It seems that everytime I run the following code:-
 

Set lBeans = lServer.queryMBeans( new ObjectName("DefaultDomain","service","Timer" ), 
null );

if( !lBeans.isEmpty() ) ...



- the lBeans set is always empty.  

I have updated my jboss-service.xml file to include the following code:











and as indicated previously this works fine in 3.0.0.

 

If I look at the timer in http://localhost:8080/jmx-console it appears that the timer 
has started.  It's just that my MBean does not seem to be able to locate it anymore...

Does anyone have any idea what I may be missing, or if there is a subtle change that I 
am not aware of between 3.0.0 and .1 that is causing this problem?

 

Regards and thanks in advance

 

Alan.


<>

RE: [JBoss-user] MySql with Jboss 3.0.1

2002-08-20 Thread Alan Yost

David - I am working with Chris on this one.  I have just tested this and it works a 
treat.  I know that Chris (and I'm sure many others) have gone thru many painful 
experiences to get everything running (in 3.0.0) -coming up to speed with J2EE, 
XDoclet, Ant, JBoss, mySQL etc in the space of several months.  Sometimes we may not 
always look in the right place first time around - we apologise for this, maybe it's 
exhaustion, maybe oversight but thanks for coming up with the right answer so quickly. 
 We shall try to remember "the archives, the archives"
 
 
Regards
 
 
Alan.
 

-Original Message- 
From: David Jencks [mailto:[EMAIL PROTECTED]] 
Sent: Tue 20/08/2002 8:13 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: [JBoss-user] MySql with Jboss 3.0.1



Use the config file that comes with a release of jboss, or compare VERY
carefully, or look at the message that tells you what the problem is and
see if all the mbeans needed are actually there, or look at the mailing
list where this problem has been answered 20 or so times.

   jboss.security:name=JaasSecurityManager

needs to be

   jboss.security:service=JaasSecurityManager

in your mysql-service.xml

david jencks




On 2002.08.20 02:06:49 -0400 Chris Pinfold wrote:
> I am having problems deploying mysql-service.xml (MySql Datasource) using
> Jboss 3.0.1.
> This worked fine in 3.0.0, but now I get the folllowing error:
>
> I have attached the mysql-service.xml file.
>
> 05:00:51,079 ERROR [URLDeploymentScanner] MBeanException: Exception in
> MBean operation 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
>   
> MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
> [ObjectName: jboss.jca:service=LocalTxCM,name=MySqlDS
>  state: CONFIGURED
>  I Depend On:   jboss.jca:service=LocalTxDS,name=MySqlDS
>   jboss.jca:service=LocalTxPool,name=MySqlDS
>   jboss.jca:service=CachedConnectionManager
>   jboss.security:name=JaasSecurityManager
>   jboss.jca:service=RARDeployer
>
>  Depends On Me: ]
>
>
>  <>
>
> 
> 
> 
> 
> 
> MySql with Jboss 3.0.1
> 
> 
> 
>
> I am having problems deploying
> mysql-service.xml (MySql Datasource) using Jboss 3.0.1. 
>
> This worked fine in 3.0.0, but now I get
> the folllowing error:
> 
>
> I have attached the mysql-service.xml
> file.
> 
>
> 05:00:51,079 ERROR [URLDeploymentScanner]
> MBeanException: Exception in MBean operation
> 'checkIncompleteDeployments()'
>
> Cause: Incomplete Deployment
> listing:
>
> Packages waiting for a deployer:
>
>   
>
> Incompletely deployed packages:
>
>   
>
> MBeans waiting for classes:
>
>   
>
> MBeans waiting for other MBeans:
>
> [ObjectName:
> jboss.jca:service=LocalTxCM,name=MySqlDS
>
>  state: CONFIGURED
>
>  I Depend On:  
> jboss.jca:service=LocalTxDS,name=MySqlDS
>
>  
> jboss.jca:service=LocalTxPool,name=MySqlDS
>
>  
> jboss.jca:service=CachedConnectionManager
>
>  
> jboss.security:name=JaasSecurityManager
>
>   jboss.jca:service=RARDeployer
> 
>
>  Depends On Me: ]
> 
> 
>
> 
> <> 
> 
>
> 
> 
>
> 
>
> 
> 
> 
> 
> 
>
> 
>
>   
>   
>   
>   
>
>name="jboss.jca:service=LocalTxCM,name=MySqlDS">
>
>
> 
> 
>
> 
>   
>name="jboss.jca:service=LocalTxDS,name=MySqlDS">
>
> MySqlDS
>
> 
>   
>  
type="java.lang.String">jdbc:mysql://localhost:3306/mDrover
>  type="java.lang.String">org.gjt.mm.mysql.Driver
> 
>   

RE: [JBoss-user] MySql with Jboss 3.0.1

2002-08-20 Thread Alan Yost

Jon - Thanks for your reply.  Is there a work-around for this "bug"?
 
What do you do to get around it?  Is there any documentation that we can read that may 
assist in resolving this?
 
 
Thanks in advance
 
 
Alan.

-Original Message- 
From: Jon Haugsand [mailto:[EMAIL PROTECTED]] 
Sent: Tue 20/08/2002 5:39 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: [JBoss-user] MySql with Jboss 3.0.1



* Chris Pinfold
> I am having problems deploying mysql-service.xml (MySql Datasource) using
> Jboss 3.0.1.
> This worked fine in 3.0.0, but now I get the folllowing error:
>
> I have attached the mysql-service.xml file.
>
> 05:00:51,079 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
> operation 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
>   
> MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
> [ObjectName: jboss.jca:service=LocalTxCM,name=MySqlDS
>  state: CONFIGURED
>  I Depend On:   jboss.jca:service=LocalTxDS,name=MySqlDS
>   jboss.jca:service=LocalTxPool,name=MySqlDS
>   jboss.jca:service=CachedConnectionManager
>   jboss.security:name=JaasSecurityManager
>   jboss.jca:service=RARDeployer
>
>  Depends On Me: ]

This typically happens during startup where it seems that JBoss reads
your bean jar file before it reads the data source definition.
Somehow this must be an bug in JBoss who should read all files in
server/xx/deploy in alphabetic order or some other deterministic
fashion.

--
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=urceforge1&refcode1=3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>

RE: [JBoss-user] HELP : JBoss 3.0.x isn't logging ANYRuntimeExceptions!!

2002-07-25 Thread Alan Yost

James - I'm a relative newbie to EJB, but have used log4j in the past.  What I'm not 
sure of is how is the log4j first configured for my EJBs?   
 
In a normal java application I would include the 
PropertyConfigurator.configure(myConfigFile) statement in the main(String[] args) 
block at the start of my application.  This however, goes out the window with 
stateless session beans and Entity beans. 
 
I'm not sure as to how JBoss will maintain one instance of my Logger class.  Will my 
classes (even just plain old java classes that are called by a servlet etc) somehow 
use the same instance of the logger class that JBoss is using - and therefore I can 
use the log4J settings that come with JBoss, of do I need to include a separate 
configuration file and if so when would I initialise it?
 
Any help or words of wisdom would be appreciated.
 
 
Regards
 
 
Alan.
 
 
 

<>

RE: [JBoss-user] RE: JBoss timer-service examples

2002-07-18 Thread Alan Yost

Thanks Adrian / et al - I got it working. - Had a problem with the keeping the timer 
going indefinately but after a bit of fiddling and luck it is all happening.
 
 
Cheers
 
 
 
Alan.

-Original Message- 
From: Adrian Brock [mailto:[EMAIL PROTECTED]] 
Sent: Thu 18/07/2002 6:04 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: RE: [JBoss-user] RE: JBoss timer-service examples



Create a timer-service.xml in server/default/deploy
with the following content:




  
  


The scheduler service is more useful and user friendly.

Regards,
Adrian

>From: "Alan Yost" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] RE: JBoss timer-service examples
>Date: Thu, 18 Jul 2002 15:16:13 +0800
>
>Uros - I've had a chance to look at the specified link below.  Got the
>timer bean working - but I have to manually start this via locahost:8082. 
>Is there any way that I can automatically get the timer bean to start when
>JBoss starts?
>
>
>Regards
>
>
>
>Alan.
>
>-Original Message-
>From: Uroš Jurglic [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, 17 July 2002 11:02 PM
>To: '[EMAIL PROTECTED]'
>Subject: [JBoss-user] RE: JBoss timer-service examples
>
>
>This might be helpful: http://www.jboss.org/online-manual/HTML/ch11s58.html
>You might reconsider using Scheduled MBean (and scheduling it with
>Scheduler MBean), which seems much more straitforward and simple to use
>than Timer MBean. The info on it is also at the bottom of mentioned link,
>but you can check also scheduler-service.xml in your jboss3 deploy dir.
>
>Greetings,
>Uros.
>
>-Original Message-
>From: Alan Yost [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 17, 2002 4:06 PM
>To: [EMAIL PROTECTED]
>Subject: JBoss timer-service examples
>
>
>Hi All,
>
>I've just spent the last 1.5 hours searching the archives for a definitive
>explanation and example of a timer bean in JBoss.  All to no avail.  Could
>somebody please put me out of my misery and give me guidance on this
>concealed gem?
>
>
>Regards
>
>
>Alan.
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com



---
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] RE: JBoss timer-service examples

2002-07-18 Thread Alan Yost
Title: [JBoss-user] NameNotFoundException



Uros - 
I've had a chance to look at the specified link below.  Got the timer bean 
working - but I have to manually start this via locahost:8082.  Is there 
any way that I can automatically get the timer bean to start when JBoss 
starts?
 
 
Regards
 
 
 
Alan.

  -Original Message-From: Uroš Jurglic 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 17 July 2002 11:02 
  PMTo: '[EMAIL PROTECTED]'Subject: 
  [JBoss-user] RE: JBoss timer-service examples
  This 
  might be helpful: http://www.jboss.org/online-manual/HTML/ch11s58.html
  You 
  might reconsider using Scheduled MBean (and scheduling it with Scheduler 
  MBean), which seems much more straitforward and simple to use than Timer 
  MBean. The info on it is also at the bottom of mentioned link, but you can 
  check also scheduler-service.xml in your jboss3 deploy 
dir.
   
  Greetings,
  Uros.
  
-Original Message-From: Alan Yost 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 17, 2002 4:06 
PMTo: [EMAIL PROTECTED]Subject: JBoss 
timer-service examples
Hi All,
 
I've just spent the last 1.5 hours searching the archives 
for a definitive explanation and example of a timer bean in JBoss.  All 
to no avail.  Could somebody please put me out of my misery and give me 
guidance on this concealed gem?
 
 
Regards
 
 
Alan.


RE: [JBoss-user] RE: JBoss timer-service examples

2002-07-17 Thread Alan Yost

Thanks Uros - it's late here, but you have inspired me.  I'll let you know how I go.
 
 
Regards
 
 
Alan.

-Original Message- 
From: Uroš Jurglič [mailto:[EMAIL PROTECTED]] 
Sent: Wed 17/07/2002 11:01 PM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: [JBoss-user] RE: JBoss timer-service examples


This might be helpful: http://www.jboss.org/online-manual/HTML/ch11s58.html
You might reconsider using Scheduled MBean (and scheduling it with Scheduler 
MBean), which seems much more straitforward and simple to use than Timer MBean. The 
info on it is also at the bottom of mentioned link, but you can check also 
scheduler-service.xml in your jboss3 deploy dir.
 
Greetings,
Uros.

-Original Message-
    From: Alan Yost [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:06 PM
To: [EMAIL PROTECTED]
Subject: JBoss timer-service examples


Hi All,
 
I've just spent the last 1.5 hours searching the archives for a 
definitive explanation and example of a timer bean in JBoss.  All to no avail.  Could 
somebody please put me out of my misery and give me guidance on this concealed gem?
 
 
Regards
 
 
Alan.


<>

[JBoss-user] JBoss timer-service examples

2002-07-17 Thread Alan Yost

Hi All,
 
I've just spent the last 1.5 hours searching the archives for a definitive explanation 
and example of a timer bean in JBoss.  All to no avail.  Could somebody please put me 
out of my misery and give me guidance on this concealed gem?
 
 
Regards
 
 
Alan.

<>

[JBoss-user] JMS Queues - Number per application/Limitations/best practices...

2002-07-15 Thread Alan Yost

Hello All,

Just a quick question (I hope)... We have an application with various components that 
are moving data from several different input/outputs.  We intend to do this with JBOSS 
3.0.1 queues.  This led several of out team member to ponder - what are the 
limitations of using Queues - i.e how many can you use.  We are looking at creating 
somewhere between 4-10 queues.  Is this excessive, or the norm, when moving data 
around between various sources/destinations?

TIA


Alan.


---
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] EJB Design - Packaging / Components - how to?

2002-07-12 Thread Alan Yost

Gary - thanks for that.  I have found a link for a free pdf on this at 
http://www.theserverside.com/books/EJBDesignPatterns/index.jsp

I'll check it out and have a look.


Regards


Alan.

-Original Message-
From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
Sent: Friday, 12 July 2002 12:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJB Design - Packaging / Components - how to?


Alan,
I just finished reading EJB Design Patterns and found it to be very 
useful.  It has a whole chapter on building with ant, choosing package 
names, dividing up jar files, etc.  Nothing earth shattering, but good 
food for thought.  I used some of the suggestions verbatim and modified 
others and used them as ideas for my own situation.  I don't recall the 
author, but it is from a guy at The Middleware Company and one of the 
authors of theserverside.com.  That should be enough info for you to 
located it.

The book is well written and is high level architecture only.  I read 
the entire book in a few nights (it's small too).  It's the highest 
signal:noise ratio I've found yet for this topic.  It assumes you know 
how to code and just focuses on major architecture decisions.

I'm sure there is lot's of stuff on the web too, but I do enjoy having 
books as well.
gary.


Alan Yost wrote:

>Hi All,
> 
>Just trying to work out the best structure for our "master build" file for an 
>application that will have various components.  We have never done any large scale 
>type J2EE work and I'm not sure how to best structure our ear,war and jar packages.  
>How are others building their J2EE applications at present with multiple developers?  
>Should we have multiple WAR, EAR files or a master EAR that includes all the rest?  
>Can anyone recommend any good links/resources on this area?
> 
> 
>tia
> 
> 
>Alan.
>
>   -Original Message- 
>   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
>   Sent: Thu 11/07/2002 4:45 PM 
>   To: [EMAIL PROTECTED] 
>   Cc: 
>   Subject: [JBoss-user] JBoss 3 and Petstore 1.1.2
>   
>   
>
>
>   Hi
>   
>   Please forgive me if this topic has been discussed before, but I couldn't find 
>it in the forums.
>   
>   I have followed through the instructions from Jboss site, and have has 
>Petstore working nicely on JBoss 2.4.4. Today I downloaded Jboss 3 and tried to run 
>the Petstore on it.
>   
>   I made the relavent changed to DB configs into the new Jboss directories and 
>deployed the ear and all seemed to go well. And I also get the page 
><http://localhost:8080/estore/index.html> fine.
>   
>   But when I try to enter the store, it fails with the following message:
>   
>   root cause :
>   
>   java.lang.NullPointerException
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getRequestMappings(ScreenFlowXmlDAO.java:249)
>
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadRequestMappings(ScreenFlowXmlDAO.java:115)
>
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java:54)
>   
>   
>   investigation tells me this is due to the line MainServlet.java:54:
>   
>   requestMappingsURL = 
>getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();
>   
>   Which returns:
>   
>   14:15:41,234 INFO [STDOUT] requestMappingsURL = 
>jndi:/localhost/estore/WEB-INF/xml/requestmappings.xml
>   
>   And I think, in the new JBoss 3, this is not valid.
>   
>   Has anyone come across this problem before? Am I missing anything?
>   
>   Thanks a lot
>   Mak
>   
>   ps: i send this mail before but somehow it seems it didn't get through
>   
>   
>   
>   ---
>   This sf.net email is sponsored by:ThinkGeek
>   PC Mods, Computing goodies, cases & more
>   http://thinkgeek.com/sf
>   ___
>   JBoss-user mailing list
>   [EMAIL PROTECTED]
>   https://lists.sourceforge.net/lists/listinfo/jboss-user
>   
>




---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
áŠËë^™¨¥ŠË)¢{(­ç[É8bžAžzAšv­±ÆŸ}è§zÛ!Š»l~éì¶ç߆ÛiÿûaŠy 
yé¢oì|h²Ë¬z¹šŠX§‚X¬´h²Ë¬z¹b²Û,¢êÜyú+éÞ¶m¦Ïÿ–+-²Ê.­ÇŸ¢¸ë–+-³ùb²Ø§~ãn‹,ºÇ«


[JBoss-user] EJB Design - Packaging / Components - how to?

2002-07-11 Thread Alan Yost

Hi All,
 
Just trying to work out the best structure for our "master build" file for an 
application that will have various components.  We have never done any large scale 
type J2EE work and I'm not sure how to best structure our ear,war and jar packages.  
How are others building their J2EE applications at present with multiple developers?  
Should we have multiple WAR, EAR files or a master EAR that includes all the rest?  
Can anyone recommend any good links/resources on this area?
 
 
tia
 
 
Alan.

-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thu 11/07/2002 4:45 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: [JBoss-user] JBoss 3 and Petstore 1.1.2




Hi

Please forgive me if this topic has been discussed before, but I couldn't find 
it in the forums.

I have followed through the instructions from Jboss site, and have has 
Petstore working nicely on JBoss 2.4.4. Today I downloaded Jboss 3 and tried to run 
the Petstore on it.

I made the relavent changed to DB configs into the new Jboss directories and 
deployed the ear and all seemed to go well. And I also get the page 
 fine.

But when I try to enter the store, it fails with the following message:

root cause :

java.lang.NullPointerException
at 
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getRequestMappings(ScreenFlowXmlDAO.java:249)

at 
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadRequestMappings(ScreenFlowXmlDAO.java:115)

at 
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java:54)


investigation tells me this is due to the line MainServlet.java:54:

requestMappingsURL = 
getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();

Which returns:

14:15:41,234 INFO [STDOUT] requestMappingsURL = 
jndi:/localhost/estore/WEB-INF/xml/requestmappings.xml

And I think, in the new JBoss 3, this is not valid.

Has anyone come across this problem before? Am I missing anything?

Thanks a lot
Mak

ps: i send this mail before but somehow it seems it didn't get through



---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>

RE: [JBoss-user] Deploying servlets (Java Tools for Extreme Programming example)

2002-07-11 Thread Alan Yost

It is deployed to the ..\jboss-3.0.0\server\default\deploy directory.  I have tried 
both hello.war and hello.ear. The book offers separate build/deploy options but 
nothing works.

I guess my main problem is that I am relatively new to EJB and JBoss etc and whilst 
the book examples have been very good, it has been geared towards Jboss and Resin, 
whereas I am using the vanilla JBoss3.0.0/Jetty configuration.

I am trying to also use the online-manual to enlighten me on application.xml - but I 
know that there have been various changes between JBoss 2.4.n and 3.n and therefore 
it's difficult to know whats right and wrong.  i.e How do I know which version the 
manual is refering to?

Werner - If you have any url links or advice that can enlighten me that would be 
great.  

PS.  Have you used this book?

Thanks in advance


Alan.



-Original Message-
From: Werner Ramaekers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 11 July 2002 2:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Deploying servlets (Java Tools for Extreme
Programmingexample)


Alan,

is your HelloWorldServlet deployed to JBoss in a file called hello.war ?
Where is is deployed to ? What JBoss directory ?

Werner

Alan Yost wrote:
> Hello All,
> 
> I am reading thru an excellent book called Java Tools for Extreme Programming 
>(HighTower & Lesiecki) - Using JBoss 3.0.0 and Jetty.  I have followed the 
>instructions but just cannot get the war file to display on a browser.
> The file seems to deploy fine but when I try to access the servlet via a browser
> 
> e.g http://localhost:8080/hello/HelloWorldServlet
> 
> it returns an HTTP Error: 404.  I suspect it is a path problem but just cannot work 
>it out.  Has anyone else out there experienced a similar problem with the examples in 
>the book.
> 
> 
> Regards and tia
> 
> 
> Alan.
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> PC Mods, Computing goodies, cases & more
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-- 
--
ir. Werner Ramaekers
Enterprise Java Solutions Architect - Shift@
Sun Certified Java Programmer

"May the source be with you."
<mailto:[EMAIL PROTECTED]> <http://www.shiftat.com>
--



---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Deploying servlets (Java Tools for Extreme Programming example)

2002-07-10 Thread Alan Yost


Hello All,

I am reading thru an excellent book called Java Tools for Extreme Programming 
(HighTower & Lesiecki) - Using JBoss 3.0.0 and Jetty.  I have followed the 
instructions but just cannot get the war file to display on a browser.
The file seems to deploy fine but when I try to access the servlet via a browser

e.g http://localhost:8080/hello/HelloWorldServlet

it returns an HTTP Error: 404.  I suspect it is a path problem but just cannot work it 
out.  Has anyone else out there experienced a similar problem with the examples in the 
book.


Regards and tia


Alan.


---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 3.0 Quick Guide/New JBoss distribution structure

2002-07-10 Thread Alan Yost

I'll second that Mary.  It's had me wondering for a while...
 
 
Regards
 
 
Alan.

-Original Message- 
From: Mary Roderick [mailto:[EMAIL PROTECTED]] 
Sent: Wed 10/07/2002 3:01 PM 
To: [EMAIL PROTECTED] 
Cc: [EMAIL PROTECTED] 
Subject: Re: [JBoss-user] JBoss 3.0 Quick Guide/New JBoss distribution 
structure




Hi David,
Thanks for your 2 cents :-) ...my actual question is WHY are there three
servers in the new distribution? There had to be a reason but I haven't
found any explanation. I imagine that they are each optimized for something
specific (thus my reference to server/all for clustering)...but what?

Can you shed some light?
Mary





---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



<>