Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.


  • Subscribe to this RSS Feed
  • Updating the URL of a Subversion Repository in a Currently Checked Out Copy of Your Repository
    03/14/2011 8:23PM

    Let's say you have a server who's IP address or domain name changes on which you have a Subversion repository.? Furthermore, you have checked out the copy over an ssh connection using svn+ssh.

    If you have checked-out copies of your repo, and the path to the repo on the file system hasn't changed, but only the IP or domain name has changed you need to issue the following command in the root of your checked out copy:

    svn switch --relocate svn+ssh://user@old.domain/ svn+ssh://user@new.domain/

    Authenticate to the new machine.

    svn update

    Authenticate again.


  • Setting the Screen Resolution of a Linux Guest in VMWare vSphere Client
    03/03/2011 3:32PM

    I am currently working with virtual machines via Vmware vSphere on a Windows 2008 server. Initially I was unable to get the guest to render full screen and did not have all of the screen resolutions that I would have thought I should. What I was trying to do was have the guest Linux (in this case RedHat Enterprise Linux 6) run full-screen. It was not as straight forward as setting the screen resolution in the VM guest settings dialog.

    After much trial and error the way to do it is to crank up the amount of ram allocated for the virtual video card. The guest will then have enough resources to render at full screen and you will have a wide array of screen resolution choices.

  • Import javax.ejb cannot be resolved Error in Eclipse Helios
    03/03/2011 2:28PM

    If you have installed the latest and greatest JBossAS tools into eclipse, try using the following version instead:


    It seems as though there are some problems with the latest and greatest that causes compilation problems.

  • Online Color Picker Tool
    02/25/2011 10:40PM

    For any of you who are used to picking colors with the Photoshop color picker, you will love this:


  • Accessing an EJB 3.1 Singleton Bean with @Startup from a Servlet in the Same JVM Instance
    02/23/2011 9:49PM

    I am building a project whereby I have a Singleton Bean that I want to fire up when the .jar is deployed in the EJB container, thus I have it annotated as follows:

    package com.ryanchapin.ejbTest


    public class SingletonTest{}

    Of course, I have the requisite Local and Remote interfaces set, up, I've just left that off for brevity.? I am attempting to do a JNDI lookup, from a Servlet in the same JVM using the Local interface which results in:

    22:14:31,481 ERROR
    Allocate exception for servlet TestServlet: java.lang.ClassCastException:
    $Proxy188 cannot be cast to com.ryanchapin.ejbTestLocal
    ?? ?at com.ryanchapin.TestServlet<init>(TestServlet.java:51) [:]
    ?? ?at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_17]
    ?? ?at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.6.0_17]
    ?? ?at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.6.0_17]
    ?? ?at java.lang.reflect.Constructor.newInstance(Constructor.java:532)[:1.6.0_17]
    ?? ?at java.lang.Class.newInstance0(Class.java:372) [:1.6.0_17]
    ?? ?at java.lang.Class.newInstance(Class.java:325) [:1.6.0_17]
    ?? ?at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:280)[:6.0.0.Final]
    ?? ?at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1162)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:955)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[:6.0.0.Final]
    ?? ?at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)[:6.0.0.Final]
    ?? ?at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)[:1.1.0.Final]
    ?? ?at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)[:1.1.0.Final]
    ?? ?at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)[:6.0.0.Final]
    ?? ?at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[:6.0.0.Final]
    ?? ?at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[:6.0.0.Final]
    ?? ?at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)[:6.0.0.Final]
    ?? ?at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[:6.0.0.Final]
    ?? ?at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)[:6.0.0.Final]
    ?? ?at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)[:6.0.0.Final]
    ?? ?at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)[:6.0.0.Final]
    ?? ?at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)[:6.0.0.Final]
    ?? ?at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)[:6.0.0.Final]
    ?? ?at java.lang.Thread.run(Thread.java:636) [:1.6.0_17]

    When I lookup the Remote interface JNDI name in the Servlet it works just fine.? This only occurs if I have the bean annotated with @Startup.? If I remove the @Startup annotation I can access the EJB via the local interface without a problem.

    Perhaps a bug in Jboss-6.0.0, I'm not sure.? For the time-being I am just going to use the remote interface.


Advanced Search