Friday, March 29, 2013

Downloading and configuring jetty9

More info is available here http://www.eclipse.org/jetty/documentation/current/jetty-runner.html
http://linuxdatum.info/web-server/howto-install-php-fpm-with-nginx-on-ubuntu-12-04-lts
NgInx server install with FastCGI check  /etc/resolv.conf , /etc/hostname, /etc/hosts check for hostname in (127.0.1.1)

===Downloading and configuring jetty9==

search.maven.org for "jetty-runner"

wget -O ~/programs/lib/jetty-runner-9.0.0.v20130308.jar http://search.maven.org/remotecontent?filepath=org/eclipse/jetty/jetty-runner/9.0.0.v20130308/jetty-runner-9.0.0.v20130308.jar

rm ~/programs/jetty-9.jar
ln -s -T ~/programs/lib/jetty-runner-9.0.0.v20130308.jar ~/programs/jetty-9.jar


==in another Window RUN war from cmdLine
cd ~/projects-try
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=com.example -DartifactId=ccaApp -Dversion=1.0-SNAPSHOT

cd ccaApp
mvn war:inplace

java -jar ~/programs/jetty-9.jar --port 9090  ~/projects-try/ccaApp/src/main/webapp or add this to pom.xml and run as mvn -Djetty.port=9090 jetty:run ===============



    ccaApp

  
   
   
   
  org.eclipse.jetty
  jetty-maven-plugin
  9.0.0.v20130308
  
  
    10
    
      /j9090
    
  


  




test using http://http://rpradeshik:9090/
===========

Working with Sencha for ExtJs


=== download Sencha tool here http://www.sencha.com/products/sencha-cmd
stored in
Linux //samba-share/downloads/sencha/SenchaCmd-3.1.0.256-linux.run.zip
Window //samba-share/downloads/sencha/SenchaCmd-3.1.0.256-windows.exe.zip

== download ExtJs SDK from http://www.sencha.com/products/extjs/
http://www.sencha.com/products/extjs/download/ext-js-4.2.0/2142
Zip Sorted in //samba-share/downloads/sencha/extjs_420_build_2142/SenchaCmd-3.1.0.256-windows.exe.zip

==help install URL == http://stackoverflow.com/questions/14730977/build-failed-in-sencha-cmd
install ruby from http://rubyinstaller.org/
or sudo apt-get install ruby

==put in bashrc
export EXTJS_SDK=~/programs/sencha-cmd/ext-4.2.0.663
export SENCHA_HOME=$SENCHA_CMD_3.1.0.256
PATH=...$SENCHA_HOME/bin:$PATH

ll $SENCHA_HOME/sencha.cfg
echo "skip.sass=1" == $SENCHA_HOME/sencha.cfg
echo "skip.slice=1" == $SENCHA_HOME/sencha.cfg

test Sencha cmd as
==sencha

create new app as follows
cd ~/projects-try

sencha -sdk $EXTJS_SDK generate app CCAProject ~/projects-try/ccaApp

== to build app first cd to it and then build
cd ~/projects-try/ccaApp

echo "skip.sass=1" ext/cmd/sencha.cfg
echo "skip.slice=1" ext/cmd/sencha.cfg

sencha app build