[JBoss-user] how can I get the best of both worlds?

2003-09-22 Thread DI Michael Zach
Title: how can I get the best of both worlds?






Hello,


I hope someone of you well-experienced JBoss-IDE/Eclipse guys may spin me into the right direction (or even kick me there as long as it helps ;o) with this:

I am developing following the usual service-facade pattern using JBoss with XDoclet/JDO. 

Earlier I only used an editor to do so but got some well working external ant build files which do all the usual xdoclet-compile-enhance-jar work.

Now I at last discovered Eclipse and like it very much, especially the compile-and-check-while-you-type and the debugging options.

Is there another way than duplicating all xdoclet-generation and packaging once more in Eclipse?

Because when I build my projects via the external build files (even when triggered from within eclipse), the debugging does not work any more. I already swithed back on the javac debug options to have line numbers included and optimization off, but there seem to be differences in the bytecode the 2 compilers produce (the one built into eclipse and the one I use from the usual jsdk installed).

After a few debugging steps instead of going into my own method I suddenly find myself in some String methods implementation code from java.lang package.

Think there are some inconsistencies of line numbers etc. I brought into by using my messy 2headed environment.


How do you guys do it?


All work in Eclipse or any extra build files as well?

Do you compile into different subfolders (one for eclipse one for external)?


How can I make sure I am using just the same 1 compiler within and outside of Eclipse?


How about debugging, is it someway possible to keep my external builds and still have working debugging and on-the-fly-checking from eclipse?

I really would appreciate every snippet of help here.


Cheers


Michael





RE: [JBoss-user] JBoss project and Eclipse

2003-09-14 Thread DI Michael Zach
Phil,

Maybe it's because I am a greenhorn as well when it comes to eclipse,
but in the 2.1.1 I use I was not able to add more than just 1 JAR to 1
classpath variable at a time. What did I do wrong here?

I then did it an other way and created kind of dummy libraries =
projects which only contain the JARs necessary for Jboss, Struts,
whatever. In my real projects I then only need to check the dummy
project(s) as required on the build path. 

It is a nice workaround but I would feel better to do it using the
variables. Can you have 2 and more JARs in just 1 variable? I tried to
concat the jar-paths using various delimiters (:;, ...) but did not
succeed.

Cheers
Michael


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Phil Cornelius
 Sent: Sunday, September 14, 2003 10:06 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] JBoss project and Eclipse
 
 
 Further, the best thing to do is set up an eclipse 'classpath 
 variable' call it say JBOSS_JARS so that if you share this 
 project with the rest of your team all they need to do set 
 set this variable.
 
 Yours
 Phil
 
 On Sat, 2003-09-13 at 16:18, Marco Tedone wrote:
  It seems that you need to set up the classpath for each 
 project, but 
  it's only the Jboss classes you need, you can add the Jboss/client 
  jars, which are enough.
  
  Hope this will help,
  
  Marco
  - Original Message -
  From: Brian Wallis [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, September 13, 2003 2:46 PM
  Subject: [JBoss-user] JBoss project and Eclipse
  
  
  
   This is not quite a JBoss question but I'm sure there are a few 
   eclipse
  users
   on this list.
  
   I have a small J2EE project that I want to develop using 
 eclipse. I
  haven't
   really used eclipse before being an IntelliJ user at work and 
   emacs/ant otherwise.
  
   What I need to do is import the jboss jars into my 
 project's class 
   path.
  
   Is there a way to do that once and then re-use it for other 
   projects?
  There
   are 54 of jars after all and it is a real pain to select them all 
   every
  time
   you create a new project. Is there a way to define a project for 
   JBoss and re-use that? There is the required projects tab in the 
   project properties
  but
   I don't seem to be able to get it to contribute to the 
 class path of 
   the current project.
  
   Any suggestions are welcome
  
   thanks, brian wallis...
  
  
  
   ---
   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
  
  
  
  
  
  ---
  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
 
 
 ---
 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/j boss-user
 



---
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] CASTOR: Installation under JBoss 3.0.4

2002-11-14 Thread DI Michael Zach
Title: Nachricht



David,

