You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Alex Grönholm <al...@nextday.fi> on 2008/10/06 16:38:49 UTC

Eclipse plugin & libraries

I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and found 
that it only includes a few libraries when added to a project. In my 
opinion, the runtime should add all of the libraries from openejb/lib to 
the project, like the JBoss runtime does. This is necessary for, among 
other things, unit testing since all of the server's requisites must be 
on the classpath. I do not know the current state of affairs with the 
plugin, so could someone comment on this please?

Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
Alex Grönholm wrote:
> It's just that the status of the server remains "republish" even after 
> I publish. It should change to "synchronized" after a successful 
> publish operation.

Ah, right. I'll have a look at that - thanks for letting me know.

Jon

Re: Eclipse plugin & libraries

Posted by Alex Grönholm <al...@nextday.fi>.
Jonathan Gallimore kirjoitti:
> Alex Grönholm wrote:
>> Ok, just make sure you add any and all the jars in that directory to 
>> the project classpath, and not just a fixed set.
> Will do.
>> Also, it seems that the publish functionality is broken (nothing 
>> happens when you try to publish). Can you verify this?
> Just done a test with a fresh install of the plugin on both Eclipse 
> Europa and Ganymede, and done a deploy of our simple-stateless 
> project, and it deployed ok. You should see something like the 
> following in your openejb.log file:
>
It's just that the status of the server remains "republish" even after I 
publish. It should change to "synchronized" after a successful publish 
operation.
> 2008-10-06 20:55:02,765 - INFO  - Configuring enterprise application: 
> C:\Documents and Settings\Jon\Local Settings\Temp\oejb21426.jar
> 2008-10-06 20:55:02,781 - INFO  - Enterprise application "C:\Documents 
> and Settings\Jon\Local Settings\Temp\oejb21426.jar" loaded.
> 2008-10-06 20:55:02,812 - INFO  - Assembling app: C:\Documents and 
> Settings\Jon\Local Settings\Temp\oejb21426.jar
> 2008-10-06 20:55:02,812 - INFO  - Jndi(name=CalculatorImplLocal) --> 
> Ejb(deployment-id=CalculatorImpl)
> 2008-10-06 20:55:02,812 - INFO  - Jndi(name=CalculatorImplRemote) --> 
> Ejb(deployment-id=CalculatorImpl)
> 2008-10-06 20:55:02,812 - INFO  - Created 
> Ejb(deployment-id=CalculatorImpl, ejb-name=CalculatorImpl, 
> container=My Stateless Container)
> 2008-10-06 20:55:02,812 - INFO  - Deployed 
> Application(path=C:\Documents and Settings\Jon\Local 
> Settings\Temp\oejb21426.jar)
>
> Unfortunately nothing is echoed to the console at the moment. When we 
> deploy, we create a temp file, and deploy by calling one of OpenEJBs 
> own EJBs (if the server is running when the publish is done, this 
> happens right away, otherwise it happens when the server starts). We 
> don't copy anything to the openejb/apps folder as we've found suffers 
> from locking issues when trying to undeploy / redeploy.
>
> If you don't see any output in your log (or you have an exception) 
> please let us know as it might be a bug.
>
> Jon


Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
Alex Grönholm wrote:
> Ok, just make sure you add any and all the jars in that directory to 
> the project classpath, and not just a fixed set.
Will do.
> Also, it seems that the publish functionality is broken (nothing 
> happens when you try to publish). Can you verify this?
Just done a test with a fresh install of the plugin on both Eclipse 
Europa and Ganymede, and done a deploy of our simple-stateless project, 
and it deployed ok. You should see something like the following in your 
openejb.log file:

