my dog learned polymorphism*
The moose likes JSP and the fly likes Xuggler using Tomcat on windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Xuggler using Tomcat on windows" Watch "Xuggler using Tomcat on windows" New topic
Author

Xuggler using Tomcat on windows

J Das
Ranch Hand

Joined: Jul 27, 2011
Posts: 83

Hello everyone , I am developing a video sharing website , i have to achieve something like this.. an user uploads a video and a thumbnail image of that video would be generated. I am doing this on Netbeans 6.9.1 , using Tomcat and also have studied some Xuggler since a few days and so tried of using Xuggler. But my question is where should i install Xuggler ?? Inside Tomcat ??
I have installed Xuggler in 'lib' folder of my Tomcat. I have added the following environment variables---->>

CLASSPATH = .;.;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\commons-cli.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-classic.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-core.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\slf4j-api.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler-test.jar;

XUGGLE_HOME = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib

Path = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\bin;

and I have included the 6 jar files of Xuggler which remains in lib>share>java under my Projects Libraries...

what i have done is the following..

index.jsp ( user uploads a video file from this page )



VT.java ( this is the servlet to which the user posts the file )



Main.java ( this is the java class where the creation of thumbnails must take place )




Now , when i run my application and upload a video file , it gets uploaded in my Project directory but the Thumbnail images are not created and it gives the following errors:




what am i doing wrong ??? why are the images not generating ??? when i apply the same code for generating thumbnail images in a Java Application ( not Web Application ) , it creates the images , but when i do it a Web Application like above , I get errors..
 
Consider Paul's rocket mass heater.
 
subject: Xuggler using Tomcat on windows
 
Similar Threads
Problem uploading file togetherwith database insertion
creating thumbnail for uploaded files
upload file in jsp
Automatic flushing of response
Uploading Files problem