[The Lizzard's corner] - Ruby versus Java
by treespace
I bought a Ruby book and flipped through some others. One thing struck me was the amount of time they generally spend saying "how great the language is" with hardly a word on "how the language is great". In fact they appear to deliberately dodge what's good about it and fail to address what's wrong with Ruby.
Ruby is an object-oriented interpreted scripting language. Those last three adjectives are a big part of the proficiency gains. We know that on using a scripting language on the surface layer of an application has benefits. Ruby isn't any better than Groovy in that regard and the downside to a whole new syntax is obvious.
The second leg of the two-legged-stool is Rails and its ability to generate the MVC artifacts for each page (no central controller). So instead using PHP or Perl it sure looks to me like Ruby is a winner. You get a nice MVC pattern generated for you. If you liked JSP 1.0 you will love the view template they provide you (gag me with a spoon).
Clearly, Groovy and a few MVC generator tools are a better option, Grails for example. This way you can cleanly interface with type-safe, tested and optimized and reusable Java classes. I don't want to use Groovy for all my code and I sure as heck don't want to use Ruby on Rails.
BTW, why does Java have so many more books than Ruby? Poor Ruby! They certainly must have all the facilities that the Java books represent, they just don't have any darn documentation. Too bad:)
[img]http://antoniocangiano.com/images/rubybooks.gif[/img]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105822#4105822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105822
18 years, 8 months
[JBoss Seam] - Directory deployment problem (glassfish & netbeans)
by mirko27
My environment:
Glassfish V2
Netbeans 6 RC 1
JBoss 2.0.0.GA
When I try to Deploy my EAR application inside netbeans it throws exception:
| Exception occured in J2EEC Phasejava.lang.IllegalArgumentException: Invalid ejb jar [jboss-seam.jar]: it contains zero ejb.
| Note:
| 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
| 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
| 3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
| com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [soov] -- Invalid ejb jar [jboss-seam.jar]: it contains zero ejb.
| Note:
| 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
| 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
| 3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
| at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
| at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
| at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
| at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
| at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
| at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
| at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
| at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
| Caused by: java.lang.IllegalArgumentException: Invalid ejb jar [jboss-seam.jar]: it contains zero ejb.
| Note:
| 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
| 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
| 3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
| at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:95)
| at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:82)
| at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:729)
| at com.sun.enterprise.deployment.Application.visit(Application.java:1754)
| at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470)
| at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:790)
| at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
| at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
| ... 10 more
|
I found that it has raised before but didnt find any solutions.
It`s pretty urgent because we cant do anything with it right now...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105814#4105814
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105814
18 years, 8 months