2008-10-06 20:55:02,765 - INFO  - Configuring enterprise application: 
C:\Documents and Settings\Jon\Local Settings\Temp\oejb21426.jar
2008-10-06 20:55:02,781 - INFO  - Enterprise application "C:\Documents 
and Settings\Jon\Local Settings\Temp\oejb21426.jar" loaded.
2008-10-06 20:55:02,812 - INFO  - Assembling app: C:\Documents and 
Settings\Jon\Local Settings\Temp\oejb21426.jar
2008-10-06 20:55:02,812 - INFO  - Jndi(name=CalculatorImplLocal) --> 
Ejb(deployment-id=CalculatorImpl)
2008-10-06 20:55:02,812 - INFO  - Jndi(name=CalculatorImplRemote) --> 
Ejb(deployment-id=CalculatorImpl)
2008-10-06 20:55:02,812 - INFO  - Created 
Ejb(deployment-id=CalculatorImpl, ejb-name=CalculatorImpl, container=My 
Stateless Container)
2008-10-06 20:55:02,812 - INFO  - Deployed Application(path=C:\Documents 
and Settings\Jon\Local Settings\Temp\oejb21426.jar)

Unfortunately nothing is echoed to the console at the moment. When we 
deploy, we create a temp file, and deploy by calling one of OpenEJBs own 
EJBs (if the server is running when the publish is done, this happens 
right away, otherwise it happens when the server starts). We don't copy 
anything to the openejb/apps folder as we've found suffers from locking 
issues when trying to undeploy / redeploy.

If you don't see any output in your log (or you have an exception) 
please let us know as it might be a bug.

Jon

Re: Eclipse plugin & libraries

Posted by Alex Grönholm <al...@nextday.fi>.
Jonathan Gallimore kirjoitti:
> Hi Alex,
>
> Thanks for downloading the plugin and giving it a go. I guess at the 
> moment, we'd regard it as beta. I'm currently working on a couple of 
> final features and was then going to see if everybody thought it was 
> ready for a release.
>
> In terms of the classpath, you're right, we only add openejb-client, 
> javaee-api and optionally ejb31-api-experimental if you want it. It 
> hasn't caused me any problems with testing (probably because I deploy 
> to a standalone server and hit the beans as if I'm a remote client 
> when I'm testing the plugin). I'm certainly happy to add the other 
> jars in the openejb/lib folder to the project classpath. If there's no 
> objections, I'll probably be able to get the change committed and the 
> update site updated this evening.
>
Ok, just make sure you add any and all the jars in that directory to the 
project classpath, and not just a fixed set.
Also, it seems that the publish functionality is broken (nothing happens 
when you try to publish). Can you verify this?
> Jon
>
> Alex Grönholm wrote:
>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and found 
>> that it only includes a few libraries when added to a project. In my 
>> opinion, the runtime should add all of the libraries from openejb/lib 
>> to the project, like the JBoss runtime does. This is necessary for, 
>> among other things, unit testing since all of the server's requisites 
>> must be on the classpath. I do not know the current state of affairs 
>> with the plugin, so could someone comment on this please?
>
>


Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
I got another update to do with updating the publish status, so I'll try 
updating the version string with that ;-)

Cheers

Jon

Alex Grönholm wrote:
> Jonathan Gallimore kirjoitti:
>> In theory uninstalling and installing again is all you need. Are you 
>> running Ganymede? I've had lots of problems with stuff from the 
>> update site being cached in Ganymede, and as yet, I haven't found a 
>> solution. Anyone got any ideas?
>>
> Updating the version number might help Ganymede figure out that the
> contents have been updated :P
>> Jon
>>
>>
>> Alex Grönholm wrote:
>>> Jonathan Gallimore kirjoitti:
>>>> I've committed this change and updated the update site.
>>>>
>>> What do I need to do to get a new version? I just uninstalled & 
>>> reinstalled from the update site, but it still only includes those 
>>> same three jars.
>>>> Jon
>>>>
>>>> Jonathan Gallimore wrote:
>>>>> Hi Alex,
>>>>>
>>>>> Thanks for downloading the plugin and giving it a go. I guess at 
>>>>> the moment, we'd regard it as beta. I'm currently working on a 
>>>>> couple of final features and was then going to see if everybody 
>>>>> thought it was ready for a release.
>>>>>
>>>>> In terms of the classpath, you're right, we only add 
>>>>> openejb-client, javaee-api and optionally ejb31-api-experimental 
>>>>> if you want it. It hasn't caused me any problems with testing 
>>>>> (probably because I deploy to a standalone server and hit the 
>>>>> beans as if I'm a remote client when I'm testing the plugin). I'm 
>>>>> certainly happy to add the other jars in the openejb/lib folder to 
>>>>> the project classpath. If there's no objections, I'll probably be 
>>>>> able to get the change committed and the update site updated this 
>>>>> evening.
>>>>>
>>>>> Jon
>>>>>
>>>>> Alex Grönholm wrote:
>>>>>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and 
>>>>>> found that it only includes a few libraries when added to a 
>>>>>> project. In my opinion, the runtime should add all of the 
>>>>>> libraries from openejb/lib to the project, like the JBoss runtime 
>>>>>> does. This is necessary for, among other things, unit testing 
>>>>>> since all of the server's requisites must be on the classpath. I 
>>>>>> do not know the current state of affairs with the plugin, so 
>>>>>> could someone comment on this please?
>>>>>
>>>>
>>>>
>>>
>>
>>
>
>


