Developers, Developers, Developers! Maksim Sorokin IT Blog

28Aug/100

[PACKT] Java EE 6 with GlassFish 3 Application Server

Java EE 6 with GlassFish 3 Application Server is another nice book from PACKT publishing.

It covers GlassFish administration. Then it talks about Java web technologies -- servlets, JSP, JSP STL, JSF. Also discusses database connections, Java Messaging Service, security of applications (you can find more about it in GlassFish Security book). The books also talks about EJBs and new possibilities in Java EE 6 -- contexts and dependency injection. In the last part it discusses JAX-WS and JAX-RS web services. And everything is accompanied with information how to do that with GlassFish application server.

I would very much recommend it to novice Java EE developers or just to developers, who want to have a glance on Java EE web technologies, JMS, Java EE 6 dependency injection, web services and how all that is configured in GlassFish application server. I would say, it is a crash course into Java EE.

The book is not covering each section is deep detail. But gives a broad view on different Java EE possibilities.

The book is full of working examples! What I very much like about it, is that it not only talks about the latest Java EE 6 technologies. But also briefly covers how application can be configured in order to work with older standards.

12Aug/100

[PACKT] Java EE 6 with GlassFish 3 Application Server

Just received my new PACKT book Java EE 6 with GlassFish 3 Application Server.

From the table of contents I conclude that this book gives quite broad view on Java EE technologies and how to use them with GlassFish v3 application server. Although it is not covering some particular technology very detailed.

First chapter is about GlassFish -- how to setup it and configure. The following ones are about Java web technologies: servlets, JavaServer Pages, JSP Standard Tag Library, JavaServer Faces. Next, books talks about Java Messaging Service and security. Last chapter are the most interesting, in my opinion: Enterprise JavaBeans, Contexts and Dependency Injection and Web Services.

Anxious to read it!

25Jul/100

GlassFish Security [PACKT]

GlassFish Security by PACKT is lying on my table. What I can say about it? Pretty nice book about security. I still wonder, why it has name "GlassFish" in the title. It covers a lot of interesting topics about Java EE security and talks about other software, which can help to secure Java applications, such as OpenDS or OpenSSO.

So if you are just about to design or develop complex Java EE application, I would recommend to take a look into this book to at least grasp the ideas about security management. Beside this, book also covers topics of easy security policies migration, which also may be somewhat interesting in our changing world.

And again, thanks PACKT for publishing yet another wonderful book!

3Jul/100

Enable Directory Listings in GlassFish

There is a default-web.xml file in GlassFish which configure some stuff behind the scenes. This file can be found in domains->domain->config folder.

By default, in GlassFish v3 directory listing is disabled. But one can easily enable it by modifying default-web.xml file:

<init-param>
  <param-name>debug</param-name>
  <param-value>0</param-value>
</init-param>

Or if there is no possibility to modify the default-web.xml directly,

1Jul/100

GlassFish 3.0.1 Released!

Actually, while I was messing around with other stuff, I didn't notice, that new GlassFish v3.0.1 was released! Finally, there is a possibility to migrate from nightly builds and use more stable version.

29Jun/100

Changing GlassFish Port Number with asadmin

It's easy to change GlassFish port number through Administration Console. But how to do it through command line? Yes, we have asadmin utility. But there is no obvious way to "reconfigure" existing network listener..

But here is a possible

25May/100

Masoud Kalali and Java EE Security

Guess who wrote recent DZone Refcardz #99. It was the same guy, who wrote GlassFish Security> book. His name is Masoud Kalali and he has own blog about Java.

Tagged as: , No Comments
21May/100

java.lang.NoClassDefFoundError: Files

If you encounter the following kind of Exception, you probably

20May/100

A New Book About GlassFish Security

GlassFish Security Cover

I was granted a book from Packt about GlassFish Security. And that is something we want to improve in our products!

The book is about security in Java EE with EJB, Application Client modules and all the friends. Security in GlassFish is a central point of this book. And what is more, there are plenty of real world code and configuration samples. More information about the book can be found on dedicated page on Packt website.

16Apr/100

Exception Launching Application in GlassFish v3

You have probably seen this nasty exception if you tried launching applications in GlassFish v3:

java.lang.NullPointerException
	at org.glassfish.appclient.client.acc.ACCLogger$1.run(ACCLogger.java:149)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.glassfish.appclient.client.acc.ACCLogger.reviseLogger(ACCLogger.java:146)
	at org.glassfish.appclient.client.acc.ACCLogger.init(ACCLogger.java:93)
	at org.glassfish.appclient.client.acc.ACCLogger.(ACCLogger.java:80)
	at org.glassfish.appclient.client.AppClientFacade.createBuilder(AppClientFacade.java:360)
	at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:247)
	at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

You are not alone!