IJ9 + WebSphere and shared libraries

Hi all,

I am very happy with the websphere 7 support in intellij 9. But I have a question.
I have an ear file that needs a shared library to be able to start in WebSphere. Properties are stored there.
Is there any way to deploy the ear from Idea so that his properties folder is also known to the application after deployment?

I have tried to add this properties folder to the a shared lib that I attached to the servers classloader but that does not work because there are also other applications running on the server with a property file with the same name.
It has to be attached to that ear alone.

I also tried to add the folders as a dependency to my ear project but the trouble is dat maven does my build and maven does not look at project dependencies configured in idea itself...
If I try to deploy the ear through the JavaEE facet I get an errormessage like: Cannot build 'app-ear:JavaEE exploded' artifact: output path is not specified
This is the facet that is handled by Idea itself i think but I don't know where I can configure this output path...


Any help is appreciated.

Thanx,
Ivo.

3 comments
Comment actions Permalink

Hi, Ivo,

If you want Maven to build an ear for you, you should configure your pom.xml accordingly. IDEA doesn't store its settings in the pom and the changes you make in IDEA does not get in your pom.xml.

Thanks,
Anton Makeev

0
Comment actions Permalink

Thanks for the reply but that is not what I mean.

My maven does build the ear perfectly, but for maintainance purposes we keep a property file outside of this ear.
This property file is added to the the project classpath by adding a shared library to the project that points to this file.
Webshpere has provisions for this (environment > shared libraries)

I don't see how I can "hot" deploy my ear from intellij and still have this file on my classpath...

Ivo.

0
Comment actions Permalink

IDEA doesn't support WebSphere shared libraries. If you need to add a shared library you need to do it by hand.

As far as I know there is no way to add a library to classpath of JavaEE app without adding it to ear file or adding it as a shared library.

Thanks for the reply but that is not what I mean.

My maven does build the ear perfectly, but for maintainance purposes we keep a property file outside of this ear.
This property file is added to the the project classpath by adding a shared library to the project that points to this file.
Webshpere has provisions for this (environment > shared libraries)

I don't see how I can "hot" deploy my ear from intellij and still have this file on my classpath...

Ivo.

---
Original message URL: http://www.jetbrains.net/devnet/message/5252455#5252455



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.