Xuggler with Tomcat on Windows 7 - windows

I have been developing a web application , here I need to generate thumbnails of videos when they are uploaded by users. I am using Tomcat as my server. So my Tomcat resides in C:\Apache Tomcat 6 . So do i need to include the jar files of Xuggler in C:\Apache Tomcat 6\lib folder ???? and if so which specific jar files do i need to place there ?? which version of Xuggler would be better ? I am not using Maven or Ivy or any dependencies. I am just doing the Web Application in simple Servlet and Jsp concept.

I will explain how to setup xuggler on localhost tomcat 7
download xuggler jars and all its dependencies.
then extract the .dll files from xuggler.jar(xuggler5.2.jar or xuggler5.4.jar),it is the binary file which is written i c language.
copy the .dll files,which is perfect for your system (32bit x86 ,64bit x64) to any folder. for example
c:\xuggler.dll
Add the path of .dll to the classpath.
if you are using eclipse in the build path add path of .dll to the native library path to avoid any issues.
This could definitely work ,i have done this lot of times!!!
please vote if you find my answer useful !!!

Related

Manual Vaadin Project Deploy on Raspbian

For a project I want to do a performance comparison of different web-frameworks on a raspberry pi. Thats why I want to do only a manual deploy to mess around with it a bit.
I created a Vaadin project using maven and exported it as application.war file. I downloaded the tomcat-7 server and unzipped it. After that I gave the .sh files in the folder executable permission. Then I copied .war file in the webapps folder of tomcat. Finally I started tomcat by running sh startup.sh.
But when I try to open the page on my dev machine under ip:8080/application I only receive a timeout.
Did I miss something?

How to force Jetty to redownload a modules external libs after Jetty home upgrade

I've split up my Jetty installation from my configuration by using the "Jetty Base and Jetty Home" mechanism.
This made it very easy to upgrade Jetty 9.4.3 to 9.4.6 by just referencing to the new Jetty home directory.
In my Jetty base directory I have activated the cdi module, which had downloaded various lib files under {$jetty.base}/lib/cdi.
Although Jetty 9.4.6 has new versions of the weld framework referenced in its module description, those libs in my Jetty base directory did not get updated automatically. What is the recommended way to update these libs?
Deactivating the module, deleting the libs and reactivating it feels a little bit odd...
Add --create-files to your start.jar command line once.
If the module is defined properly (sometimes it isn't. if so, that's a bug), only the specific jar files needed are referenced, not the old ones.

jboss-as-maven-plugin: which directory does command "jboss-as:deploy" deploy an .ear to?

I am running jboss 7.1, maven 3, and a java ee6 application that generates an .ear
I am doing a mvn clean package jboss:as-deployand Jboss-as-maven-plugin 1.5 does its thing--I can view my app using http://localhost:8080...
just fine, but I want to know where the actual .ear is being put.
It is not in my jboss7.../standalone/deployments folder. So where is it? My app is obviously running in jboss 7.1 just fine, but I can't find the .ear file. I know that there is an .ear in Eclipse's 'target' directory, but that wasn't produced by jboss-as-maven-plugin is it? I hope you can understand my confusion--don't all .ear files need to be in the deployments directory? I also do see my .ear file inside my hidden .m2/repository directory, but does this have any interaction with jboss-as-maven-plugin? Maybe there is some hidden sym-linking between my Eclipse project's 'target' directory and the jboss7.1 standalone/deployment directory?
p.s. I am used to using a hard-deploy option with the other plugin jboss-maven that requires you to say jboss:hard-deploy which just copies the .ear to your deployments folder. Then jboss would pick up the new .ear and redeploy automatically. I get the sense that jboss-as-maven-plugin is the preferred plugin so that's why I am bothering.
The jboss-as-maven-plugin uses the deployment API so it doesn't copy the file to the deployments directory for the scanner to pick it up. It deploys just as if you deployed it from the web console or via CLI. The files should be located somewhere in the $JBOSS_HOME/standalone/data/ directory.
You're welcome to open an issue, for a discussion around it at least. I'm not sure how I feel about adding a goal for it, but here isn't the place to discuss that :)

Deploy Vosao in eclipse in windows

I am using google app engine in eclipse in windows OS. I want to used Vosao CMS(which is develop for GAE). But i can't deploy in eclipse in windows and easily deploy in eclipse in windows.So how vosao(content management system) deploy in eclipse in windows OS.
There is not direct way to deploy the Vosao in eclipse in windows. But there is a alternate solution.
For- Eclipse IDE for Java Developers
1.Unzip the war file.
2.than create a project in eclipse.
3.Than copy the contain of unzip folder one by one & paste in proper position in your project.like servlet paste in src & jsp pages paste in war folder.
4.care fully read this point
In unzip folder there is a web-inf folder & also in your project there is web-inf folder. So copy the contain of web-inf folder carefully in project web-inf folder.
For-Eclipse IDE for Java EE developers
File-->Import-->web-->war
It may be work. In my project both are work.
There is a very good tutorial on this.
http://www.rarejava.com/blog/2011/07/deploying-vosao-from-eclipse
I had do minor modifications on my side for Maven and Subclipe 1.8. Other than that the Blog worked like a charm

How To Setup Logback with Tomcat 6 on Windows

I have tomcat6 installed on my Windows desktop for testing purpose. At the moment nothing is added to the webapps folder, just the normal tomcat start up. Following log files are produced:
catalina.2011-12-24.log
host-manager.2011-12-24.log
jakarta_service_20111224.log
localhost.2011-12-24.log
manager.2011-12-24.log
stderr_20111224.log
stdout_20111224.log
My problem is simple, I want these logs [stdout included] to be rolled and compressed on the basis of defined size limit.
I have read about logback and its capabilities to roll and compress files with defined policies, but I have not been able to make it work for me. I have copied following jars in $TOMCAT_HOME/lib directory:
logback-access-1.0.0.jar
logback-classic-1.0.0.jar
logback-core-1.0.0.jar
Some sites suggested these libs should be added as well:
jul-to-slf4j-1.6.4.jar
slf4j-api-1.6.4.jar
I have tried copying logback.xml in $TOMCAT_HOME/conf and $TOMCAT_HOME/lib, but unable to make it work.
I would really appreciate if someone can help me with this, best could provide me with a logback.xml and jars/xml location where these files should be copied to make it work.
P.S. I have not deployed any webapp in the tomcat, it just the basic tomcat setup.
I think this tutorial can help. Tomcat 6 works only with log....0.9.30.jar or lower. Tomcat + SLF4J + Logback

Resources