Re: Eclipse plugin & libraries

Posted by Alex Grönholm <al...@nextday.fi>.
Jonathan Gallimore kirjoitti:
> In theory uninstalling and installing again is all you need. Are you 
> running Ganymede? I've had lots of problems with stuff from the update 
> site being cached in Ganymede, and as yet, I haven't found a solution. 
> Anyone got any ideas?
>
Updating the version number might help Ganymede figure out that the
contents have been updated :P
> Jon
>
>
> Alex Grönholm wrote:
>> Jonathan Gallimore kirjoitti:
>>> I've committed this change and updated the update site.
>>>
>> What do I need to do to get a new version? I just uninstalled & 
>> reinstalled from the update site, but it still only includes those 
>> same three jars.
>>> Jon
>>>
>>> Jonathan Gallimore wrote:
>>>> Hi Alex,
>>>>
>>>> Thanks for downloading the plugin and giving it a go. I guess at 
>>>> the moment, we'd regard it as beta. I'm currently working on a 
>>>> couple of final features and was then going to see if everybody 
>>>> thought it was ready for a release.
>>>>
>>>> In terms of the classpath, you're right, we only add 
>>>> openejb-client, javaee-api and optionally ejb31-api-experimental if 
>>>> you want it. It hasn't caused me any problems with testing 
>>>> (probably because I deploy to a standalone server and hit the beans 
>>>> as if I'm a remote client when I'm testing the plugin). I'm 
>>>> certainly happy to add the other jars in the openejb/lib folder to 
>>>> the project classpath. If there's no objections, I'll probably be 
>>>> able to get the change committed and the update site updated this 
>>>> evening.
>>>>
>>>> Jon
>>>>
>>>> Alex Grönholm wrote:
>>>>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and 
>>>>> found that it only includes a few libraries when added to a 
>>>>> project. In my opinion, the runtime should add all of the 
>>>>> libraries from openejb/lib to the project, like the JBoss runtime 
>>>>> does. This is necessary for, among other things, unit testing 
>>>>> since all of the server's requisites must be on the classpath. I 
>>>>> do not know the current state of affairs with the plugin, so could 
>>>>> someone comment on this please?
>>>>
>>>
>>>
>>
>
>



Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
I've updated the update site with plugins with a new version string, and 
(hopefully) the publish status fixed. Could you give it a go?

Thanks

Jon

Alex Grönholm wrote:
> Jonathan Gallimore kirjoitti:
>> In theory uninstalling and installing again is all you need. Are you 
>> running Ganymede? I've had lots of problems with stuff from the 
>> update site being cached in Ganymede, and as yet, I haven't found a 
>> solution. Anyone got any ideas?
>>
> Updating the version number might help Ganymede figure out that the 
> contents have been updated :P


Re: Eclipse plugin & libraries

