I guess embedding jar solution also not going to work. Even though we
embed the jar into our component jar, it will still reside inside
${carbon.home}/repository/components. I tried this and didnt work. Thus
i am attaching the value of "classPath" varriable with this email. If
you carefully inspect the attachment, you would not see any jar files in
${carbon.home}/repository/components. I guess this has something to do
with OSGi class loading magic. (ApacheDS queries for java classpath.
Thus java classpath is not aware about classes loaded by OSGi. Therefore
repository/components jar files are not listed under java classpath.)
As Azeez mentioned, the way apacheDS implement default loading of .ldif
is not quite correct. There is an already filed issue ([2]) for this and
it is fixed in their trunk.
[2] https://issues.apache.org/jira/browse/DIRSERVER-1504
Furthermore above fix will be available in ApacheDS 2.0.0 RC1.
After considering the fact that Carbon deploying in another application
server, i could fathom 2 possible solutions,
1. Have a dependency to ApacheDS trunk rather than to a release version
2. Deploy schema jar ("shared-ldap-schema-0.9.18.jar") as a carbon core
library. Then we dont need to copy above mentioned jar file to lib
directory during feature installation. I guess we need to deploy core
libraries to the lib directory, even when the underlying application
server is not tomcat.
Each of above options have pros and cons.
Appreciate your feedback on this.
Thank you
AmilaJ
Sumedha Rubasinghe wrote:
On Tue, Aug 10, 2010 at 11:36 AM, Afkham Azeez <[email protected]
<mailto:[email protected]>> wrote:
On Mon, Aug 9, 2010 at 10:08 PM, Isuru Suriarachchi
<[email protected] <mailto:[email protected]>> wrote:
On Mon, Aug 9, 2010 at 8:10 PM, Senaka Fernando
<[email protected] <mailto:[email protected]>> wrote:
On Mon, Aug 9, 2010 at 5:29 PM, Afkham Azeez
<[email protected] <mailto:[email protected]>> wrote:
The way Apache DS has implemented this is pretty ugly.
I agree too. I believe that you can embed the jar inside
the bundle that you use it as a much cleaner workaround. WDYT?
+1. Or else, you can move the file into
CARBON_HOME/lib/core/WEB-INF/lib which is the lib folder of
the carbon webapp.
Even that won't work for automatic feature installation, if the
user decides to deploy the Carbon webapp into his own Web
container. If Carbon is deployed under e.g.
JBOSS_HOME/server/default/deploy/carbon.war, automatica feature
installation will not be able to copy stuff into the
carbon.war/WEB-INF/lib.
Azeez,
I think embedding the jar is the cleanest approach.
WDYT?
/sumedha
Thanks,
~Isuru
Why the solution of copying to CARBON_HOME/lib will
not work in all cases is because, many of our
customers deploy Carbon as a webapp on different
appservers. So, in that case, you will have to copy
the jar into the appserver specific lib directory
(which you cannot do through feature installation).
Perhaps we should try to get this fixed in ApacheDS.
+1.
Thanks,
Senaka.
Azeez
On Mon, Aug 9, 2010 at 3:38 PM, Amila Jayasekara
<[email protected] <mailto:[email protected]>> wrote:
ApacheDS version 1.5.7 finds default ".ldif" files
by searching through its own classpath. The
default ".ldif" files are archived into a jar file
called "shared-ldap-schema-0.9.18.jar". Anyhow i
didnt find a proper documentation which states
this, but after doing some debugging i found
following piece of code in apacheds source
(org.apache.directory.shared.ldap.schema.ldif.extractor.impl.ResourceMap.java),
HashMap<String,Boolean> retval = new
HashMap<String,Boolean>();
String classPath = System.getProperty(
"java.class.path", "." );
String[] classPathElements =
classPath.split( File.pathSeparator );
for ( String element : classPathElements )
{
getResources( retval, element, pattern );
}
Thus mail thread in [1] also confirmed above
conclusion.
[1]
http://www.mail-archive.com/[email protected]/msg03205.html
Placing "shared-ldap-schema-0.9.18.jar" in
${carbon.home}/repository/components/plugin will
not be helpful as it is not visible to classpath.
But if i place "shared-ldap-schema-0.9.18.jar" in
${carbon.home}/lib, the library
"shared-ldap-schema-0.9.18.jar" is visible to the
classpath.
I hope this explains why i wanted to place a jar
in ${carbon.home}/lib.
Thank you
AmilaJ
Afkham Azeez wrote:
I'm not questioning the validity of this
scenario. I was wondering why a jar needs to
be placed into CARBON_HOME/lib which is
outside the OSGi environment.
Azeez
On Mon, Aug 9, 2010 at 10:59 AM, Lahiru
Gunathilake <[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Azeez,
I think this is a valid requirement during
a scenario like, we do
not ship a particular feature with any of
our products and it's an
optional feature and during the
installation of that particular
feature we need to put some configuration
files or may be some jar
files in to different locations likes like
CARBON_HOME/lib
CARBON_HOME/repository/conf.
Since we are not shipping this with product
we need to put them
during feature installing time.
Lahiru
On Mon, Aug 9, 2010 at 10:53 AM, Sameera
Jayasoma
<[email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
This is possible. You need to configure
the carbon-p2-plugin
properly. I will let you know how to do
that.
Thanks
Sameera
On Mon, Aug 9, 2010 at 10:36 AM, Afkham
Azeez <[email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Please let us know why you are
trying to do this.
It is always better to explain the
problem first before
describing the solution so that
others may be able to give
you a better solution.
thanks
Azeez
On Sun, Aug 8, 2010 at 9:57 PM,
Amila Jayasekara
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Sameera,
I need to have a jar file in
the classpath when
running ApacheDS
component. Is it possible to
install a jar file to
${carbon.home}/lib
when installing a feature ? If
yes, please let me know
how to configure
the feature.
Thankx
AmilaJ
_______________________________________________
Carbon-dev mailing list
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
-- Afkham Azeez
Senior Software Architect & Senior
Manager; WSO2, Inc.;
http://wso2.com, Lean . Enterprise
. Middleware
Member; Apache Software Foundation;
http://www.apache.org/
email: [email protected]
<mailto:[email protected]> <mailto:[email protected]
<mailto:[email protected]>> cell: +94 77
3320919
blog: http://blog.afkham.org
twitter:
http://twitter.com/afkham_azeez
linked-in:
http://lk.linkedin.com/in/afkhamazeez
-- Sameera Jayasoma
Technical Lead
WSO2, Inc. (http://wso2.com)
email: [email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
blog: http://tech.jayasoma.org
Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
-- Lahiru Gunathilake
Senior Software Engineer - WSO2 Inc.
www.wso2.com <http://www.wso2.com>
<http://www.wso2.com>
Email:[email protected]
<mailto:email%[email protected]>
<mailto:email%[email protected]
<mailto:email%[email protected]>> Blog:
www.lahiru.org <http://www.lahiru.org>
<http://www.lahiru.org>
Mobile: +94716381143
Lean . Enterprise . Middleware
--
Afkham Azeez
Senior Software Architect & Senior Manager;
WSO2, Inc.; http://wso2.com, Lean . Enterprise
. Middleware
Member; Apache Software Foundation;
http://www.apache.org/
email: [email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>> cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
------------------------------------------------------------------------
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
--
Afkham Azeez
Senior Software Architect & Senior Manager; WSO2,
Inc.; http://wso2.com, Lean . Enterprise . Middleware
Member; Apache Software Foundation; http://www.apache.org/
email: [email protected] <mailto:[email protected]> cell:
+94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
--
Senaka Fernando
Associate Technical Lead
WSO2 Inc.
E-mail: senaka AT wso2.com <http://wso2.com>; Mobile: +94
77 322 1818
http://www.wso2.com/ - "Lean . Enterprise . Middleware"
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
--
Afkham Azeez
Senior Software Architect & Senior Manager; WSO2, Inc.;
http://wso2.com, Lean . Enterprise . Middleware
Member; Apache Software Foundation; http://www.apache.org/
email: [email protected] <mailto:[email protected]> cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
------------------------------------------------------------------------
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/patches::/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/patches/*.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/axiom-1.2.10.wso2v1-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/backport-util-concurrent-3.1.0.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/commons-dbcp-1.2.2.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/commons-pool-1.5.0.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/ehcache-1.5.0.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/geronimo-stax-api_1.0_spec-1.0.1.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/lucene-core-2.3.2.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/org.wso2.carbon.registry.core-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/org.wso2.carbon.user.core-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/realm/synapse-securevault-2.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/bcprov-jdk...@[email protected]:/home/aj/development/Tools/jdk1.6.0_13/lib/tools.jar::/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/activation-1.1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/ant-1.7.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/ant-launcher-1.7.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/aopalliance-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/catalina-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/catalina-optional-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/commons-cli-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/commons-el-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/commons-lang-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/commons-logging-1.1.1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/commons-modeler-2.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/geronimo-jta_1.1_spec-1.1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/h2-1.1.112.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/h2-database-engine-1.1.112.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jasper-compiler-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jasper-compiler-jdt-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jasper-runtime-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jsp-api-2.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jsr107cache-1.1.wso2v1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/jsr311-api-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/juli-6.0.16.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/log4j-1.2.13.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/naming-factory-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/naming-factory-dbcp-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/naming-resources-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.apache.log4j-1.2.13.v200706111418.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.wso2.carbon.core.installer-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.wso2.carbon.logging-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.wso2.carbon.queuing-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.wso2.carbon.server-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/org.wso2.carbon.utils-3.0.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/servlet-api-2.4.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/servlets-default-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/shared-ldap-schema-0.9.18.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/smack-2.2.1.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/smackx-3.0.4.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/stax-api-1.0-2.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tcpmon-1.0.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tomcat-apr-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tomcat-coyote-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tomcat-http-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tomcat-util-5.5.23.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/tribes-6.0.16.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/woden-impl-commons-1.0-SNAPSHOT.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/wrapper-3.2.3.jar:/home/aj/development/products/wso2/carbon/core/distribution/target/wso2carbon-3.0.0-SNAPSHOT/lib/xml-resolver-1.2.jar::
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev