Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

AppFuse on DB2 and WebSphere

I did some trial-and-error this morning, and with the help of a lot of handy-dandy unit tests, I got [Appuse working on DB2|AppFuseOnDB2]. I learned that I need to figure out how to create a database with page size = 8 by default - anyone got a SQL script to create DB2 databases (with reasonably sized table spaces) lying around?

Next up: Getting AppFuse running on WebSphere 5.1, this should be fun. Especially considering that they only seem to support .ear files, not .war files. I've only glanced at the thing for 5 minutes - any advice/links would be awesome.

Posted in Java at Jan 12 2004, 10:23:11 AM MST 9 Comments
Comments:

Matt, Have a look here: http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp If I'm not mistaken you can deploy war or ear files under Websphere.

Posted by Thomas De Vos on January 12, 2004 at 06:04 PM MST #

Dear matt I m the newbier to struts and wanna use appfuse1.2(or later version) as my base project, and i am using resin as servlet container(resin is production app server for me) and it can not start up.(i have refered the article How to runing appfuse on resin). So i mean i still get something,and the question i want to ask is *WHY* appfuse can not port to resin smoothly, just add servelt context in the resin.conf and copy appfuse.war to webapps directory.you stated some reasons in your wiki but still caused me confused,in my opinion, jsp and servlet webapp is really portable,am i right?Thank you!

Posted by Unknown on January 12, 2004 at 07:16 PM MST #

<em>Why can't appfuse port to Resin smoothly?</em>

The only reason the CVS version of AppFuse won't port to Resin smoothly is because Resin doesn't seem to like that fact that I use an encrypted password. Sure I could ship AppFuse with password encryption turned off by default - but it seems like a bug in Resin, not in AppFuse. Since I almost exclusively use Tomcat, making AppFuse run on Resin out-of-the box is not a priority for me. I will, however, try to get off my lazy duff and talk to the Resin team to figure out why this is happening.

Posted by Matt Raible on January 12, 2004 at 09:15 PM MST #

We're deploying .war files to WS5.1 on a daily basis. In the admin Console under Server -> Applications -> Install New Application, just select your .war file and type in the context root. There are some gotchas though. 1) Include xercesImpl.jar as websphere doesn't seem to let your app use their classes. 2) Make sure your app's classloader isn't the same as the Admin Console's. The console is a struts 1.0 app, your struts 1.1 based web apps will just die inexplicably as v1.0 classes and v1.1 classes try to work together.

Posted by Koz on January 12, 2004 at 09:46 PM MST #

<em>> The console is a struts 1.0 app, your struts 1.1 based web apps will just die inexplicably as v1.0 classes and v1.1 classes try to work together.</em>

Koz - are you implying that I can't deploy a Struts 1.1 app to WebSphere 5.1? Also, I'm used to relying on the container's classpath for JavaMail (activation.jar and mail.jar) and my JDBC Driver (MySQL). Which directory do I place these in on WebSphere, or do I package them in my app? What about configuring form-based authentication? Setting up a JNDI resource for the database looked fairly easy, but I couldn't find anything about form-based authentication setup. Again, just to warn you - I've only spent 10 minutes playing around with the Admin console.

Posted by Matt Raible on January 12, 2004 at 10:10 PM MST #

A Websphere installation has multiple 'servers'. i.e Dev Region, Test Region, QA Region etc. When deploying a struts 1.1 app you need to make sure that the admin console you're using isn't on the same 'server' that your app will be deployed to, otherwise you get all sorts of weird errors. We have a seperate 'admin' server just for the console. I gave up figuring out what did and didn't need to be included and now I just bundle everything in my WEB-INF/lib. Though MySQL drivers should be OK as you'll be using JNDI Data Sources. Form based authentication, I don't know. FBA may or may not even be supported. I've only used the Admin Console, I don't know about directories on the server, but it seems that you need to use JACL scripts to deploy files on the file system.

Posted by Koz on January 12, 2004 at 10:20 PM MST #

Hey Matt, I admire your work, and your insight on new technologies, although this is a little bit off topic. I see you use Hibernate for all your applications (including appFuse, and roller), and was wondering what you think about JDO, and some of their implementations. I took a look at one called XJDO by spadesoft, and it seems interesting. Thanks.

Posted by redmapper on January 12, 2004 at 10:56 PM MST #

redmapper - I think JDO <em>sounds cool</em>, but it doesn't give me anything that Hibernate doesn't provide. Also, Hibernate's support and user community seems to be <em>much</em> larger than any JDO community. <em>Why would I shop at K-Mart when I can get everything at Wal-Mart - where the customer service and prices are better.</em> ;-)

Posted by Matt Raible on January 12, 2004 at 11:07 PM MST #

Thanks for the prompt reply. You do have a good point. And I guess at the end of the day having a large community on an open source project is all you could want.

Posted by redmapper on January 12, 2004 at 11:27 PM MST #

Post a Comment:
  • HTML Syntax: Allowed