have a 
look into http://jboss.org/forums/thread.jsp?forum=144thread=22900, 
and follow advice there.
I have 
a successful deployment for JBoss 3.0.3 so 3.0.4 should be 
identical.
I was 
writing there about a MappingException: I had just an error in my ant buildfiles 
and did not include the classes I was mapping (stupid me!)
After 
I fixed that it was working fine!

Michael

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of David 
  MarkoSent: Wednesday, November 13, 2002 2:07 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] CASTOR: 
  Installation under JBoss 3.0.4Hello, have anyone successfull 
  experience deploying CASTOR JDO under JBoss 3.0.4? I just tried as stated in 
  http://www.jboss.org/developers/projects/jboss/castor.jsp but it seems that 
  guide is for JBoss 2.x version. It talks about lib\ext directory but there is 
  nothing like this on JBoss 3.x. Can some provide me with information how to 
  start this on JBoss 3.0.4? Thank 
  you David Marko [EMAIL PROTECTED]


[JBoss-user] Anyone successful with Jboss 3.x and CastorJDO ?

2002-10-17 Thread DI Michael Zach
Title: Anyone successful with Jboss 3.x and CastorJDO ?






Hello,


was anyone of you successful in deploying an application using JBoss3.0.3/CastorJDO ? All docs I was able to find talk just about Jboss 2.4.x and the jboss-castor plugin seems to be a bit outdated, so I tried to hack it out myself. Have posted this to the jboss.org forum here: http://www.jboss.org/forums/thread.jsp?forum=144thread=22900

In any case I end up with one of two errors/exceptions:


a) if I use castor.jar which comes with jboss 3.0.3 I get an IllegalAccessError


b) if I use any version of the jars from castor website I get a :

org.exolab.castor.mapping.MappingException: Could not find the class test.myData

where test.myData is the data class I am using for test here.


Ant builds are fine and of course I always use the same castor-jar for build and deployment.


Is anybody out there facing similar problems? Or did you succeed in using CastorJDO with new Jboss 3.X?


TIA  reagards


Michael





[JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES

2001-06-06 Thread zach

Ok here is the deal,

I really need to get this problem solved or I have to start looking at
different software. This seems like such a small problem why is this failing

Here is the issue:

Why does this jboss code throw me and illegalAccessException when I try to
do a ejbFindByPrimaryKey call on the home interface, everything is deployed.

The error comes up in the following sectoin of code with in jboss

This is in the org.jboss.ejb.plugins.BMPPersistenceManager class


private Object callFinderMethod(Method finderMethod, Object[] args,
EntityEnterpriseContext ctx)
   throws Exception
   {


Method callMethod = (Method)finderMethods.get(finderMethod);
try
  {
 result = callMethod.invoke(ctx.getInstance(), args);
  } catch (IllegalAccessException e)
{
// Throw this as a bean exception...(?)
throw new EJBException(e);
}

here is the error corresponding to this code:

[UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
javax.ejb.EJBException
[UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError
[UserBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(
BMPPersistenceManager.java:488)
[UserBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer
sistenceManager.java:211)
[UserBean]  at
org.jboss.ejb.EntityContainer.find(EntityContainer.java:419)
[UserBean]  at java.lang.reflect.Method.invoke(Native Method)
[UserBean]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
(EntityContainer.java:639)
[UserBean]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
Home(EntitySynchronizationInterceptor.java:160)
[UserBean]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
tityInstanceInterceptor.java:87)
[UserBean]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
orCMT.java:135)

Thanks

zach
[EMAIL PROTECTED]


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



Re: [JBoss-user] Jboss 2-1 Startup problem

2001-04-02 Thread zach thompson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 02 Apr 2001, you wrote:
 Yes, use the run.bat and run.sh scripts. Where are you seeing "java -jar run.jar" in 
the docs?
 

I had hit this same obstacle.  The reference to "java -jar run.jar" can be
found at http://www.jboss.org/documentation/HTML/ch01s05.html.  

Zach Thompson

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBOslR0JCjAI4/vZatEQJL4wCdFdkKf6JkLXTRZpeh0UI+5LGGQvsAoLUe
m04KJFzysl5KhRlJqcJEP9BB
=4+fC
-END PGP SIGNATURE-

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