Skip to main content

classpath suffix in Glassfish V3

4 replies [Last post]
cool144_04
Offline
Joined: 2009-12-29
Points: 0

Is it possible to update classpath-suffix in of domain.xml in glassfish v3.

Because, after adding .jar files and .properties files to classpath, still getting class not found exception while accessing deployed resource.

Thanks,
Chinni.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cool144_04
Offline
Joined: 2009-12-29
Points: 0

Thanks Sahoo. I tried copying required files to domain1/lib and it worked fine with .jar files. But I also have some .properties files, which were not recognized from domain1/lib.

I used to mention those in classpath-suffix in glassfish v2.1 which seems to be not supported in v3. Is there any way i can use in profiler-classpath.

Thanks,
Chinni.

Sahoo

If you have some resources which are not part of any jar, then directly
placing the resources in domain1/lib would not help. domain1/lib/ is not
part of any classpath; jars in domain1/lib are. You should place
resources and .class files in domain1/lib/classes/, which is part of
classpath.

I don't know what you mean by "Is there any way i can use in
profiler-classpath."

Thanks,
Sahoo

glassfish@javadesktop.org wrote:
> Thanks Sahoo. I tried copying required files to domain1/lib and it worked fine with .jar files. But I also have some .properties files, which were not recognized from domain1/lib.
>
> I used to mention those in classpath-suffix in glassfish v2.1 which seems to be not supported in v3. Is there any way i can use in profiler-classpath.
>
> Thanks,
> Chinni.
> [Message sent by forum member 'cool144_04' (cool144_04@yahoo.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=378066
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

cool144_04
Offline
Joined: 2009-12-29
Points: 0

Thank you so much Sahoo...After copying those files as you mentioned, it seems to be working.

I just have one small question. Is there any way we can update the classpath of glassfish domain with the location path of resources instead of copying those to domain1/lib/classes.

Thanks,
Chinni.

Sahoo

No, you can't change classpath in v3. If you look at the admin console,
you shall notice that it does not provide any way to change classpath.

If you want your applications to have access to some resource, then
consider using --libraries option while deploying your application or
place your libraries in domain1/lib.

Sahoo

glassfish@javadesktop.org wrote:
> Is it possible to update classpath-suffix in of domain.xml in glassfish v3.
>
> Because, after adding .jar files and .properties files to classpath, still getting class not found exception while accessing deployed resource.
>
>
> Thanks,
> Chinni.
> [Message sent by forum member 'cool144_04' (cool144_04@yahoo.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=377954
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net