Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic