Closed GoogleCodeExporter closed 8 years ago
BTW I am using JDK 1.5 and the required jar files for jdk 1.5 are on CLASSPATH
variable in windows e.g D:\Program Files\Apache Software Foundation\Tomcat
6.0\lib\jaxb-api-2.1.jar;D:\Program Files\Apache Software Foundation\Tomcat
6.0\lib\jaxb-impl-2.1.jar;D:\Program Files\Apache Software Foundation\Tomcat
6.0\lib\jsr173-api-1.0.jar;
Original comment by amir.wasim
on 12 Nov 2008 at 3:51
weird. I can only guess that you're also bringing in an explicit dependency on
xerces, when you should not have to, since jdk 1.5 has xml parsers built in..
what's
your full classpath?
Also, are you not using maven for dependency management?
Original comment by fern...@gmail.com
on 12 Nov 2008 at 6:52
[deleted comment]
Its D:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\jaxb-api-2.1.jar;D:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\jaxb-impl-2.1.jar;D:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\jsr173-api-1.0.jar;D:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\json-1.0.jar;
And i am not using maven for dependency mangement
Original comment by amir.wasim
on 13 Nov 2008 at 8:33
Add next libraries to your classpath:
xalan-2.7.0.jar
xercesImpl-2.8.1.jar
dom4j-1.6.1.jar
xml-apis-1.3.03.jar
Original comment by rdmytre...@gmail.com
on 13 Nov 2008 at 9:39
After adding these as well doesnt change any thing. Still getting the same
exception.
Classpath looks as follows now
D:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\jaxb-api-2.1.jar;D:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\jaxb-impl-2.1.jar;D:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\jsr173-api-1.0.jar;D:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\json-1.0.jar;D:\Program
Files\Apache
Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\xalan-2.7.0.jar;D:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\aha\WEB-INF\lib\xercesImpl-2.8.1.jar;D:\Program Files\Apache
Software
Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\dom4j-1.6.1.jar;D:\Program
Files\Apache
Software Foundation\Tomcat 6.0\webapps\aha\WEB-INF\lib\xml-apis-1.3.03.jar;
Original comment by amir.wasim
on 13 Nov 2008 at 9:52
This is definitely a problem restricted to your build and, as such, you're in
the
best and only position to fix it. Have you attached a Java debugger to your
runtime
environment? Simpler still is to just start using Maven for dependency
management.
Please close this issue as it is not a general, repeatable issue with the Java
Facebook API.
Original comment by david.j....@googlemail.com
on 16 Nov 2008 at 10:52
yeah.. i kind of agree with david, I don't think it's the library, but just the
way
amir has set it up.. so I'll keep it open for a bit longer.. maybe I can help
him
figure it out, else...
So, are you building a war file and deploying it to tomcat? Or what are you
doing?
You should not be adding these jar files to tomcat directly, but should be
included
into your war file lib directory..
Original comment by fern...@gmail.com
on 18 Nov 2008 at 3:26
Original comment by fern...@gmail.com
on 18 Nov 2008 at 3:31
No i am not deploying it as war file, its part of another webapp for which
classes
are in classes folder. If i write something e.g
servletOutput.println("Hello FaceBook sessionKey "+sessionKey);
servletOutput.println("Hello FaceBook authToken"+authToken);
servletOutput.println("Hello FaceBook _apiKey"+_apiKey);
servletOutput.println("Hello FaceBook _secretKey"+_secretKey);
and dont do anything it is visible in the application @ facebook, but if i call
client = new FacebookXmlRestClient(_apiKey, _secretKey, sessionKey);
client.friends_get();
I get the exception.....
Original comment by amir.wasim
on 18 Nov 2008 at 8:16
Closing due to it being off-topic and inactive.
Original comment by david.j....@googlemail.com
on 2 Dec 2008 at 1:04
Original issue reported on code.google.com by
amir.wasim
on 12 Nov 2008 at 2:16