You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Jo Jeeka <jo...@yahoo.com> on 2007/06/04 23:29:40 UTC

[ApacheDS] slf4j-api-1.2.jar missing class definition?


Long before getting past being able to create my
SNAPSHOT.jar file (moments ago) I had set up unit test
code in our project that worked somewhat (up to the
part of loading my ldif of objects).  To get past that
it was necessary to get the custom schema read in.

Now running the same old unit test code failed before
trying to load the ldif objects (this was not the case
before).  The problem was that the statement
MutableServerStartupConfiguration configuration = new
MutableServerStartupConfiguration(); (though it could
have been any statement as you will see in a second)
was causing a runtime error in that the
org.slf4j.LoggerFactory class was not found. 

I looked and noticed that the slf4j-api-1.2.jar did
not contain the class definition inside of it as the
slf4j-api-1.3.1.jar did.  I removed the 1.2 version
from my project and when back to the 1.3.1 version to
get past that.

Now, was that a problem on my end or does the
or.slf4j.LoggerFactory need to be in the
slf4j-api-1.2.jar ??




       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

Re: [ApacheDS] Custom schema problem adding objectclass

Posted by Jo Jeeka <jo...@yahoo.com>.

I'm pretty sure no code in MyObjectClassProducer.java
is being called (hence no custom objectclasses are
getting in)

