[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-30 Thread [EMAIL PROTECTED]
anonymous wrote : 1) The forums-pages.xml file: Is obsolete? It used the old 
structure for referencing instances and in the portal-name node its value is 
default

yes it is, I am working on a better deployment format that should address more 
issues and allow deployment of portal / page / window

anonymous wrote : 2) Do I need to build an EAR or it's enought with a WAR File

no

anonymous wrote : 3)Is there any dependencies between War filename, 
jboss-app.xml app-name element value, and so on?

if jboss-app.xml / app-name is not defined then the application id is the 
context name, otherwise it is the app-name value that is taken. the reason of 
that is that we want to be able to provide an application id that is 
independant from the war file name. Because if you rename the war file then the 
application id would change and would break all internal references to that 
application.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904328#3904328

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904328


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-30 Thread david.calvente
Thanks.

Could you please explain me why should I point my browser to: 
http://localhost:8080/portal/local/forums instead of 
http://localhost:8080/portal/forums (doesn't work).

And please, Could you take a look at:

My helloworld portlet

  | package org.jboss.portlet.helloworld;
  | 
  | import javax.portlet.GenericPortlet; 
  | import javax.portlet.RenderRequest;
  | import javax.portlet.RenderResponse;
  | import java.io.PrintWriter;
  | import java.io.IOException;
  | 
  | public class HelloWorld extends GenericPortlet {
  | 
  |public void doView(RenderRequest request, RenderResponse response)
  |{
  |   response.setContentType(text/html);
  |   try {
  |  PrintWriter writer = response.getWriter();
  |  writer.write(Hello World !!!);   
  |  writer.close();
  |   }
  |   catch (IOException e)
  |   {
  |  e.printStackTrace();
  |   }
  |}
  | }
  | 
  | 

My helloworld-portal.xml
 

  | ?xml version=1.0 encoding=UTF-8?
  | portal
  |portal-namehelloworldPortal/portal-name
  |properties
  |   property
  |  nameorg.jboss.portal.property.layout/name
  |  valuephalanx/value
  |   /property
  |   property
  |  nameorg.jboss.portal.property.renderSet/name
  |  valuedivRenderer/value
  |   /property
  |   property
  |  nameorg.jboss.portal.property.strategy/name
  |  valuedefault/value
  |   /property
  |/properties   
  |supported-modes
  |   modeview/mode
  |   modeedit/mode
  |   modehelp/mode
  |/supported-modes
  |supported-window-states
  |   window-statenormal/window-state
  |   window-stateminimized/window-state
  |   window-statemaximized/window-state
  |/supported-window-states
  |pages
  |   default-pagehelloworldPage01/default-page
  |   page
  |  page-namehelloworldPage01/page-name
  |  window
  | window-namehelloworldWindow01/window-name
  | instance-refhelloworldPortletInstance01/instance-ref
  | defaulttrue/default
  | regioncenter/region
  | height0/height
  |  /window
  |   /page
  |/pages
  | /portal
  | 

My jboss-app.xml


  | jboss-app
  | app-namehelloworldPortal/app-name
  | /jboss-app
  | 

My jboss-portlet.xml


  | portlet-app
  |portlet
  |   portlet-namehelloworldPortlet01/portlet-name
  |   security/security
  |/portlet
  | /portlet-app
  | 

My portlet.xml


  | ?xml version=1.0 encoding=UTF-8?
  | portlet-app
  |xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
  |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |
xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd 
/opt/SUNWps/dtd/portlet.xsd
  |version=1.0
  |portlet
  |   portlet-namehelloworldPortlet01/portlet-name
  |   portlet-classorg.jboss.portlet.helloworld.HelloWorld/portlet-class
  |   supported-localeen/supported-locale
  |   !-- resource-bundleResource/resource-bundle --
  |   supports
  |  mime-typetext/html/mime-type
  |  portlet-modeVIEW/portlet-mode
  |   /supports
  |   portlet-info
  |  titleMy HelloWorld Portlet/title
  |   /portlet-info
  |/portlet
  | /portlet-app
  | 

My portlet-instances.xml

  | ?xml version=1.0 standalone=yes?
  | instances
  |instance
  |   instance-namehelloworldPortletInstance01/instance-name
  |   component-refhelloworldPortlet01/component-ref
  |/instance
  | /instances
  | 

