Symfony Command Line Quick Reference

Generate Myproject project structure php lib/vendor/symfony/data/bin/symfony generate:project MyProject Generate frontend application called frontend php symfony generate:app frontend Build schema, table SQL and ORM model and insert fixtures into the database php symfony doctrine:build –all –and-load Generate frontend module and call it users for table Users php symfony doctrine:generate-module –with-show –non-verbose-templates frontend users Users

Read More »

Doctrine couldn’t find class

I got stuck on this error whilst trying to load my yaml data files in Symfony php symfony doctrine:build –all –and-load and php symfony doctrine:data-load Couldn’t find class PropertyType PHP Fatal error: Call to a member function evictAll() on a non-object in /Users/mjhoman/Sites/property/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1239 Fatal error: Call to a member function evictAll() on […]

Read More »

Websphere ResRefListImpl initializeIsolationLevel RuntimeError problem

I came across this strange error, which baffled me for ages, but was simple to fix. I had duplicate resource references in web.xml and binding files. com.ibm.ws.exception.RuntimeError at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:328) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:268) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:152) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:287) at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)

Read More »

Setting the build-level in Websphere Application Server (WAS)

In the MANIFEST.MF file in the ear, you will need to set the follwing property Implementation-Version: 4.23.0.1 In ANT you can use this <manifest file=”MANIFEST.MF”> <attribute name=”Implementation-Version” value=”${version} ${TODAY}”/> </manifest> If you use Hudson/Jenkins, then you can place the build version from Hudson/Jenkins with this <manifest file=”MANIFEST.MF”> <attribute name=”Implementation-Version” value=”${BUILD_NUMBER}”/> </manifest>

Read More »

Subversion repository access through apache

Accessing a repository through the web via apache Create the following configuration files /etc/apache2/conf.d/subversion.conf /etc/apache2/conf.d/subversion.conf contents: DAV svn SVNPath /srv/svn/myproject/repos AuthType Basic AuthName “Subversion Login” AuthUserFile /etc/apache2/conf.d/subversion-users #Read only unless authenticated. Require valid-user LoadModule dav_module /usr/lib/apache2/mod_dav.so LoadModule dav_fs_module /usr/lib/apache2/mod_dav_fs.so LoadModule dav_svn_module /usr/lib/apache2/mod_dav_svn.so LoadModule authz_svn_module /usr/lib/apache2/mod_authz_svn.so We could have a seperate //Location// for each svn repository […]

Read More »

Subversion Repository Creation

Make the directory where the repository is going to be mkdir /srv/svn/myproject Set the permissions so apache can have the access to the folder and repository cd /srv/svn/myproject chown wwwrun /srv/svn Now create the repository in the directory svnadmin create –-fs-type fsfs /srv/svn/myproject/repos You should now have a direcory /srv/svn/myproject/repos/ To view the repository in […]

Read More »

Subversion Installation

Prior to subversion-1.4.5 installation the following dependencies must be set up and installed: Suse Linux Enterprise Server 10 (sles 10) Apache 2.2 Autoconf Open ldap dev Neon 0.25.5 neon-0.25.5-7.1.i586.rpm neon-devel-0.25.5-7.1.i586.rpm Download the subversion tar file you require (i.e. subversion-1.4.5.tar.gz) from: [[http://subversion.tigris.org/|Subversion]] Extract the tar file into /tmp using the following command: tar –xzvf suibversion-1.4.5.tar.gz Change […]

Read More »

Doctype differences

Strict 11 elements removed APPLET, BASEFONT, CENTER, DIR, FONT, IFRAME, ISINDEX, MENU, S, STRIKE, and U. Transitional keeps 11 elements APPLET, BASEFONT, CENTER, DIR, FONT, IFRAME, ISINDEX, MENU, S, STRIKE, and U. Frameset Three (3) elements are added when compared to Strict: FRAME, FRAMESET and NOFRAMES, Also the BODY tag is replaced with the FRAMESET […]

Read More »