I do see a section about editing the server.xml
(http://directory.apache.org/apacheds/1.0/custom-schema.html)
but I am not sure where I would do this.  We have a
tomcat server.xml but it has no bootstrapSchemas tag
in it already.  Also, I forget what stand alone means
for ApacheDS right this second and I am not sure if
for unit testing I need to edit any server.xml files. 


Also, on that same link I just gave, should the line
in the server.xml be <bean
class="org.apache.directory.server.core.schema.bootstrap.MySchema"/>
or com.acme.MySchema ?




--- Emmanuel Lecharny <el...@gmail.com> wrote:

> Hi,
> 
> On 6/5/07, Jo Jeeka <jo...@yahoo.com> wrote:
> >
> >
> >
> > I am close to getting my custom schema in...
> >
> >
> > I am getting this error:
> > OID for name 'groupofurls' was not found within
> the
> > OID registry
> 
> 
> Yje 'groupOfUrls' ObjectClass is not one of the
> default objectClasses in
> ADS. You will have to declare it by yourself
> 
> I thought if I added an objectclass definition in
> the
> > schema that I could use it (with nothing else). 
> Even
> > though on this page:
> >
> >
>
http://directory.apache.org/apacheds/1.5/add-your-first-elements-to-the-schema.html
> > it shows a CreateAttributeType class I thought
> that
> > this was generated after mvn package command.  I
> have
> > code generated similar to what is in the
> > CrateAttributeType class on the link above in this
> > file generated file MyObjectClassProducer.java
> >
> >
> > Bottom line, do I need to do more than declare a
> > custom objectclass in the schema for it to be
> usable?
> 
> 
> As soon as your schema contains all the needed
> ObjectClasses and
> attributeTypes you need, and if their syntax is
> correct, then you should be
> OK.
> 
> I'm confused on that.  If not, any idea why I can't
> > use it?  I have done a mvn clean and refreshed my
> > project and then ran the unit test.
> 
> 
> Can you copy/paste your actual schema ?
> Emmanuel
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
> 



       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

Re: [ApacheDS] Custom schema problem adding objectclass

Posted by Emmanuel Lecharny <el...@gmail.com>.
Hi,

On 6/5/07, Jo Jeeka <jo...@yahoo.com> wrote:
>
>
>
> I am close to getting my custom schema in...
>
>
> I am getting this error:
> OID for name 'groupofurls' was not found within the
> OID registry


Yje 'groupOfUrls' ObjectClass is not one of the default objectClasses in
ADS. You will have to declare it by yourself

I thought if I added an objectclass definition in the
> schema that I could use it (with nothing else).  Even
> though on this page:
>
> http://directory.apache.org/apacheds/1.5/add-your-first-elements-to-the-schema.html
> it shows a CreateAttributeType class I thought that
> this was generated after mvn package command.  I have
> code generated similar to what is in the
> CrateAttributeType class on the link above in this
> file generated file MyObjectClassProducer.java
>
>
> Bottom line, do I need to do more than declare a
> custom objectclass in the schema for it to be usable?


As soon as your schema contains all the needed ObjectClasses and
attributeTypes you need, and if their syntax is correct, then you should be
OK.

I'm confused on that.  If not, any idea why I can't
> use it?  I have done a mvn clean and refreshed my
> project and then ran the unit test.


Can you copy/paste your actual schema ?
Emmanuel
-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

[ApacheDS] Custom schema problem adding objectclass

Posted by Jo Jeeka <jo...@yahoo.com>.

I am close to getting my custom schema in...


I am getting this error:
OID for name 'groupofurls' was not found within the
OID registry


I thought if I added an objectclass definition in the
schema that I could use it (with nothing else).  Even
though on this page:
http://directory.apache.org/apacheds/1.5/add-your-first-elements-to-the-schema.html
it shows a CreateAttributeType class I thought that
this was generated after mvn package command.  I have
code generated similar to what is in the
CrateAttributeType class on the link above in this
file generated file MyObjectClassProducer.java 


Bottom line, do I need to do more than declare a
custom objectclass in the schema for it to be usable? 
I'm confused on that.  If not, any idea why I can't
use it?  I have done a mvn clean and refreshed my
project and then ran the unit test.

TIA




       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

Re: [ApacheDS] slf4j-api-1.2.jar missing class definition?

Posted by Emmanuel Lecharny <el...@apache.org>.
Jo Jeeka a écrit :

>When trying to use nlog4j I get an
>java.lang.IncompatibleClassChangeError when I
>switched.  Maybe I did something wrong.
>
>
>  
>
Are you using any other log jars?


Re: [ApacheDS] slf4j-api-1.2.jar missing class definition?

Posted by Jo Jeeka <jo...@yahoo.com>.
When trying to use nlog4j I get an
java.lang.IncompatibleClassChangeError when I
switched.  Maybe I did something wrong.




--- Emmanuel Lecharny <el...@apache.org> wrote:

> Jo Jeeka a écrit :
> 
> >Long before getting past being able to create my
> >SNAPSHOT.jar file (moments ago) I had set up unit
> test
> >code in our project that worked somewhat (up to the
> >part of loading my ldif of objects).  To get past
> that
> >it was necessary to get the custom schema read in.
> >
> >Now running the same old unit test code failed
> before
> >trying to load the ldif objects (this was not the
> case
> >before).  The problem was that the statement
> >MutableServerStartupConfiguration configuration =
> new
> >MutableServerStartupConfiguration(); (though it
> could
> >have been any statement as you will see in a
> second)
> >was causing a runtime error in that the
> >org.slf4j.LoggerFactory class was not found. 
> >
> >I looked and noticed that the slf4j-api-1.2.jar did
> >not contain the class definition inside of it as
> the
> >slf4j-api-1.3.1.jar did.  I removed the 1.2 version
> >from my project and when back to the 1.3.1 version
> to
> >get past that.
> >
> >Now, was that a problem on my end or does the
> >or.slf4j.LoggerFactory need to be in the
> >slf4j-api-1.2.jar ??
> >  
> >
> 
> I think you just have to include nlog4j-1.2.25.jar
> into your path. It 
> includes the slf4j-api, I think
> 
> Can you give it a try ?
> Emmanuel
> 
> 



      ___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

Re: [ApacheDS] slf4j-api-1.2.jar missing class definition?

Posted by Emmanuel Lecharny <el...@apache.org>.
Jo Jeeka a écrit :

>Long before getting past being able to create my
>SNAPSHOT.jar file (moments ago) I had set up unit test
>code in our project that worked somewhat (up to the
>part of loading my ldif of objects).  To get past that
>it was necessary to get the custom schema read in.
>
>Now running the same old unit test code failed before
>trying to load the ldif objects (this was not the case
>before).  The problem was that the statement
>MutableServerStartupConfiguration configuration = new
>MutableServerStartupConfiguration(); (though it could
>have been any statement as you will see in a second)
>was causing a runtime error in that the
>org.slf4j.LoggerFactory class was not found. 
>
>I looked and noticed that the slf4j-api-1.2.jar did
>not contain the class definition inside of it as the
>slf4j-api-1.3.1.jar did.  I removed the 1.2 version
>from my project and when back to the 1.3.1 version to
>get past that.
>
>Now, was that a problem on my end or does the
>or.slf4j.LoggerFactory need to be in the
>slf4j-api-1.2.jar ??
>  
>

I think you just have to include nlog4j-1.2.25.jar into your path. It 
includes the slf4j-api, I think

Can you give it a try ?
Emmanuel