I build a WAR file containing them in the WEB-INF dir except the .java, whose 
.class is in classes dir.
 

I've been working a lot on them, figuring out diferent combinations etc..  and 
as I said before, worked perfectly in 2.01 but in 2.2 ALPHA I can't find the 
right URL to access the portal

Please, could you spend a few minutes on this?.

Thanks a lot 

David

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904330#3904330

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904330


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-30 Thread david.calvente
Finally I reached the portal at: 
http://localhost:8080/portal/local/helloworldPortal/helloworldPage01

It seems like the default-page node in *-portal.xml does not work

I also saw that using *-pages.xml does not work neither.

I hope this info could be useful for improving the code

Thanks

David

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904347#3904347

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904347


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-29 Thread david.calvente
I'm at the same point: trying to deploy a custom portal in JBoss Portal 2.2 
Alpha.
My portal is a very simple HelloWorld Portal that works fine in JBoss Portal 
2.01RC1.
When I depoy the same *.war in 2.2Alpha JBoss does not complain but I can't 
reach my portal with any URL I can imagine.. (obviously I tryed the one used in 
2.0.1 RC1 and doesn't work neither)

I've tryed to use diferent instance paths but none worked!

Please, could someone share a very simple Portal that works on JBoss Portal 2.2?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904296#3904296

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904296


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-29 Thread [EMAIL PROTECTED]
looks in the forums war files and copy it.

I am working on a better format for deployment of things such like that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904302#3904302

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904302


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-29 Thread david.calvente
Thanks Julien,
I built the forums portal and deployed it in my JBoss server.
To reach that portal I need to point my browser to:
http://localhost:8080/portal/local/forums
Is this the only one posible?. I tryied http://localhost:8080/portal/forums 
with no luck...

I also checked the internal files against the files in my helloworl portal and 
have a few questions:
1) The forums-pages.xml file: Is obsolete? It used the old structure for 
referencing instances and in the portal-name node its value is default
2) Do I need to build an EAR or it's enought with a WAR File
3)Is there any dependencies between War filename, jboss-app.xml app-name 
element value, and so on?

My HelloWorld Portal still fails to be reached..

And finally, Can I e-mail you my helloworld.war file (just 5 KB) to some 
address?

Thanks a lot

David

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3904308#3904308

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3904308


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-05 Thread [EMAIL PROTECTED]
when you have a deployment descriptor in the same webapp you don't need to use 
the full name, you just use the short name.

so an instance use the portlet name and a window use the instance name, that's 
the deployer which resolves the name when it installs the descriptors.

you use webapp:mywebapp/MyPortlet when you have an instance that is deployed in 
conf/data/default-instances.xml as the instance does not know in which webapp a 
portlet is.

that's the same for window/instance

you can use JMX and go on the mbean portal:service=ContainerRegistry and see if 
the object you are looking for exists or not using the getObject method, in 
that case you need to use the full name.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3899248#3899248

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3899248


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-04 Thread [EMAIL PROTECTED]
The -portal.xml descriptor has changed in one way. Look at the 
default-portal.xml as an example.

Once like this:
instance-refportal.CMSPortlet.CMSPortletInstance/instance-ref

Now like this:
instance-refCMSPortletInstance/instance-ref

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3899154#3899154

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3899154


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Deploy a new portal instance on JBP2.2 alpha

2005-10-04 Thread dunks
So I understand what you're saying and I changed my instance-ref's for my 
portlet in my portlet-instances.xml file but I still can't get to my portal 
instance. I'm trying every url i can think of /portal/myPortal, 
/portal/local/myPortal, etc. I think this has something to do with what Julien 
posted here
http://www.jboss.com/index.html?module=bbop=viewtopict=70350. I reread that 
post over and over but I'm still missing something. When deploying a new portal 
instance do i need a *-instances.xml file with all my portlet instances mapped 
like the ones in the default-instances.xml in addition to the 
portlet-instances.xml file? Should those mappings look like this?

  | instance
  |   instance-nameMyPortletInstance/instance-name
  |   component-refwebapp:myNewPortal/MyPortlet/component-ref
  |/instance
  | 

I'm a little confused on how this new model Julien posted about works.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3899170#3899170

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3899170


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user