Win a copy of Terraform in Action this week in the Cloud forum!

Phani.Kiran Gutha

Greenhorn
+ Follow
since Dec 14, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Phani.Kiran Gutha

Hi All,

I have a jar in server/default/lib which contains Foo.class,Bar.class

and the same class is there in my application/WEB-INF/classes which is deployed in server/default/deploy.

and Example.class is using the Foo.class instance and Bar.class instance

Now the situation is that ..

Example.class shoud use the Foo.class in my application and Bar.class in Deafult/lib jar file.


In other words.

My application should use the classes in the application clases folder if not found in classes folder then it should use the class in default/lib jar files.

To do i have defined jbos-web.xml file




web-360.jar is the jar which will be default/lib.
com.eagle:eagle has no significance..

But no Luck. Throwing exception saying that class loader of instance are different.





Can any one help me

Thanks In Avance
10 years ago
Hi Jaikiran Pai ,
I have seen into the links you have provided but...
only one question i have is what should be in place of

com.example:archive=unique-archive-name
10 years ago
Hi Ravish Mody ,

I have tried what you have said application loaded fine. but in middle am getting



As i said earlier GridTab is in 3 of the jar with their own modifications......

am unable to find the solution for it ...

Can you help me...

10 years ago
Hi every body.
I have an application which contains same jar file's with different version... and those jar are my applicaition specific...

Like base.jar which is my applications model module jar files..
There are 3 version of it.

Like base-1.0.jar, which is the initial one,

base-2.0.jar which is later contains some files which are already there in base-1.0.jar but modified....

and last base-sp.jar which is appliaction specific jar file...

what i want to do is.... my war file contians base-sp.jar........ in web-inf/lib

this jar file should be ovverriden by base-2.0.jar and
base-2.0.jar should ovverride base-1.0.jar..

while loading the classes................

when application is running...... class loader should first look into base-spec.jar for the class if it is not found then should look into base-2.0.jar and it doesnt find it their then it should go to base-1.0.jar



Kindly any help me to achive this....

Thanks in Advance,
PhaniKiran.Gutha
10 years ago
Hi every body.
I have an application which contains same jar file's with different version... and those jar are my applicaition specific...

Like base.jar which is my applications model module jar files..
There are 3 version of it.

Like base-1.0.jar, which is the initial one,

base-2.0.jar which is later contains some files which are already there in base-1.0.jar but modified....

and last base-sp.jar which is appliaction specific jar file...

what i want to do is.... my war file contians base-sp.jar........ in web-inf/lib

this jar file should be ovverriden by base-2.0.jar and
base-2.0.jar should ovverride base-1.0.jar..

while loading the classes................

when application is running...... class loader should first look into base-spec.jar for the class if it is not found then should look into base-2.0.jar and it doesnt find it their then it should go to base-1.0.jar



Kindly any help me to achive this....

Thanks in Advance,
PhaniKiran.Gutha
Hi all i have very rare problem which needs to be solved.

Problem/issue:
==============

I have a dynamic web project which is already built and i have war file of that project.

I need to apply some customizations on top of the war file given to me.

Using maven or ant am able to compile the custom code written by me and able to add produced class files to the war file.

But the this is hapenning for final war file build.

when i want to test my code in eclipse. the war file build and deployed in jboss plugin contains only the class files produced out of java files written by me..........

Please help me how can i modify the .classpath file of my project so that a jboss publish can build a war file using the dependent war file which can run on eclipse-jboss to test my custom code....

Advance Thanks.....
10 years ago
Thanks Tim,

I have another question, i have multimoudle project one second modules needs first modules classes to compile..

How can i solve this.

Please help me

Advance Thanks
10 years ago
Hi every body,


I have multi module projectt.



In webapp pom.xml i want base modules class files to compile webapp java files

Please suggest me how to acheive it ?


Please Help Me!
10 years ago
Hi every body,

in pom of a project, i have added dependency with scope compile . which is a jar file which contains some class file and jar's as well. my current java file needs internal jars of dependent jar to compile.

But maven compile goal returning compilation error .

All the jar's needed to compile are in the single jar file which is added in dependency.............................


Please help me!
my pom
=======


Please Help ME!!!


Advance Thanks
10 years ago
Phani.Kiran Gutha]"If you built the WAR using Ant, you'll have to manually install it into your Maven repository. Maven pulls all its dependencies from repositories. When you build a war with Maven, the "install" goal will install the product into the repository, but Ant doesn't do that without being helped.

Hi Tim,
I have installed the ant build war file into the repository.
my project strucuture is like this.





pom of webui is building a war file using the dependecy of the war file build by ant. and installing into the local repository.

But when i run maven build on parent/pom.xml a war file parent-1.0.war is build which contains nothings.

am facing problem when deploying parent project to jboss in eclipse the war file deployed into jboss deploy folder contains nothing?

Can you help me!!!

10 years ago
Hi Johnson,

Thanks for your valuable suggestions about using the forum....................


And
am using M2 eclipse plugin , project and its modules were created using maven project........

comming to directory structure

directory structure mentioned by you is correct but. my project needs to be in structure i have mentioned ....
cant we change the directory structure and make it work!

Please help me!

Thanks once again!
10 years ago

"If you built the WAR using Ant, you'll have to manually install it into your Maven repository. Maven pulls all its dependencies from repositories. When you build a war with Maven, the "install" goal will install the product into the repository, but Ant doesn't do that without being helped."



Hi Tim,
I have installed the ant build war file into the repository.
my project strucuture is like this.





pom of webui is building a war file using the dependecy of the war file build by ant. and installing into the local repository.

But when i run maven build on parent/pom.xml a war file parent-1.0.war is build which contains nothings.

am facing problem when deploying parent project to jboss in eclipse the war file deployed into jboss deploy folder contains nothing?

Can you help me!!!

10 years ago
Hi every one,
I have a war file build already using ant. which is super project.

I have child project where i want to add some more files to the existing war file and deploy the war file. in maven pom.

I have added the super war as dependency in the pom but the resultant war file doesnt contain any thing

<dependency>
<groupId>eagle</groupId>
<artifactId>webui</artifactId>
<version>1.23</version>
<type>war</type>
<scope>runtime</scope>
</dependency>

Can any one suggest me!

Thanks
10 years ago
Hi every body,
I want to know how to update a war file with few more jars and few class files.

Requirement is

Initially pom file is written to build my basic war file.

I want to write another pom which will update the war file with the latest jar files and few modified class files
with out extracting the war file..


Please any one help me!.................

ill be help full if any body help's even for updating a war file
by extracting it..............

Thanks