How to Configure GlassFish 3 + ColdFusion 9 and IIS 7

Leave a comment

  1. ColdFusion 9 installed as J2EE components. This can be done by installing ColdFusion as J2EE EAR file or J2EE WAR files, the latter will generate 2 war files, cfusion.war and rds.war. I can't exactly remember the name now but it is the last result from the top which means this IS NOT the Standalone or the Multi Server configuration.
  2. IIS 7 with the Application Routing Plugin and the URL Rewrite plugin. You may need to head to IIS.NET to get the plugins if you do not have them installed already.
  3. A J2EE server. For this I used GlassFish V3 since it is the 1 I feel had the most "turnkey" no frills setup. This should work for others such as JBOSS AS, Apache Geronimo etc.


  • This was done on my personal Windows 7 Home Premium laptop. I do not see this as being very different on Windows Server 2008 but if there is, please let me know.

1. Installing The J2EE Web Applications

Here is where you have to mount the J2EE files created during installation. For the purposes of this test I used them as WAR files so I may deploy them again on Tomcat or Spring Server should I choose to do so later as to the best of my knowledge, those servers DO NOT support the deployment of EAR files.


1 – Go to your admin console. For me it is located at http://localhost:4848

2 – Enter your credentials.

3 – Navigate to the "Applications" node on the panel to the left.

4 – Install the "cfusion.war" file :

5 – This should now bring you to the deploy screen and follow the steps outlined below:

6. Repeat the same steps for the rds.war file.

  • Doing this via an EAR file was not attempted by me but it should be the same as above minus step 6.
Setup IIS

Now here comes the part where you setup IIS. Please ensure you have installed the Application Routing and IIS Rewrite modules for IIS before proceeding.

1. Create a new Server Farm entry as seen below:

2. A prompt will come up to give your server farm a name, name it something thats meaningful to you. For me I used Glass Fish.

3. Setup the farm as seen below:

Okay now you should have all you need to go up and run your ColdFusion 9 server via IIS and Glassfish now as seen below:

There you have it. For me, I found the need to enter "cfusion" in the URL to be an irritation. I solved this by going to the Glassfish Admin Console and doing this:

Doing this should now enable you to get to Coldfusion Administrator without entering the "cfusion" thing in the url so it will look something like this, http://localhost/cfide/administrator.

With regards to custom web applications, this is still not quite like a standard ColdFusion install as you still need to put your ColdFusion files into the cfusion root, in my case all cfusion files must be put here :  D:\glassfishv3\glassfish\domains\domain1\applications\cfusion.

You also need to remember to tell your newly created ColdFusion farm NOT to serve certain things, in my case I asked it NOT to serve the following items as seen below:

This will prevent ASP.NET and PHP pages from being served in GlassFish. I probably need to also work on some URL rewrites to prevent IIS 7 from serving certain types of URLs into GlassFish as the settings above only prevent routing to GlassFish when those extensions are in the URL. I have not quite figured out a good way to do this but when I do, I will blog about it.

You wanna cyberwar? We’ll give ya a cyberwar — and it’s gonna be fun! | ZDNet

Leave a comment

Update: This just gets better and better. According to a post by Anonymous (we think), the original threat may not have come from Anonymous, but instead by the WBC, trying to raise more awareness and get more visibility. No matter how you interpret this thing, remember one fact: people is crazy.

This week, I was going to embark on a formal definition of cyberwar, quoting from some of the greats of military history. But that’s all going by the wayside today to report on the upcoming battle between the Westboro Baptist Church and Anonymous.

This is almost going to be more fun that watching a debate between Sarah Palin and, well, just about anyone else.

I have a warm place in my heart for Anonymous. Now, as a law-and-order guy, I have to point out that they sometimes break the law, and that’s not something to be officially tolerated. But these guys have spirit. They’re willing to make waves. They take on some of the good fights.

Plus, they’re funny. I mean, YouTube Porn Day? Masterful. Wrong — very, very, very wrong — but masterful.

Then there’s the Westboro Baptist Church. I don’t normally take on religious organizations because, no matter how deluded they may seem to me, I generally believe devout people have the right to believe as they wish. But some organizations revel in wrapping themselves in the cloak of religiosity as a form of protection while they spread hate and anguish among their victims.

Westboro Baptist Church is one of those.

