Adding a webclient to EJB project

This tutorial goes on where The previous tutorial stopped so please make sure to check it out before reading anay further!

Ok let's get going again, open the ejb project in your intellij IDE and follow these simple steps:

  • Click file -> new module 
  • Create new module from scratch -> next
  • name the module webclient -> next
  • create source directory src -> next
  • select application server and web application (should be checked when you check application server). Again make sure to select your jboss 6.1.0 final server.
  • Click finish

EJB Hello World project with Jboss server

Hi everyone, today i have experienced it can be rather challenging to setup a EJB (Enterprise Java Beans) project from scratch so i decided to make a little tutorial. To do this i will be using the Intellij IDE and Jboss as my server.IMPORTANT: DO NOT USE ANY SPACES IN YOUR PATHS! THE SERVER WILL HATE YOU FOR IT! :)


Prerequisites:
Create a new project from scratch:

  • In your Intellij IDE go to File -> new project
  • Create project from scratch -> next
  • name your project "ejb" and put it on c:\\ for example, as long as there are no spaces. Leave all other settings as they are (create java module checked) -> next
  • Create source directory src -> next
  • In the the current window you are able to select the facets you'd like to add to your module, select application server, enterprise javabeans (EJB) and javaEE application. make sure the EJB version is set to 3.1 and that you select your jboss 6.1.0 server for application server. note: uncheck Web application! as we only want to create the ejb side (backend in this tutorial)
  • click finish and intellij will download all needed jars for you! :) 

URISyntaxException Starting Jboss

I recently encountered the following error:
Failed to deploy: file:/C:/Documents and Settings/jbossSpaces/out/artifacts/jbossSpaces_ear_exploded.ear/: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossSpaces/out/artifacts/jbossSpaces_ear_exploded.ear/

Moving the project to c:\\ solved it for me.

Turns out that Jboss can't handle spaces in the path so always make sure that you use a path without any spaces!