Closed GoogleCodeExporter closed 8 years ago
I guess the best way is put the java2word(or any other necessary jar file) jar
file in the directory /yourApp/WEB-INF/lib.
The jar should end up in this directory inside your war file. Unpack your war
file and take a look at it.
Leonardo
Original comment by leonardo...@gmail.com
on 6 Nov 2011 at 8:41
Thanks for the advice.
I've already put the jar file in /WEB-INF/lib directory along with other
necessary jar files.
I've also import 'java2word' jar file into /Libraries directory. (Build Path ->
Configure Build Path -> Libraries -> Add Jars). If I don't import this jar into
this directory, I got error in 'WordWithoutSol' servlet in Eclipse.
I attached a screen capture of Eclipse's Project Explorer for your reference.
You'll notice a yellow warning sign on the Project name (P6QGen_Ajax). This
sign appear when I import 'java2word' jar into Libraries .
Is there any thing I should do to solve the problem?
Original comment by nyein...@gmail.com
on 6 Nov 2011 at 10:02
Attachments:
I forgot to mention that java2word-3.0_2011Aug02.jar is included in war file
when I unpack it.
Original comment by nyein...@gmail.com
on 6 Nov 2011 at 10:43
What is the yellow exclamation mark saying? go to "windows/show view/problem"
and post here what this warning is saying.
Original comment by leonardo...@gmail.com
on 6 Nov 2011 at 12:05
Here's the message about the yellow exclamation mark:
"Classpath entry
/P6QGen_Ajax/WebContent/WEB-INF/lib/dist/java2word-3.0_2011Aug02.jar will not
be exported or published. Runtime ClassNotFoundExceptions may result."
Btw, as I mentioned in my previous message, I can see this jar in "war" file
when I unpacked it.
Thanks,
Nyein Zay Aung
Original comment by nyein...@gmail.com
on 6 Nov 2011 at 12:45
After adding java2word jar file into 'Properties -> Deployment Assembly' the
yellow exclamation mark disappear. But when run the web app, receive the same
exception.
Thanks,
nza
Original comment by nyein...@gmail.com
on 6 Nov 2011 at 4:30
I can see this directory "dist" inside lib. I never do that. Put your jar files
straight on lib.
I don't know how you deploy, if you deploy to tomcat or run inplace. It is
difficult to help because I don't know your environment. Classpath issues are
beyond this library and I've never had this kind of issues.
Original comment by leonardo...@gmail.com
on 6 Nov 2011 at 10:25
I deploy war to tomcat. I've set all the class path through 'build.properties'
and 'build.xml' and so tomcat can reach to all necessary jars. Other parts of
my web app is working except this one.
Thanks again for taking time to look at my issue.
Cheers!
nza
Original comment by nyein...@gmail.com
on 7 Nov 2011 at 3:32
The problem is solved. I manually copy and paste the 'java2word' jar into
Tomcat's library and now word download is working. This might be something to
do with my configuration. I remember I need to do the same for
'mysql-connector' jar file sometimes ago.
Thanks again for your kind attention to my issue and a great 'Java2Word' API.
Cheers!
nza
Original comment by nyein...@gmail.com
on 7 Nov 2011 at 5:20
cool you found out! there are so many different ways to configure jars, I use
maven and they all go to the proper place inside my app.
but it is good you resolved!
cheers
Leonardo
Original comment by leonardo...@gmail.com
on 7 Nov 2011 at 5:23
Original comment by leonardo...@gmail.com
on 2 Feb 2012 at 12:29
Original issue reported on code.google.com by
nyein...@gmail.com
on 6 Nov 2011 at 6:25