Posted by Alex Grönholm <al...@nextday.fi>.
Jonathan Gallimore kirjoitti:
> In theory uninstalling and installing again is all you need. Are you 
> running Ganymede? I've had lots of problems with stuff from the update 
> site being cached in Ganymede, and as yet, I haven't found a solution. 
> Anyone got any ideas?
>
Updating the version number might help Ganymede figure out that the 
contents have been updated :P
> Jon
>
>
> Alex Grönholm wrote:
>> Jonathan Gallimore kirjoitti:
>>> I've committed this change and updated the update site.
>>>
>> What do I need to do to get a new version? I just uninstalled & 
>> reinstalled from the update site, but it still only includes those 
>> same three jars.
>>> Jon
>>>
>>> Jonathan Gallimore wrote:
>>>> Hi Alex,
>>>>
>>>> Thanks for downloading the plugin and giving it a go. I guess at 
>>>> the moment, we'd regard it as beta. I'm currently working on a 
>>>> couple of final features and was then going to see if everybody 
>>>> thought it was ready for a release.
>>>>
>>>> In terms of the classpath, you're right, we only add 
>>>> openejb-client, javaee-api and optionally ejb31-api-experimental if 
>>>> you want it. It hasn't caused me any problems with testing 
>>>> (probably because I deploy to a standalone server and hit the beans 
>>>> as if I'm a remote client when I'm testing the plugin). I'm 
>>>> certainly happy to add the other jars in the openejb/lib folder to 
>>>> the project classpath. If there's no objections, I'll probably be 
>>>> able to get the change committed and the update site updated this 
>>>> evening.
>>>>
>>>> Jon
>>>>
>>>> Alex Grönholm wrote:
>>>>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and 
>>>>> found that it only includes a few libraries when added to a 
>>>>> project. In my opinion, the runtime should add all of the 
>>>>> libraries from openejb/lib to the project, like the JBoss runtime 
>>>>> does. This is necessary for, among other things, unit testing 
>>>>> since all of the server's requisites must be on the classpath. I 
>>>>> do not know the current state of affairs with the plugin, so could 
>>>>> someone comment on this please?
>>>>
>>>
>>>
>>
>
>


Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
In theory uninstalling and installing again is all you need. Are you 
running Ganymede? I've had lots of problems with stuff from the update 
site being cached in Ganymede, and as yet, I haven't found a solution. 
Anyone got any ideas?

Jon


Alex Grönholm wrote:
> Jonathan Gallimore kirjoitti:
>> I've committed this change and updated the update site.
>>
> What do I need to do to get a new version? I just uninstalled & 
> reinstalled from the update site, but it still only includes those 
> same three jars.
>> Jon
>>
>> Jonathan Gallimore wrote:
>>> Hi Alex,
>>>
>>> Thanks for downloading the plugin and giving it a go. I guess at the 
>>> moment, we'd regard it as beta. I'm currently working on a couple of 
>>> final features and was then going to see if everybody thought it was 
>>> ready for a release.
>>>
>>> In terms of the classpath, you're right, we only add openejb-client, 
>>> javaee-api and optionally ejb31-api-experimental if you want it. It 
>>> hasn't caused me any problems with testing (probably because I 
>>> deploy to a standalone server and hit the beans as if I'm a remote 
>>> client when I'm testing the plugin). I'm certainly happy to add the 
>>> other jars in the openejb/lib folder to the project classpath. If 
>>> there's no objections, I'll probably be able to get the change 
>>> committed and the update site updated this evening.
>>>
>>> Jon
>>>
>>> Alex Grönholm wrote:
>>>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and 
>>>> found that it only includes a few libraries when added to a 
>>>> project. In my opinion, the runtime should add all of the libraries 
>>>> from openejb/lib to the project, like the JBoss runtime does. This 
>>>> is necessary for, among other things, unit testing since all of the 
>>>> server's requisites must be on the classpath. I do not know the 
>>>> current state of affairs with the plugin, so could someone comment 
>>>> on this please?
>>>
>>
>>
>


Re: Eclipse plugin & libraries

