tags:

views:

338

answers:

2

Hi,

I have an EAR installed in Websphere 6.1. Development is done in Eclipse, but using a simple Java project and updating the *.java and *.class files directly to the server. I want to start using JPA, but the @Stateless annotation gives the error "cannot be resolved to a type". What am I missing? Thank you for your time, Iulia

+1  A: 

You need either to be on WebSphere 7.0, or to have installed the EJB3 Feature pack for WebSphere 6.1. You pattern of use of EAR files and plain java projects sounds a little diferent from what I've done. Suggest you start by following Roland Barcia's tutorial, et that going before you experiment with other patterns.

This tutorial may be helpful, it relates to WebSphere 6.1 + feature pack.

djna
A: 

Thank you very much for your reply. The tutorial is indeed very helpful. But for the life of me I can not configure Websphere's server runtime environment in eclipse. I have tried to manually add it and search for local and remote server, switched eclipse versions with no success. I always end up in the same rut where some *.jar files are missing. Has anyone ever successfully used websphere and eclipse in this combination?

Right now I am installing Application Server Toolkit, see where that takes me. I still don't understand if the server in the tutorial is on the local machine or remote. Aaaand the installation failed: One or more errors occurred during the copying of files (ASTFilesBean). Error log sais: disk1\setup\8c5ae1cefad3b63398f095faa3af816b\md5\8cd8f222446c31c1b9305fe2c50a3d8f (The system cannot find the file specified) What am I doing wrong? Any suggestions? Thank you for your time.

Iulia