Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
1.6 endorsed dirs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

1.6 endorsed dirs



I have to run my program as root to listen for snmp traps, so I have
aliased sjava6 to
alias sjava6="sudo
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java"

I use the JAXB2.1 libraries which are in
/Users/jar/sensornet/ftbragg/snmpclient/dist/lib

When I run though, I get:
jarmac:dist jar$ sjava6 -jar SNMPClient.jar
-Djava.endorsed.dirs=/Users/jar/sensornet/ftbragg/snmpclient/dist/lib
Password:
SasProducer.configure_default_logger: created logger gov.sensornet.sas
with level OFF
SasProducer.configure_default_logger: created logger gov.sensornet.sas
with level OFF
Exception in thread "Trap.0" java.lang.LinkageError: JAXB 2.0 API is
being loaded from the bootstrap classloader, but this RI (from
jar:file:/Users/jar/SensorNet/FtBragg/SNMPClient/dist/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
needs 2.1 API. Use the endorsed directory mechanism to place
jaxb-api.jar in the bootstrap classloader. (See
http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
    at
com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:172)
    at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
    at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
    at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
    at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
    at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Why aren't my endorsed directories "taking"?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.