[jboss-user] [JBoss Portal] - Re: how to create sub pages/sub tabs?
Which version of IE? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072124#4072124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Calling JAAS
Free ice cream you say? I'm suddenly motivated. :-P Best I can offer is a free book I ran across that may help hone your knowledge of JAAS: http://www.jaasbook.com/. I'm very new to JAAS as well, but won't have time to research it more extensively for a couple weeks. If you don't come up with a solution within a couple weeks, send me an email and give me an excuse to learn more about JAAS. Seriously. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072021#4072021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072021 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JAAS using LDAP and DB
Sorry, snesbitt, won't be able to help you on this one yet. Looks like I won't have access to the servers or even information needed to replicate the current LDAP setup during the duration of my work. As a consequence I'll be spending more time documenting than learning about the software. Hopefully, once I get back to campus with a more flexible schedule I can work on this some. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071187#4071187 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071187 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JAAS using LDAP and DB
Still in trying, though I think I'm making progress. I'll post pertinent files when I get it working. Perhaps even a wiki page (if it seems that enough folks may benefit from it). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070211#4070211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JAAS using LDAP and DB
In case someone has the same newbie problems in the future and searches through the forum archive: http://www.jaasbook.com/ Chapter 3, in particular has been a good jumpstart. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070152#4070152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JAAS using LDAP and DB
Howdy, I'm trying to configure my portal with both LDAP and DB. Ideally I want the default users and roles (admin and user) to live in the database bundled with portal. I also need to authenticate users with an existing LDAP without trying to write anything to the LDAP. I've been reading through the JBP reference guide, particularly Chapters 15 and 16, but can't seem to wrap my head around how it all fits together. I've found some good threads on this forum, but once again, no amount of reading seems to help me figure out what's going on. So, I have two quick questions. 1) Will it be possible to assign roles in the DB (namely User) to users authenticated with the LDAP, without modifying the LDAP? I think that synchronize module will help with this but I'm confused by the options. 2) Can anybody point me towards some good introductory JAAS docs? I can't seem to find anything that explains it concisely and accurately. I'm thinking that my problems with configuration come from not understanding JAAS well enough. Thanks for any help. --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070098#4070098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Accessing Query Parameter value in the porlet in a page
How are you generating that URL? Every time I've generated an URL from within the portlet, using createActionURL() and createRenderURL(), I end up with an additional parameter you don't seem to have: action=(some_number) Here's an example of what was generated: | http://localhost:8080/portal/auth/portal/default/default/AdminConsolePortletWindow?action=6&mode=view | Maybe it's related? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069242#4069242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069242 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: my own hibernate mapping
k3nnymusic, I know where you stand. Hard to be patient when deadlines are coming. However, Thomas has some good advice about taking things one at a time. Take the agile approach and do some spiking. The lessons are invaluable. If you do need a reference other than official documentation look at some of the simpler portlets on portletswap.org. Some of them are massive, but there are some smaller ones that show elegant (from what I've seen thus far) integration of different technologies. In this particular case (understanding hibernate), the Contacts Portlet helped immensely. Between looking at that code and scanning/reading the hibernate documenation I managed to cleanly do what was needed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069227#4069227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Memory Leak
Thanks for the response. The Class class makes sense, since they are used in hibernate and that's where I'm noticing the problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067526#4067526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Memory Leak
I've noticed a slight memory leak when coding a portlet using hibernate. Every time I redeploy my portlet about 2Mb more memory is being used by the JVM. I was using the ContactPortlet from portletswap as a reference, and found that this also had a memory leak of a smaller size (about .5Mb per deploy). I did try some non-hibernate portlets and didn't notice any leaks. I will also try the same set-up on my linux box when I get home to see if I can eliminate Apple's JVM as a problem causer. Due to the nature of memory leaks, I'm having difficulty pinpointing what is causing the problem and seeing if anyone has heard of such problems or can recommend some ideas for testing (new to J2EE, so perhaps I'm forgetting some critical method call upon destruction). JBoss 2.6 bundled Hibernate 3.2.4.sp1 OS X 10.4.10 --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067382#4067382 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067382 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Package Permission
Was testing JBP 2.6 Bundled (apparently can't get a full DB on the Unix box I'll be working on) and found that the scripts in the bin/ directory didn't have execute permission (thought 2.4 did). Not a big deal, but a heads up if you have a couple seconds to run a quick chmod before your next code commit. --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066185#4066185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066185 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how can i get current PortalNode
I'm a bit confused about what you are asking. I see org.jboss.portlet.JBossRenderRequest in both the API docs and in the source. Same with javax.portlet.RenderRequest. This is with JBP 2.6 source package, and javadocs for both 2.4 and 2.6. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065929#4065929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: API to create JBoss Portal user and assign a default rol
Chapter 14 of the Reference Manual. http://docs.jboss.com/jbportal/v2.6/reference-guide/html/identity.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065833#4065833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page
I suppose the question should be a bit more specific. When you defer to a JSP does the markup it sends back get used as is? Or does some component parse through that markup and strip out any of those forbidden tags? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065782#4065782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page
Possibly related: The portlet spec says something about disallowed HTML tags. I believe head and body were among them. Is this relevant when using JSP? Maybe dispatcher.include("myJSP.jsp") parses those tags out when returning control to the portlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065524#4065524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065524 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page
Hadn't ever thought about this problem. Digging through the portlet spec (as per Thomas' recommendation) found the solution in PLT 22.4. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065363#4065363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Expanded Programmatic Security
Thanks for the information. Any known workarounds or would it be best to modify the descriptors for the time being? --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064959#4064959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064959 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Handling Portal/Portlet Preferences
anonymous wrote : actually, you should seriously consider that even for development I concur. I actually found it much easier to understand the environment when using a full database. There are more tools out there to dig through MySQL than there are for hypersonic. I'm not sure what the performance differences are, but for learning about what's going on behind the scenes, a real database was certainly easier. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064956#4064956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Expanded Programmatic Security
I'm attempting to write a portlet that has some additional internal security features. The overall goal will be to allow selected access to MBeans on a remote server (for the time being the goal is to restart foreign JVMs on a WAS 5.1 AS). At any rate, I was hoping to make the security checks internal to the portlet based on a user's JBP roles. In doing so, I have set up portlet.xml with the following: . . . | | MyPortletUser | User | | | MyPortletAdmin | Admin | | . . . With this setup, I can programmatically check if a user is part of a particular group with isUserInRole() for either of the two listed roles. My curiosity is if the roles that I use inside the portlet are strictly defined by the contents of this descriptor. Would it be possible to test against some other role-name, without editing the descriptor? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064524#4064524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064524 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBP JavaDocs
Thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062956#4062956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBP JavaDocs
I've been getting a 404 error on the link to the JBP 2.6 javadoc download at http://labs.jboss.com/jbossportal/docs/index.html. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062115#4062115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: How to access in code to the Window Properties map in do
anonymous wrote : please don't let him stop you from helping others. HA! I've got much thicker skin than that. Thanks for the support though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061954#4061954 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061954 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: user's group
Two things tripped me up when I was starting on this. First make sure to put the security-role-ref stuff into your portlet.xml. You can find the details about this in the section 20.3 of the portlet spec. Also, make sure to use the actual role names, not the displayed ones. The defaults are Admin and User. If you ever get confused about these again and you have access to the underlying database, spit out the contents of the jbp_roles table. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060414#4060414 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBoss Portal 2.6
Howdy, This isn't really a question or problem, and if it's inappropriate and out of place feel free to delete this post. Just saying thanks to everyone for all the hard work and excellent product. So far 2.6 is working great and the documentation is much better than many other projects I've seen of similar size. Once again, a hearty thanks to you all. --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059928#4059928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059928 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: How to access in code to the Window Properties map in do
Not sure of the specific answers, but the API lists some methods for javax.portlet.RenderRequest that may help. In particular, it has inherited the following methods from javax.portlet.PortalRequest: getAttribute() getParamater() getPreferences() getProperties() I get those 4 types confused on a regular basis, but the JSR168 spec does well to straighten me out. Regardless, I believe that window properties can be accessed using one of those methods. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059661#4059661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Deployed portlet not found in personal dashboard editor
Did you make a *-object.xml and portlet-instances.xml? Those are not automatically generated by the netbeans plugin, since they are JBoss Portal specific. Check the reference manual if you want to see their structure. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058907#4058907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058907 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: HelloWorldPortlet complications
What are the versions of your JDK and JVM? During a compiler course we ran into this error message a lot when trying to run our "hand-crafted" .class files on some JVMs (though not others). Seems that the JVMs check for more than just the major/minor version numbers in the class file. Maybe related? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057822#4057822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portlet customization with respect to user rloes
D'OH! Forgot that there is both a role-name and a display role-name. I was going by the display role-names in the provided Role Management portlet. Sorry for the stupidity and waste of forum space. --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056489#4056489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Can we use Cookie??
Does the functionality of the IPC demo help? It's on portletswap. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056479#4056479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Portlet customization with respect to user rloes
I am having problems with the same thing, actually. web.xml contains: | | | Administrators | | | | Users | | portlet.xml contains: | | Users | Users | | | Administrators | Administrators | | and I'm trying to run the following code: | if(request.isUserInRole("Administrators")) | System.out.println("Administrators"); | else if(request.isUserInRole("Users")) | System.out.println("Users"); | else | System.out.println("user is in an unknown role"); | The final else clause catches everything, no matter which account logs in. I've tried this in many different ways, changing capitalization and whether or not there is an 's' on the end. Nothing has worked so far. Is there something I'm missing in the XML configs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056148#4056148 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056148 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Authentication using system username and password
Are the systems in question stand-alone systems or do they authenticate with a server (perhaps via LDAP)? Unless they are authenticated via a server I don't see how any server-side app could use the local machine's authentication without including a client side application. This is just musing, but it could technically be done via mac address or something, but that has some gaping security holes in and of itself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054728#4054728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054728 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to remove the
I'm new to all this (any sort of WebApp admin/dev), so don't take my words as bona fide fact. >From some digging earlier in the day I found something that I believe to be >related. >$JBOSS_HOME/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/web.xml I believe the url-pattern tags define how the URL appears under certain conditions. There are a couple sections involving the "/sec/*" mapping. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054454#4054454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Unaccessable Instance
Managed to find a work-around, though it leaves some artifacts. I simply deleted the .war file from the war directory and the instances disappeared from all views of the portal. Doing the same recursive grep of the instance name shows that it has not changed it's occurrence in $JBOSS_HOME/server/default/data/portal/hypersonic/database.script I suppose this may be a case of "don't ask for things you don't really want" (revoking view privileges for the admin) --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053990#4053990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053990 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Unaccessable Instance
Howdy, I've been playing around with JBoss Portal for a few days to become familiar with the environment, before I start developing some portlets. I have run into a slight snag that I haven't been able to remedy. Using the admin account I set a HelloWorld portlet instance with the view permission for only the role User. This immediately stopped the administrator from viewing the instance for both the dashboard or administrating. I would like to be able to re-access this instance to either modify permissions or destroy it. Some recursive grepping of the instance name led me to $JBOSS_HOME/server/default/data/portal/hypersonic/database.script. With a quick glance I realized that this may be a dangerous file to hand-edit without a bit more research. In case it's pertinent: jboss-portal-2.6-CR2 (AS & Portal bundled) OS X 10.4.9 Any suggestions? --Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053931#4053931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user