Crazy old Fred Phelps and his followers have protested outside funerals (including those of United States Marines), and verbally assaulting grieving families. These creeps actually issued a press release thanking their deity when thousands of people died in an earthquake in China and praised the attacks on 9/11. The list of nutball behaviors goes on and on, including repeated desecrations of the American flag.

No matter how you spin it, Phelps and his followers aren’t exactly the poster children for good Christians (or sanity).

CBS News: Hackers warn Westboro Church: Stop now or else

Somehow or another, the WBC came to the attention of Anonymous, an organization of slightly unhinged geeks who unleash cyberattacks on pretty much anyone who annoys them.

This week, Anonymous issued an ultimatum, which essentially told the WBC folk to stop their heinous behavior or Anonymous will unleash a can of whoop on ya’ll. One particularly juicy line:

We will target your public Websites, and the propaganda & detestable doctrine that you promote will be eradicated; the damage incurred will be irreversible, and neither your institution nor your congregation will ever be able to fully recover.

Now, let’s be clear on something. Anonymous is effective. They have a very powerful DDoS (Distributed Denial of Service) network and they’ve unleashed it with substantial success in the past.

So — and here comes the funny — just how does Westboro Baptist Church respond? Do they run to their lawyers or law enforcement? Do they think about the sorts of activities they’ve done all these years and wonder, really, whether the fight with Anonymous is worth it?

No, no they don’t. Instead, they bait the angry dog. Here’s the response by Phelps’ granddaughter (yes, apparently, he did reproduce, disturbing as that may be):

Twitter address obscured on purpose. Don’t follow her.

Now can you see what I mean by fun?

Look, I can’t condone cyberattacks by anyone, but darn it all if — wink, wink, nudge, nudge — this one might be worth turning the other cheek and looking away for just a little while while Anonymous dishes out some well-deserved justice the old-fashioned, digital way.

You’re welcome to TalkBack below, but be aware that we will squash hate speech with the divine power of the almighty delete button. Then we will mock you.

Cyberwarfare or cyber activism?

Hands-on HP Palm Pre 3 with webOS 2.1 – demo from San Francisco

Leave a comment

Interesting looking device, I hope it does not end up falling short like its predecessors.

What I think Obama is meeting with Jobs, Schmidt, and Zuckerberg about – The Oatmeal

Leave a comment

ROFL !!!

China Cracks Down on Protest Threats, Rounds Up Dissidents

Leave a comment

Beijing – Chinese officials on Sunday cracked down against protests, or rumors of them, sending police to detain dissidents and breakup public gatherings in the capital and Shanghai.

After Internet messages calling for demonstrations in 13 cities surfaced on Saturday, apparently from Chinese language sites based overseas, there were reports of activists being preemptively hauled away.

Very few Chinese responded, and in only a couple of cities, but Beijing’s authoritarian regime still mobilized large teams of police to ensure all remained quiet.

The heavy response by Chinese officials was a reminder of the government’s low tolerance for any hint of political discord. The country’s combination of surveillance, sophisticated management of information, and a willingness to deploy large numbers of security forces has so far allowed it to cut off even the most remote of challenges to the Chinese Communist Party.

After online messages spread on Saturday using the phrase “Jasmine Revolution,” a reference to the unrest in Tunisia that ousted the president there and inspired uprisings across the Arab world, Chinese police beefed up their presence. Users on Chinese messaging sites, and those able to access Twitter through special software, posted notes saying that university students were warned to stay away from trouble.

In the previous two days, state media had signaled that the government is looking to further exert its considerable capacity to maintain order.

On Friday, a key architect of the country’s Internet monitoring software told a state newspaper that the program, already regarded as among the most stringent in the world, should be strengthened.

The next day, President Hu Jintao urged a conference of officials in Beijing to improve “social management.” The state news service Xinhua said that “Hu stressed the importance of information network management, urging an improved management of the ‘virtual society’ and a better guidance of public opinions on Internet.”

The forces against independent journalism are growing. Help Truthout keep up the fight against ignorance and regression! Support us here.

When Sunday came, the protests fizzled into almost nothing. The overwhelming majority of Chinese residents probably had no idea they’d even been called for — the websites used to advertise the protests are either blocked or heavily censored in China.

In Beijing, a crowd of dozens, perhaps hundreds, of people showed up in front of a McDonald’s at the large Wangfujing shopping district downtown. But most of those present appeared to be journalists, plainclothes police or curious shoppers wondering why there were so many cameras.

