aspose file tools*
The moose likes Portals and Portlets and the fly likes Doubt on the xml files that should be present in jboss portal server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Doubt on the xml files that should be present in jboss portal server" Watch "Doubt on the xml files that should be present in jboss portal server" New topic
Author

Doubt on the xml files that should be present in jboss portal server

Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
I am new to jboss portal technology. I downloaded the jboss 4.2 version from jboss.org and i do not know
1) what are the xml files to be placed in the WEB-INF directory?
2) Do we manually need to write the xml files?
Kindly answer my questions.
With regards,
Padma priya N.G.


Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

I'm not a JBoss guy, but I do know JSR168.

The web-inf folder will have the portlet.xml file, and the standard web.xml file.

You can write the files from scratch, but that's painful. Sometimes its nice to start with a blank war.

Here are a bunch of sample portlets you can download and look at. They are all JSR168 compliant. Open them up with WinZip or something and look inside.

Free Sample JSR168 Portlets for Download

Take a look at the portlet development best practices while you're there as well!

Good luck!

-Cameron McKenzie
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
I guess some other xml files like jboss-web.xml and other xml files are required. Kindly help me on this.
With regards,
Padma priya N.G.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

As I said, I don't know JBoss, but I'm not sure if they are required. The JSR168 portlet specification doesn't require them, so, if JBoss is JSR-168 compliant, they are not needed.

WebSphere also has extensions, ibm-web-ext.xml I think, that are in the web-inf folder. IBM adds them in, but if you remove them, things will still run in a compliant manner.

-Cameron McKenzie
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
I do understand that you have not worked on portlets on jboss portal server. Can anybody who have
worked explain how to run a "hello world" portlet on jboss portal server.
With regards,
Padma priya N.G.
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi Cameron,
Since you have worked on jsr168, can you solve the following error.
I get an error called



Object not found helloworld.HelloWorldPortlet


How should i resolve this?
Thanks,
Padma priya N.G.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Make sure the compiled portlet is actually in the war, with the package relavent name. Sounds like the portlet.xml file points to a non-existent piece of Java code.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on the xml files that should be present in jboss portal server