Posted by Alex Grönholm <al...@nextday.fi>.
Jonathan Gallimore kirjoitti:
> I've committed this change and updated the update site.
>
What do I need to do to get a new version? I just uninstalled & 
reinstalled from the update site, but it still only includes those same 
three jars.
> Jon
>
> Jonathan Gallimore wrote:
>> Hi Alex,
>>
>> Thanks for downloading the plugin and giving it a go. I guess at the 
>> moment, we'd regard it as beta. I'm currently working on a couple of 
>> final features and was then going to see if everybody thought it was 
>> ready for a release.
>>
>> In terms of the classpath, you're right, we only add openejb-client, 
>> javaee-api and optionally ejb31-api-experimental if you want it. It 
>> hasn't caused me any problems with testing (probably because I deploy 
>> to a standalone server and hit the beans as if I'm a remote client 
>> when I'm testing the plugin). I'm certainly happy to add the other 
>> jars in the openejb/lib folder to the project classpath. If there's 
>> no objections, I'll probably be able to get the change committed and 
>> the update site updated this evening.
>>
>> Jon
>>
>> Alex Grönholm wrote:
>>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and 
>>> found that it only includes a few libraries when added to a project. 
>>> In my opinion, the runtime should add all of the libraries from 
>>> openejb/lib to the project, like the JBoss runtime does. This is 
>>> necessary for, among other things, unit testing since all of the 
>>> server's requisites must be on the classpath. I do not know the 
>>> current state of affairs with the plugin, so could someone comment 
>>> on this please?
>>
>
>


Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
I've committed this change and updated the update site.

Jon

Jonathan Gallimore wrote:
> Hi Alex,
>
> Thanks for downloading the plugin and giving it a go. I guess at the 
> moment, we'd regard it as beta. I'm currently working on a couple of 
> final features and was then going to see if everybody thought it was 
> ready for a release.
>
> In terms of the classpath, you're right, we only add openejb-client, 
> javaee-api and optionally ejb31-api-experimental if you want it. It 
> hasn't caused me any problems with testing (probably because I deploy 
> to a standalone server and hit the beans as if I'm a remote client 
> when I'm testing the plugin). I'm certainly happy to add the other 
> jars in the openejb/lib folder to the project classpath. If there's no 
> objections, I'll probably be able to get the change committed and the 
> update site updated this evening.
>
> Jon
>
> Alex Grönholm wrote:
>> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and found 
>> that it only includes a few libraries when added to a project. In my 
>> opinion, the runtime should add all of the libraries from openejb/lib 
>> to the project, like the JBoss runtime does. This is necessary for, 
>> among other things, unit testing since all of the server's requisites 
>> must be on the classpath. I do not know the current state of affairs 
>> with the plugin, so could someone comment on this please?
>


Re: Eclipse plugin & libraries

Posted by Jonathan Gallimore <jo...@gmail.com>.
Hi Alex,

Thanks for downloading the plugin and giving it a go. I guess at the 
moment, we'd regard it as beta. I'm currently working on a couple of 
final features and was then going to see if everybody thought it was 
ready for a release.

In terms of the classpath, you're right, we only add openejb-client, 
javaee-api and optionally ejb31-api-experimental if you want it. It 
hasn't caused me any problems with testing (probably because I deploy to 
a standalone server and hit the beans as if I'm a remote client when I'm 
testing the plugin). I'm certainly happy to add the other jars in the 
openejb/lib folder to the project classpath. If there's no objections, 
I'll probably be able to get the change committed and the update site 
updated this evening.

Jon

Alex Grönholm wrote:
> I recently installed the "Apache OpenEJB WTP Runtime 1.0.0" and found 
> that it only includes a few libraries when added to a project. In my 
> opinion, the runtime should add all of the libraries from openejb/lib 
> to the project, like the JBoss runtime does. This is necessary for, 
> among other things, unit testing since all of the server's requisites 
> must be on the classpath. I do not know the current state of affairs 
> with the plugin, so could someone comment on this please?