One woman wearing Dior sunglasses stopped to ask if a celebrity was going to make an appearance.

After a few minutes, uniformed Beijing police began to file in, filming the crowd and asking people to move along. A man in a grey coat and black hat walked up the stairs of the McDonald’s carrying a handful of white flowers – apparently a nod to the Jasmine theme – and was grabbed by a plainclothes security officer and pushed to the side. The incident happened so quickly that many in the crowd didn’t see what had happened. A scrum of media and onlookers, holding cameras aloft, ran after the man and the plainclothes security contingent shoving him down a side street.

The Associated Press reported on Sunday that beyond the crowd in Beijing and a smaller one in Shanghai, other Chinese cities stayed quiet.

Standing in the crowd in Beijing on Sunday, one onlooker said he’d come hoping to see, or perhaps even take part in, a real protest. The young man, who asked that his name not be used, took a look around and said “It didn’t work.”

Sigh……so much for people power.

Unexpectedly, Navy’s Superlaser Blasts Away a Record | Danger Room |

Leave a comment

NEWPORT NEWS, Virginia — Walking into a control station at Jefferson Labs, Quentin Saulter started horsing around with his colleague, Carlos Hernandez. Saulter had spent the morning showing two reporters his baby: the laboratory version of the Navy’s death ray of the future, known as the free-electron laser, or FEL. He asked Hernandez, the head of injector- and electron-gun systems for the project, to power a mock-up electron gun — the pressure-pumping heart of this energy weapon — to 500 kilovolts. No one has ever cranked the gun that high before.

Smiling through his glasses and goatee, Hernandez motioned for Saulter to click and drag a line on his computer terminal up to the 500-kV mark. He had actually been running the electron injector at that kilovoltage for the past eight hours. It’s a goal that eluded him for six years.

Saulter, the program manager for the free-electron laser, was momentarily stunned. Then he realized what just happened. “This is very significant,” he says, still a bit shocked. Now, the Navy “can speed up the transition of FEL-weapons-system technology” from a Virginia lab to the high seas.

Translated from the Nerd: Thanks to Hernandez, the Navy will now have a more powerful death ray aboard a future ship sooner than expected, in order to burn incoming missiles out of the sky or zap through an enemy vessel’s hull.

“Five hundred [kilovolts] has been the project goal for a long time,” says George Neil, the FEL associate director at Jefferson Labs, whose Rav 4 license plate reads LASRMAN. “The injector area is one of the critical areas” of the whole project.

The free-electron laser is one of the Navy’s highest-priority weapons programs, and it’s not hard to see why. “We’re fast approaching the limits of our ability to hit maneuvering pieces of metal in the sky with other maneuvering pieces of metal,” says Rear Adm. Nevin Carr, the Navy’s chief of research. The next level: “fighting at the speed of light and hypersonics” — that is, the free-electron laser and the Navy’s Mach-8 electromagnetic rail gun.

Say goodbye to an adversary’s antiship missiles, and prepare to fire bullets from 200 miles away, far from shoreline defenses. No wonder the Navy asked Congress to double its budget for directed-energy weapons this week to $60 million, most of which will go to the free-electron laser.

It won’t be until the 2020s, Carr estimates, that a free-electron laser will be mounted on a ship. (Same goes for the rail gun.) Right now, the free-electron laser produces a 14-kilowatt beam. It needs to get to 100 kilowatts to be viable to defend a ship, the Navy thinks. But what happened at Jefferson Labs Friday shrinks the time necessary to get to 100 kilowatts and expands the lethality of the laser. Here’s why.

All lasers start off as atoms that get agitated into becoming photons, light that’s focused through some kind of medium, like chemicals or crystals, into a beam operating on a particular wavelength. But the free-electron laser is unique: It doesn’t use a medium, just supercharged electrons run through a racetrack of superconductors and magnets — an accelerator, to be technical — until it produces a beam that can operate on multiple wavelengths.

That means the beam from the free-electron laser won’t lose potency as it runs through all the crud in ocean air, because its operators will be able to adjust its wavelengths to compensate. And if you want to make it more powerful, all you need to do is add electrons.

But to add electrons, you need to inject pressure into your power source, so the electrons shake out and run through the racetrack. That’s done through a gun called an injector. In the basement of a building in Jefferson Labs, a 240-foot racetrack uses a 300-kilovolt injector to pressurize the electrons out of 200 kilowatts of power and send them shooting through the accelerator.

