Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Thursday, October 14, 2010

Maven troubles on Helios

I created a new working environment on my laptop and checked out my source via clone. After setting up everything i still had troubles deploying my application on glassfish:

|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=23;_ThreadName=http-thread-pool-4848-(1);|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

Searching in the net i found out that maven on helios has a bug deploying dependencies on helios.
Here the Link:
http://www.eclipse.org/forums/index.php?t=msg&goto=544809&

I installed and checked everything, in the end i had to change this file:
${PROJECT_HOME}/.settings/org.eclipse.wst.common.component
consumes

Tuesday, August 17, 2010

Hamcrest 1.1 Security Error on Eclipse Gallileo With JMock

Finally i started working on unit tests and already got a gotcha on eclipse galileo with jMock 2.5.1.
Galileo Ships with jUnit 4 but unfortunately without org.hamcrest.TypeSafeMatcher which is needed by jMock.

Adding jMock through Maven still leaves the Problem with Classpath and who comes first.

I tried the following links with no luck:
http://www.southsearepublic.org
http://cedar715.wordpress.com/2009/10/20/86/

Then i removed jUnit Libraries in Project Properties under Java Build Path => Libraries and added jUnit through Maven Dependencies.

Works like a charm now.

Wednesday, July 07, 2010

PHP Programmers Way to Java Heaven .. or jPitfalls

That's a nice Title.. or "Typical Java Pitfalls if your a PHP Programmer" or something like that .. in short Java Pitfalls or jPitfalls. (That's a nice short word!)

In short: i started programming in java/eclipse a while ago and decided to write all my troubles down so it might help someone else getting a clue what's happening...

And because my college urged me to do it over half a year.. so here it comes. A complete Series about all my troubles with the Name jPitfalls.

Now i need to tell you a little about the environment of the project i am working on. It's a typical WebShop with Database connectivity serving a handful of people so it's not a big deal. But this are my first baby steps into the wonderful world of compilation, debugging and so much more.

Without any help it's not as easy as it sounds when you need to find the right peace of software for your work. Frameworks, Database Connection, Template System... learn everything from scratch. So i worked my way through Struts 1,2, Spring, Hibernate, Plugins for that Frameworks and of course Eclipse and it's Plugins, unsure where it ends.

Also there was/is the question where will it be hosted. Finding a decent and pricable Hoster isn't easy if you know what technology you are working for. But now it's also a Question if you want an EJB 3 Container or not. Is Tomcat enough or do we need something more extravagant. (Glassfish?)

I ended up in several discussions with myself about the way i should go. (I am still having these discussions, but man, i have gone a long road already) For example the Framework: First i decided to use Struts1 because i thought it's old, so you find a lot of helpful information and it's really complete, nothing beta.

After working hard on the project for several weeks i thought that upgrading to Struts2 would be a good Idea, but not yet. Don't change something important as the Framework in the middle of the implementation cycle. Remember: You want to complete the project asap.

But then some Problems occurred which led to the decision to refactor everything and use Struts2 instead. (It was after all the right decision). In the meantime i use Spring for some parts (as they really work great together) and Hibernate as Database Layer.

My Intention was always to keep it as small as possible and as simple as possible. And for christs sake: Get the job done, will you!

Thursday, January 07, 2010

Could not open the Visual Page Editor: No more handles [Could not detect registered XULRunner to use]

If you have installed the struts tools from the jboss development update site in eclipse under windows and get hit by that error you might want to check if you also installed the xul runner from the jboss update site.

Might save you a lot of troubles and hours of searching what's been happening.

cheers