Currently, the free-electron laser project produces the most-powerful beam in the world, able to cut through 20 feet of steel per second. If it gets up to its ultimate goal, of generating a megawatt’s worth of laser power, it’ll be able to burn through 2,000 feet of steel per second. Just add electrons.

And that’s why Hernandez’s achievement is so important. He shrugs, concealing his pride. A powerful accelerator at Cornell University is “stuck at 250″ kilovolts, he grins. And he’s on a roll. Hernandez’s team fired up the injector in December with enough pressure to prove the FEL will ultimately reach megawatt class. Steel: Beware.

“It definitely shortens our time frame for getting to 100 kilowatts,” Saulter says, and it produces a “more powerful light beam.” But he won’t speculate on how much sooner this means the laser can get into the fleet. In any case, the Navy doesn’t yet have the systems to divert the amount of power from its ships’ generators necessary to operate the laser, but anticipates it will by the 2020s.

There are still a lot of obstacles to getting the free-electron laser onto a ship. The 240-foot racetrack that Neil built at Jefferson Labs — a scale model of one that’s underground here, seven-eighths-of-a-mile long — is way too big. Boeing has a contract to build an initial workable prototype by 2012, but by 2015 the racetrack has to be much, much smaller: 50 feet by 20 feet by 10 feet. And as the model shrinks, it’s got to get more efficient in harvesting photons from electrons.

But that starts by getting more electrons out of the power source.The better the injector is at that, the more powerful a beam results, even presuming that the engineers can’t keep finding efficient ways of getting their photons. Walking into a conference room, Saulter is still stunned. He figured he’d just wind Hernandez up by putting the project’s ultimate goal in his colleague’s face. “I had no idea he’d get up to that today.”

Top photo: Carlos Hernandez, head of injector- and electronic-gun systems for the free-electron laser, stands beside his model injector.
Second photo: Magnet’s eye view of the free-electron laser at Jefferson Labs. (Both photos by Spencer Ackerman/

Wow……Star Trek man.

Motorola’s Sanjay Jha on Xoom: ‘Our ability to deliver 4G justifies the $799 price point’ — Engadget

Leave a comment

Motorola’s Xoom will cost a tad more than the competition, but company co-CEO Sanjay Jha has an explanation for why that might be: he told reporters that the Android Honeycomb tablet’s price is wholly justified by the promise of speedy 4G internet. Of course, the $800 Xoom doesn’t actually come with 4G connectivity out of the gate, but Jha told reporters that the Xoom’s LTE upgrade will be free, and that wonder of wonders, the tablet will be capable of pulling down 50 megabit per second speeds. Someone might want to check Sanjay’s math — sure, in the midst of a Verizon fog at CES 2011, we were able to manage 33Mbps, but we typically get less than half that speed on a day-to-day basis.

Wow, USD 799 is a tad steep.


Leave a comment

This thing piqued my interest especially after playing around with NHibernate, GORM, Castle Active Record, Ruby on Rails and Hibernate (via ColfFusion 9).

The one where I had the most fun @ most turnkey implementation would be GORM, Ruby On Rails and Hibernate (thanks to Adobe’s abstraction of the crazy XML stuff).

From what I have seen of LINQ-To-SQL, it is very promising. I will try it out and blog about it assuming nothing crazy derails my plans.

Links of interest :

Love the new Google Toolbar =)

Leave a comment

LG Optimus 3D’s OMAP 4 benchmarked, pulls ahead of Exynos and Tegra 2 — Engadget

Leave a comment

Which dual-core 1GHz ARM Cortex A9 system-on-a-chip rules the roost? It’s probably too early to tell, but if you’re looking for a preliminary verdict, AnandTech has benchmarked all three of them now. Texas Instruments’ OMAP 4430, NVIDIA’s Tegra 2 and Samsung’s Exynos 4210 went head to head in a gauntlet of browser and graphical benchmarks, and it looks like the LG Optimus 3D’s OMAP 4 came out on top, boasting minor but significant improvements practically across the board. Good news for the BlackBerry PlayBook, no? Oh, and if you’re wondering why the iPhone 4 and Atrix 4G fall behind their older brethren in the image above, remember that they both have to render images at a higher screen resolution. More graphs at our source link below.

Wow, LG coming back up on top !!

Older Entries