[JBoss-user] [JBoss Seam] - Re: help with Maven 2 and SeamTest (part 2)
jtucker - your suggestion on where to place the config files for testing got things working - thanks very much! as to putting things in the src/main/resources - I do not plan to use the test configuration for deployment - that's why I use the test-classes location. Now, I am having one new problem | @Test | public void test_SessionStarter_create_delete_User() throws Exception { | | new Script() { | | @Override | protected void updateModelValues() { | | log.info("updateModelValues()"); | | User user = (User)Component.getInstance("user", true); | log.info("user -> "+user); | assert user != null; | | } | |... |}.run(); | } | The above assertion is failing - it shouldn't because in the user class, I have defined: | @Name("user") | @Scope(ScopeType.SESSION) | public class User extends BaseEntity implements Serializable { | | | } | Now it looks like Seam itself is not getting initialized/loaded but the microcontainer Any suggestions for this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954039#3954039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954039 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: help with Maven 2 and SeamTest (part 2)
It looks like the final problem I am having is due to the fact that the my test cases are running from the test-classes directory (maven 2 convention for test classes). What's happening is that the Seam scanner is scanning test-classes only: | 10:24:20,120 INFO org.jboss.seam.deployment.Scanner.(info:94) - scanning: c:\work\research\seam\userlinks\userlinks\tar | get\test-classes | 10:24:20,120 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes | 10:24:20,120 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes\com | 10:24:20,136 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes\com\evergreen | 10:24:20,136 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes\com\evergreen\userlinks | 10:24:20,136 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes\com\evergreen\userlinks\biz | 10:24:20,136 DEBUG org.jboss.seam.deployment.Scanner.(debug:84) - directory: c:\work\research\seam\userlinks\userlinks\t | arget\test-classes\WEB-INF | However, all my Seam components (@Name(..)'ed classes) are located over in a parallel directory, classes. Is there a way to tell Seam to scan two locations? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954056#3954056 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954056 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - SeamTest feature request?
Can you add some properties to Script, Principal, and (maybe) Group [] that are used by the MockHttpServletRequest to simulate an authenticated user and the roles the user has? Ideally, these would also be available in the MockHttpServletRequest for calls to getRemoteUser(), getUserPrincipal(), and isUserInRole(String role). Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954084#3954084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954084 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: help with Maven 2 and SeamTest (part 2)
That last suggestion worked too! Thanks again View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954106#3954106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954106 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Refreshing/reloading a portlet
anonymous wrote : yes it is possible that your portlet uses ajax to do that How do you get a portlet to refresh itself via AJAX if there is no documented or known way in JBoss Portal of making a request to the portal that asks for a single portlet to render itself? (in 2.0.X only please...) Thanks, Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907238#3907238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907238 --- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Refreshing/reloading a portlet
anonymous wrote : Your portlet would have to be packaged along with a servlet that handles the AJAX requests. Presumably your rendered JSPs would have to have some sort of refresh mechanism that users can click on to trigger an AJAX request. Doesn't the portal render out a whole page at a time? How would I construct a servlet to give me just a single portlet's response (including decorators)? I wouldn't want to to strip out the extra content in a servlet because I can do that with javascript just as well, and thus I could theoretically achieve some kind of AJAX-style behavior without writing a servlet. So how would you implement such a servlet? BTW - with regards to the separate inter-portlet-communication thread that is arising here - keep in mind that you aren't necessarily going to end up with JSR168 portlets if you use an API designed specifically to allow you to communicate with portlets in JBoss - what you will end up with is JBoss Portlets that happen to use the JSR168 API's too. If you would like to be able to deploy any portlets you develop to under JSR 168 portal platforms (say Jetspeed 2, BEA Portal, etc...), then using the PortletSession and possibly the PortletContext are your 'portable' solutions to inter-portlet-communication. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907259#3907259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907259 --- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Login Policies
You may want to 'stack' a LoginModule in front of JBoss Portal's login module (see its login-config.xml). In your LoginModule implementation, you can implement the business rules, etc. for your requirements. It sounds like from your reqs. that you will need your own table for storing at least the last 5 passwords as well, possibly keyed to a JBoss Portal user. As for LoginModules and stacking, you need to understand JAAS Security, and how to configure LoginModules for JBoss Application Server, and then you need to study the Portal's schema a bit to see how you want to 'integrate' with it. It's relatively easy to find articles about JAAS on the web, you can get the JBoss AS guide to learn about writing LoginModules for JBoss, and you can download the docs and source for the portal as well. Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907929#3907929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907929 --- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: How to install ms-sql jdbc sp3
Just in case you actually mean: "I am trying to use ms-sql as a database...how do I add my JDBC driver to JBoss?" I would recommend using the jTDS driver available here. Whether you use MS's JDBC driver or you use jTDS, the installation of the driver into JBoss AS is the same. 1.) Put your driver .jar file(s) in: C:\jboss-4.0.2\server\default\lib (${JBOSS_HOME}\server\default\lib) 2.) Edit portal-ds.xml located at ${JBOSS_HOME}\server\default\deploy change the contents of this file to something like this: | | | PortalDS | jdbc:jtds:sqlserver://myserveraddress:1433/mydatabase | net.sourceforge.jtds.jdbc.Driver | mydbuser | mydbpassword | | if you use MS SQL Server's JDBC driver...read the manual to determine the correct values to use in portal-ds.xml. Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908444#3908444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908444 --- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Are eclipse plugins available to develop JBOSS portal an
Hello - Keep in mind that BEA Weblogic Portal (with Workshop IDE) is quite expensive . JBoss Portal is young (relatively new) and is free. Having used BEA's WL Portal and workshop to develop portals, I would say that for me, I don't think an IDE provides too much value in this area - and thus, having an IDE with a few features targeted at portlets would not make or break a decision to use JBoss Portal. Rather, if you want a low-cost Portal Server that provides a decent baseline set of portal functionality based on JSR168, then JBoss Portal is a good choice. Jetspeed 2 has potential but it's still too complicated. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908446#3908446 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908446 --- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: processAction in Jboss portals
Hello, Your portlets should be designed thread safe - like servlets. So your usage of an instance variable, resultsFlag, will only work as long as your portlet handles a single request from a single user. The moment two different users use invoke the processAction(), you will have contention issues for the correct value of resultsFlag. Also, notice in your code that you never reset resultsFlag to false, so once it gets set to true, it's always true! Cheers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909399#3909399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909399 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: struts in portlets
Try this framework I submitted to PortletSwap. It gives you formbeans populated with request parameters. It's reasonably well documented. It has a decent demo portlet that responds to several types of clicks and saves your changes in the portals database (using PortletPreferences). Everything you need to make a decent set of portlets that will work in any compliant JSR168 portal environment. The framework is here http://labs.jboss.com/file-access/default/members/portletswap/downloads/portlets/framework/BaseMVCPortlet-Framework-1.0-10.27.2005.zip All you need to try it out is: 1. download it 2. Unpack it 3. Copy the 2 wars in C:\BaseMVCPortlet-Framework-1.0-10.27.2005\mvc-portlet-fwk\dist to your C:\jboss-4.0.3RC2\server\default\deploy directory These wars are: sample-portal.war simple-theme.war 4. Point your browser at your server: http://localhost:8080/portal/portlets/ Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909867#3909867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909867 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: SessionInvalidatorInterceptor.signOut();
This is to logout someone from the portal? What happened to session.invalidate()? seems like session.invalidate() (for container-managed authentication) is the simplest way to go. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909869#3909869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909869 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Get users logged in
portletRequest.getRemoteUser() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910305#3910305 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910305 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Security and Portlet Modes
Is it possible to specify that the user must have the 'admin' role in order for the EDIT mode link to display and/or work? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893468#3893468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893468 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Can't run a portlet in 2.2.0-ALPHA that worked in JP 2.0
Hopefully you will provide migration tools and/or strategies for those of us who are actively using JBoss Portal 2.0 for real web applications. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894285#3894285 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894285 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Can't run a portlet in 2.2.0-ALPHA that worked in JP 2.0
My first reply on this thread was because I am concerned about changes in how the values of these XML elements are being interpreted by the portal (if I understand what you mean in the following statements): anonymous wrote : | the deployment descriptors portlet-instances.xml and xxx-portal.xml have changed, mostly the instance-ref and component-ref have changed because now it supposes that the components that could be referenced are in the same war file. | Sounds to me like you are changing either these elements or the meaning of the values of these elements. If you are suggesting in this statement: anonymous wrote : | I think the first wise step to do is to look at the document doctype in order to deploy only the documents which have the good doctype. | that you would ignore ***-portal.xml and portlet-instances.xml that are based on the Portal 2.0 release, I don't think that's necessarily the best forward path - that basically means that portals built for 2.0 won't work in 2.2 out of the box. I think it's a better design approach to accomodate your current Portal 2.0 adopters by supporting current portal 2.0 descriptor usage; but you can add in additional XML elements and/or attributes that work specifically in 2.2. You could subsequently announce that the XML descriptors are changing and that in a future release (3.X?) only the 2.2-specific XML will be supported. I don't have an idea for a tool to migrate existing applications forward if the XML changes...that's why I hope (:D) you will provide either a tool or a strategy for migration if you choose to break 2.0 style descriptors. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894703#3894703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894703 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re:
Is there something else in your JSP that could be causing that exception? I pasted your code into one of my portlet-JSP's and it worked fine. In my JSP: <%= renderResponse.createActionURL().toString() %> produced: /portal/index.html?ctrl:id=window.login.ResourcesLP&ctrl:type=action View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894705#3894705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894705 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: how to set Preferences
You can use the PortletPreferences.store() method directly. Behind the scenes, JBoss Portal will save your user preferences (values) in table jbp_user_pref_prop_value (if you want to check with your DB GUI tool). In your portlet you should: 1. obtain a reference to PortletPreferences: PortletPreferences portletPrefs = portletRequest.getPreferences(); | 2. update the desired values of the preferences: portletPrefs.setValue(...) or portletPrefs.setValues(...) 3. Invoke portletPrefs.store(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894707#3894707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894707 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Can't run a portlet in 2.2.0-ALPHA that worked in JP 2.0
anonymous wrote : | if 2.0 -> translate values and possibly issue warnings that they should migrate | and print the right descriptor in the console This sounds good! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894734#3894734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894734 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: How to authenticate within portlet?
I have solved this problem using JBoss Portal - my solution is sketched out here. The basis of the solution is you will need to do 3 things. 1. Develop your main portal page including login portlet. Create appropriate security constraints in web.xml (require FORM based authentication, etc.) - our 'main' portal page (and portlets) will be packaged in .war file and we access it under the context: http://myserver:myport/portal/myportal/index.html a.) in your web.xml (I modified JBoss's jboss-portal.sar/portal-server.war/WEB-INF/web.xml as I wanted to replace the entire look-and-feel of the portal and apply my security constraints - you can make similar modifications to your own portal web.xml. ), add security constraints for your page: | | http://java.sun.com/dtd/web-app_2_3.dtd";> | | | | | | | Authenticated | | /myportal/* | | | Authenticated | | | | ... | | | FORM | Odyssey SMF Portal | | /login.jsp | /login.jsp | | | | | Authenticated | | | | | b. Sample view.jsp for your login portlet (which use in both your main portal and your login portal) SEE NEXT POST - OUT OF SPACE HERE 2. Develop a second portal, let's call it /login/*, packaged in its own war - this second portal needs a copy of the page you designed in step 1. and it needs to be created as the default page (in login-portal.xml) for /login/*. We will access (indirectly - described below) using this URL: http://myserver:myport/portal/login/ 3. Modify your JBoss Portal installation: a.) In */jboss-portal.sar/portal-server.war/login.jsp change it to redirect to your login portal (here is my login.jsp) <% response.sendRedirect("/portal/login/"); %> b.) Create */jboss-portal.sar/portal-server.war/logout.jsp and put this code in it: <% session.invalidate(); |response.sendRedirect("/portal/myportal/"); | %> | NOTE: View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897941#3897941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897941 --- 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: How to authenticate within portlet?
LoginPortlet's view.jsp | | | | | | Login | | | | Username: | | | | | | | | Password: | | | | | | | | | | | | | | | | | | Logged in as: [DOLLAR SIGN HERE]{renderRequest.remoteUser} | Logout | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897944#3897944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897944 --- 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: How to authenticate within portlet?
Another point, here are the contents of my login.war: bash-2.05b$ jar tvf login.war | | 0 Thu Jul 21 11:48:44 EDT 2005 META-INF/ |398 Thu Jul 21 11:48:42 EDT 2005 META-INF/MANIFEST.MF | 0 Thu Jul 21 11:48:40 EDT 2005 WEB-INF/ | 57 Thu Jul 21 11:38:32 EDT 2005 WEB-INF/jboss-app.xml |440 Thu Jul 21 11:38:12 EDT 2005 WEB-INF/jboss-web.xml | 3771 Thu Jul 21 11:37:44 EDT 2005 WEB-INF/login-portal.xml |586 Thu Jul 21 11:48:40 EDT 2005 WEB-INF/web.xml | Note there is no code(or pages) it simply references the portlets deployed in my main portal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897945#3897945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897945 --- 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] - How to completely disable CMSPortlet???
Using JBoss 2.0.1RC2 - I keep getting this message. I don't plan on using or needing the CMSPortlet. How to completely remove it from JBoss Portal? | --- MBeans waiting for other MBeans --- | ObjectName: portal:service=CMS | State: CONFIGURED | I Depend On: | jboss.cache:service=InvalidationManager | jboss.jca:name=NoTxPortalDS,service=DataSourceBinding | Depends On Me: | portal:service=Tree | | ObjectName: portal:service=Tree | State: CONFIGURED | I Depend On: | portal:service=CMS | Depends On Me: | portal:service=Module,type=Security | | ObjectName: portal:service=Module,type=Security | State: CONFIGURED | I Depend On: | portal:service=Hibernate | portal:service=Tree | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.jca:name=NoTxPortalDS,service=DataSourceBinding | State: NOTYETINSTALLED | Depends On Me: | portal:service=CMS | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3897960#3897960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3897960 --- 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: How to completely disable CMSPortlet???
If I edit this file: jboss-portal.sar\portal-cms.sar\META-INF\jboss-service.xml and change NoTxPortalDS to just PortalDS, then the above error message ceases to show up and the portal 'works' It still would be nice to get rid of the CMSPortlet and have it be an optional portlet that can be 'dropped in' the portal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3898054#3898054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3898054 --- 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] - CMSPortlet issues - JBoss AS 4.0.3RC2 and Portal 2.0.1RC2
Another issue I am having with the RC2 release is this: | 08:58:29,095 INFO [STDOUT] org.jdom.JDOMException: Error on line 1: Element type "D:hrefxmlns" must be followed by either attribute specifications, ">" or "/>". | 08:58:29,095 INFO [STDOUT] at org.apache.slide.util.XMLValue.add(XMLValue.java:337) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.util.XMLValue.(XMLValue.java:147) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.util.XMLValue.(XMLValue.java:129) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.SecurityImpl.matchPrincipal(SecurityImpl.java:1186) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.SecurityImpl.matchPrincipal(SecurityImpl.java:1156) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.ACLSecurityImpl.matchSubject(ACLSecurityImpl.java:346) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.ACLSecurityImpl.match(ACLSecurityImpl.java:321) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.ACLSecurityImpl.evaluateAcl(ACLSecurityImpl.java:311) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.ACLSecurityImpl.hasPermission(ACLSecurityImpl.java:134) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.SecurityImpl.checkPermission(SecurityImpl.java:472) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:405) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:179) | 08:58:29,095 INFO [STDOUT] at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:160) | 08:58:29,095 INFO [STDOUT] at org.jboss.portal.cms.Node.getState(Node.java:90) | 08:58:29,095 INFO [STDOUT] at org.jboss.portal.cms.Node.refresh(Node.java:78) | 08:58:29,095 INFO [STDOUT] at org.jboss.portal.cms.Node.(Node.java:72) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.cms.NodeFactory.getNode(NodeFactory.java:67) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.core.portlet.cms.CMSPortlet.processAction(CMSPortlet.java:85) | 08:58:29,111 INFO [STDOUT] at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:342) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invokeAction(DispatcherInterceptor.java:110) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.portlet.invocation.DispatcherInterceptor.invoke(DispatcherInterceptor.java:191) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.portlet.invocation.PreferencesInterceptor.invoke(PreferencesInterceptor.java:93) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:94) | 08:58:29,111 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 08:58:29,111 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 08:58:29,111 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 08:58:29,111 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:49) | 08:58:29,111 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | 08:58:29,111 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | 08:58:29,111 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | 08:58:29,111 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 08:58:29,111 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | 08:58:29,111 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539) | 08:58:29,111 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.invocation.component.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:58) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213) | 08:58:29,111 INFO [STDOUT] at org.jboss.portal.core.invocation.AccessControlInterceptor.invoke(AccessControlInterceptor.java:125) | 08:58:29,111 INFO [STDOUT] at or
[JBoss-user] [JBoss Portal] - PortletRequest - attributes
Hello, If I set a request attribute in processAction() on ActionRequest which extends PortletRequest, I find that it is not available during render() on the RenderRequest which also extends PortletRequest. I have reviewed the JSR spec and quoted relevant sections below. From my review, it seems to me like there is some ambiguity. In PLT.11.1.3, request attributes are intented "...to express information that otherwise could not be expressed via the API." From PLT.11.4, it seems like there isn't necessarily a guarantee that the objects placed in request scope during processAction() are available in render(). If the attributes are not going to be preserved going from processAction() to render() for a single portlet, then what is the point of setting request attributes during processAction()? Since you don't get a RenderRequest-view of the same PortletRequest later on in render(), who are you communicating with (from a portlet perspective)? If the portlet API supports the concept of setting request attributes, I think it would be nice to be able to retrieve these same request attributes during the render() phase of a portal request. Ideally, the ActionRequest and the RenderRequest can be two different 'views' of a single PortletRequest during a request process. I realize that I can use PortletSession to 'communicate' between processAction() and render() phases, but then I must also remember to remove my attributes from PortletSession if these attributes are really only valid for a single request. Thoughts? Thanks, Brad Smith >From JSR 168 Specification anonymous wrote : | PLT.11.1.3 Request Attributes | | Request attributes are objects associated with a portlet during a single portlet request. Request attributes may be set by the portlet or the portlet container to express information that otherwise could not be expressed via the API. Request attributes can be used to share information with a servlet or JSP being included via the PortletRequestDispatcher. Attributes are set, obtained and removed using the following methods of the | | PortletRequest interface: | ? getAttribute | ? getAttributeNames | ? setAttribute | ? removeAttribute | | Only one attribute value may be associated with an attribute name. | Attribute names beginning with the ?javax.portlet.? prefix are reserved for definition by this specification. It is suggested that all attributes placed into the attribute set be named in accordance with the reverse domain name convention suggested by the Java Programming Language Specification 1 for package naming. | | | | PLT.11.2 ActionRequest Interface | | The ActionRequest interface extends the PortletRequest interface and it is used in the processAction method of the Portlet interface. In addition to the functionality provided by the PortletRequest interface, the ActionRequest interface gives access to the input stream of the request. | | PLT.11.3 RenderRequest Interface | | The RenderRequest interface extends the PortletRequest interface and is used in the render method of the Portlet interface. Currently, the RenderRequest interface does not define any additional method. | | PLT.11.4 Lifetime of the Request Objects | | Each request object is valid only within the scope of a particular processAction or render method call. Containers commonly recycle request objects in order to avoid the performance overhead of request object creation. The developer must be aware that maintaining references to request objects outside the scope described above may lead to | non-deterministic behavior | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900439#3900439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900439 --- 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: PortletRequestDispatcher didn't work
1.) Make sure your portlet extends javax.portlet.GenericPortlet 2.) Try setting the response content type before dispatching 3.) you might want to get rid of the encodeURL call I simply use | response.setContentType("text/html"); | PortletRequestDispatcher dispatcher = this.getPortletContext().getRequestDispatcher("/jsp/helpPage.jsp"); | dispatcher.include(request, response); | with no problems Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900507#3900507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900507 --- 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: how to switch Portal database?
In your portal-ds.xml (you can just edit the original - no need to rename file, create new file, etc...) You should change the XML to something like this: | | PortalDS | jdbc:jtds:sqlserver://YOUR_DB_SERVER_HOST:1433/YOUR_DATABASE;SelectMethod=Cursor | net.sourceforge.jtds.jdbc.Driver | your-portal-DB-user | your-portal-DB-password | | NOTE - I used the jTDS(open source) JDBC Driver for MS SQL Server/Sybase. You MUST use PortalDS as the jndi-name of your data source. You may need to tweak the hibernate config file for the portal at: ${JBOSS_HOME}\server\default\deploy\jboss-portal.sar\conf\hibernate\hibernate.cfg.xml and manually set the SQL dialect to org.hibernate.dialect.SQLServerDialect Chances are that the portal will automatically sense the dialect for you though. Some suggestions - avoid using the JDBC:ODBC Driver, instead use a pure Java (Type IV) JDBC Driver - you can use any file name you want as long as it ends in -ds.xml, however, there's not too much advantage in doing so because you must use a datasource named PortalDS for the portal to work. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900712#3900712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900712 --- 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: Where can I get materials about jBossPortal single sign
Authentication and single sign-on are handled by JBoss AS (and Tomcat). You should review the JBoss App. Server Guide - the chapter on security (Chapter 8). JBoss provides login modules for LDAP, databases, flat files, etc... you can use one of those or roll your own using JAAS. The single sign-on setting is made by modification of the Tomcat-SAR's server.xml file. The portal, for the most part, is an application running within JBoss and Tomcat and inherits the authentication/SSO attributes of the the server via the HttpServletRequest methods: | getRemoteUser() | getUserPrincipal() | isUserInRole(String role) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900873#3900873 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900873 --- 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: portlet layout in portal - WHAT FILES TO EDIT
1.) \WEB-INF\portlet.xml - this is where you use the JSR 168 spec. to declare and configure your portlets to the portal. - this file is 'cross-platform' - the spec, .xsd, etc. are here Example: | | MyPortlet | com.mydomain.portlets.MyPortlet | | my init-param description... | myInitParamName | myInitParamValue | | | text/html | VIEW | EDIT | HELP | | com.mydomain.portlets.MyPortlet | | My Portlet | my portlet | | | | somePreference | somePreferenceValue | | | | (the rest of these files are documented in the JBossPortalReferenceGuide (online or PDF - comes with portal download). 2.) \WEB-INF\jboss-portlet.xml (JBoss Portal-specific file) - this file is kind of redundant to portlet.xml, but it's required for now by JBoss Portal (The portal should be able to deduce this info from portlet.xml (Don't Repeat Yourself). - basically, your portlet-name(s) musy match the portlet-name(s) you declared in portlet.xml. - for security, you will need to read the manual - the snippet below should get you started. | | | MyPortlet | | | | 3.) \WEB-INF\portlet-instances.xml (JBoss Portal-specific file) - this file is required by JBoss Portal - basically you are creating an alias name for your portlets. - ideally, the portal could automate this for you, however, JBoss Portal is free and early in its lifecycle, so we help out and 'name' our portlets for the portal using this file. | | | MyPortletInstance | MyPortlet | | | 4.) \WEB-INF\my-portal.xml (JBoss Portal-specific file) - *-portal.xml (any .xml file that ends in -portal) - associates an instance of your portlet with a particular portal page (in this case the page is test http://mydomain.com/portal/test/index.html) | | test | | | | | org.jboss.portal.property.action | MyPortletWindow | | | | | org.jboss.portal.property.layout | simple-layout-two-column | | | | | org.jboss.portal.property.renderSet | divRenderer | | | | | org.jboss.portal.property.strategy | default | | | | | VIEW | EDIT | HELP | | | | NORMAL | MINIMIZED | MAXIMIZED | | | | | default | | | default | | MyPortletWindow | test.MyPortlet.MyPortletInstance | top.left | 0 | | | | | | | | | | | | | | | | Ultimately you shoul review the JBossPortalReferenceGuide, review the files of the portal sar which also demonstrate usage of the above files and then try your hand at creating your own portlets and portal pages. If you want to replace the Hello Word portlet, you can simply edit the following page and add in your portlet: ${JBOSS_HOME}\server\default\deploy\jboss-portal.sar\portal-core.war\WEB-INF\default-portal.xml Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901258#3901258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901258 --- 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: net.sourceforge.jtds.jdbc.Driver : CLASS NOT FOUND Excep
If you simply cut-and-pasted the XML from my reply on how to change the datasource, that would be one cause of this error! ;-) Cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901259#3901259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901259 --- 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: portlet layout in portal
Try changing this: | | org.jboss.portal.property.layout | simple-layout-two-column | | ... | | org.jboss.portal.property.renderSet | divRenderer | | to this: | | org.jboss.portal.property.layout | nodesk | | ... | | org.jboss.portal.property.renderSet | emptyRenderer | | | I have been using a custom theme in my work and I forgot to change these values back to the defaults for the JBoss Portal. Good luck View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901841#3901841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901841 --- 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: Does jboss-portal 2.0 support LDAP?
anonymous wrote : Does jboss-portal 2.0 support LDAP? The portal does not support LDAP as a repository for portal roles...sort of. What's happening is that your LDAP is not supplying the roles used by the JBoss Portal. The portal comes with two roles out-of-the-box: * Admin * User You should review JBoss AS 4.0.X Server Guide (chapter 8 on security) to determine how you want to integrate your LDAP authentication with JBoss Portal. What I did for this was to implement a custom JAAS LoginModule (using JBoss SX base class) and after authenticating against our internal LDAP system, I automatically inserted a user into the portal's database with the User role (if he/she did not exist in the database). I also 'borrowed' some of the code from the JBoss Portal HibernateLoginModule class - specifically the code that gets the roles for a user. The result was a login module that used our corporate LDAP system AND JBoss Portal's DB to authenticate and authorize a user for the portal. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901847#3901847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901847 --- 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: Changing the context path
This is probably not achievable easily because the portal is packaged as a .sar (not a single .war) and there are several places in config files, JSP's, and probably the Java code that are hard coded to this context path. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901848#3901848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901848 --- 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: Does jboss-portal 2.0 support LDAP? STACKING vs. MERGING
Hi Julien, Yes - I thought about stacking. At the time I wrote my LoginModule, I was under a deadline and was having some issues getting stacking to work the way I wanted. In hindsight, I should probably revisit the LoginModule-stacking approach and see if I can get it to work the way I want. Thanks, Brad PS - there's no 'forking' of JBoss code; I simply created a new LoginModule in my system that borrows some of your HibernateLoginModule code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901997#3901997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901997 --- 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: portlet layout in portal
Yes - if you want to modify what the portal looks like, you must modify portal-core.war/WEB-INF/default-portal.xml The way I deal with custom portal pages is to create my own layout/theme(s). Then, I set the default-portal to use my desired layout/theme and I develop arbitrary portal pages based on my layout/theme. In default/deploy you might have several things deployed, like this: | ${JBOSS_HOME}/server/default/deploy/ | ... | jboss-portal.sar | ... | three-column-theme.war | two-column-theme.war | fancy-theme.war | blue-theme.war | green-theme.war | ... | news-portal.war | reports-portal.war | ... | portal-ds.xml | ... | Each *-theme.war is a custom layout/theme Each *-portal.war is a specific portal page (or set of portal pages) portal-ds.xml contiains each of the datasources your portal(s) use. NOTE - the reference guide explains how you create URL's for your portal pages. Hope this helps. Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902100#3902100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902100 --- 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: portlet layout in portal
Lunch - lol -ok someday maybe ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902303#3902303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902303 --- 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: DEFAULT 404 ERROR PAGE
Try editting web.xml in: ${JBOSS_HOME}\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF\web.xml Add elements like these (for example): | | 404 | /404.html | | Review the Servlet spec. and/or the appropriate web.xml DTD or XSD for more info on configuring a webapp to deal with error codes. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902559#3902559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902559 --- 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: User portlet
The subject of this posting is completely wrong - logging in to a servlet container via j_security_check has nothing to do with a User Portlet. Anyways, I answered this question here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70094 Hope it helps you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902649#3902649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902649 --- 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: how communicate between portlets?
Hello, I would use the PortletSession approach - it will result in portlets that are more portable (and probably, simpler, easier to maintain, less prone to changes in the underlying inter-portlet-communication API's - which are going to be brand new, etc.). Another design aspect for you to consider is this - Having portlet 1 depend on portlet 2 via inter-portlet communication API's can easily result in portlet implementations that break if one or more of the 'communicating' portlets is not available (or throws an exception). Cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903537#3903537 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903537 --- 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: How do I write Portlets for my Own Portal..
Here is an approach I use for dynamically creating form-submit URL's in portlet-JSP pages (Using JSP 2.0 - EL support and JSTL): | <%-- create a page-scoped var containing the submit URL --%> | | | Customize (EDIT) This Portlet | | | . | | | | The above code is simpler than what you are trying to do with your link code and setting the action property of a DOM object. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903539#3903539 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903539 --- 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: How do I write Portlets for my Own Portal..
Thanks for the clarification - that's not really a portal, portlet, or even a JSP question at this point then, right? It's more a question of 'how do use javascript to dynamically change a form action based on which link a user clicks?' Cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903600#3903600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903600 --- 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: Action Methods
You are correct - there is just processAction() in JSR 168 portlets. And yes, comparing a cmd or action parameter is a reasonable strategy... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903773#3903773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903773 --- 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: Per-page layout strategy
Download a copy of the JBoss Portal source (any version 2.0 or higher) - you can find the layout DTD (and others) at: C:\jboss-portal-2.0.1RC1-src.tar\jboss-portal-2.0.1RC1-src\core\src\resources\dtd View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903775#3903775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903775 --- 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: HttpSession and PortletSession
Try changing your login.jsp in the following ways: 1.) Add the Portlets tag library: <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet"; %> 2.) Use tag 3.) Change your session code to use the PortletSession instead of the HttpSession Ultimately, your page should look something like this: | ... | <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet"; %> | ... | | ... | ... | <% portletRequest.getSession.setAttribute("toto","youhou!!"); %> | | BTW - in JSP, the HttpSession is an implicit object so you can access if simply using session instead of request.getSession(). Hope this helps! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903816#3903816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903816 --- 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: HttpSession and PortletSession
Ooops - code should read: renderRequest.getSession(...) NOT portletRequest.getSession(...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903817#3903817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903817 --- 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: HttpSession and PortletSession
OOPs one more time - should be getPortletSession() not getSession() View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903819#3903819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903819 --- 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: User portlet
did you create logout.jsp in 'jboss-portal.sar\portal-server.war\' directory? If so, your login.jsp can contain code like this for getting the user back into the flow of your portal/web-app: logout.jsp | <% session.invalidate(); |response.sendRedirect("http://myserver.com:8080/login/logout.jsp";); | %> | Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904069#3904069 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904069 --- 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: How can I customize the portal login page?
Actually, you want to edit: jboss-portal.sar\portal-server.war\login.jsp View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904868#3904868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904868 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Portlets and EJB3 - WHAT?
Curious, What the does EJB(3,2,1) or any of that have to do with a Portal Server and or portlets? Well-designed portlets should ideally be only concerned with processing events (clicks, etc.) from the UI and/or rendering content in the correct view state AND dispatching an event to an appropriate business object (be it an EJB, a POJO, or whatever). Looking up an EJB, a POJO, or whatever shouldn't be an issue at all In many cases, simple portlets will use the portlet-preferences system of a JSR168 portal server for persistence of custom-user preferences. Cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905554#3905554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905554 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Sharing data between portlet
First off, If you're using JBoss Portal Server (and you are) to develop a portal application, you've basically made the following technical decisions: * You want to use Sun's JSR168 Portlet specification as a model of how you develop portlets * You want to use the JSR168-Portlet API's Given these facts, you need to spend some time reviewing the JSR 168 Portlet specification to understand what you get when you opt to use JBoss Portal Server - you can find the spec here Having said these things, if you review "PLT.11.1.1 Request Parameter's," you will find the following statement: anonymous wrote : A portlet must not see any parameter targeted to other portlets. What this means is that the behavior you are seeing is correct in JBoss Portal - that is, the portlet that responds to the button click (submit?) correctly can see the 'data' (request parameters) but other portlets correctly cannot see the 'data.' If you need to 'share data' - you need to design a scheme in which you place this 'data' in higher scope than request. You can use PortletSession and PortletContext to 'share data' - in order to choose which scope to use, reviewing the JSR168 spec and understanding how each scope behaves is mandatory. Good Luck. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906030#3906030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906030 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Wish List for Forum
It would be nice if we had some top-level Forum Pages that organized the information here. For example: 1. Help - I am new to everything about Java Web Development, Portals, JBoss, etc... 2. Installation, Configuration, and Custom modifications of the Portal FAQ's 3. JSR 168 Specific FAQ's 4. Portlet Design -n- Development 5. Misc. FAQ's there are probably other categories that could be created as well. Just my 2-cents here... ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906032#3906032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906032 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: how jsp should call processAction
You can go to portlet swap and download my submission, the JavaPlant MVC Portlet Framework under Framework Portlets here. In the distribution, you will find a set of JSP components for my RSS Portlet in this directory: mvc-portlet-fwk\samples\app\src\webapp\WEB-INF\jsp\portlets\RSSFeedPortlet Have a look at the edit.jsp - it demonstrates how you should create URL's correctly for your portlet's actions. Basically, when creating action URL's for portlets, you use the tag to create the value for your form's action attribute. If you need multiple action URL's, my RSS Portlet illustrates how to achieve this using the tag(s), JSTL, and some javascript. Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906080#3906080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906080 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: how jsp should call processAction
Again - try my framework - it provides this feature ;-) You can configure your portlet to automatically create a PortletForm (an object - a form bean) and the request parameters will be used to set the properties of your form bean. It's here. It's also reasonably well documented. Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906099#3906099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906099 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: JBoss Portlet getting Started
With regards to getting started, my response here is similar to a posting I made here. Why would you pick JBoss Portal Server? Here are my reasons -I want to use Java as my programming language and JSP for developing UI's -I am experienced with the JSR168 Portlet spec. ---I have used Jetspeed (1) which is not JSR168-based ---I have used Weblogic Portal which claims to support JSR168 (but it steers you towards its proprietary technology (like NetUI, etc...) ---I have dabbled with Jetspeed 2 back in the Summer 2005 when I was choosing a free, open-source JSR168 portal system - Jetspeed 2 is unfortunately a bit too convoluted at the moment (I shouldn't have to build Jetspeed 2 to use it) -At the time (Summer 2005) I chose JBoss Portal Server, I was able to develop my portlets quickly and use the JSR168 spec. as my primary documentation. The result of my choice is that I have portlets with no direct dependency on JBoss - they could be used in any JSR168 compliant portlet container. But along the way I found it relatively easy to build custom themes and pages. So now I have a library of portlet code that makes it very easy for me to 'knock out' a JSR168/Java portlet very quickly. I have extracted the 'best' of my portlet library and submitted it to PortletSwap as a framework entry (JavaPlant Base MVC Portlet Framework). Armed with a decent knowledge of JSR168, development experience using JSP, JSTL, etc.., JBoss Portal 2.0, and my tiny framework (sorry about the plug here ;-)) anyone can easily make a lot of progress developing JSR168/Java portlets. I think the other thing that has an effect on your 'ease of development' is your skill at setting up Java-web-app projects and using something like Maven or Ant to build, test, and deploy your portal app. If you comfortable with setting up a 'smooth' development environment, you should be able to code, compile, test, deploy, test quickly. My comments about are only applicabe to the current release of JBoss Portal 2.0.X. I have some doubts that the Portal 2.2 release is going to come off 'smoothly' for those of us actively using Portal 2.0 that want to migrate to 2.2. Hope this is helpful! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906383#3906383 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906383 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - JBP 2.2.0 - Documentation Question
Sections 1.1.1 and 3.1.1 anonymous wrote : Takes the name of the application followed by the name of the portlet, as defined in the portlet.xml where does the "name of the application" come from? jboss-web.xml? ??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915571#3915571 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915571 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Posting to ActionURL
You use the JSR168 portlet tag library to achieve this. Here is an example using the actionURL tag, some JSTL () and JSP 2.0 to create a link for a portlet form: | | ... | | | ... | | Hope that helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915581#3915581 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915581 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - JBP 2.2.0 - Management Portlet - horrible UI
I was experimenting with trying to add a portlet to the default page using the management portlet - first, the changes didn't seem to take, second, I clicked destroy thinking I would 'destroy the portlets' that I added to the default page. What happened is that it destroyed the default page - nice! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915634#3915634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915634 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: JBP 2.2.0 - Management Portlet - horrible UI
well - the destroy behavior is obvious now, after the fact.Anyway, for what it is worth, I can't think of any real use case where I would want a portal site to have no 'default' page, thereby leaving all people that visit the home page for the portal with a 404 error... can you? How do I recover from this? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915638#3915638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915638 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: JBP 2.2.0 - Management Portlet - horrible UI
I suppose I can, but I think the functionality of 'destroy'ing a page is questionable. I can see the potential value of being able to destroy pages...however, I think there are some pages that must be 'golden' in the sense that they can not be deleted - like the default page for the portal. Also, some portlets, like the admin/mgmt portlets probably should be 'golden' otherwise a careless click of destroy (like mine) results in an unusable portal. I think I am going to have to reinstall my portal instance in order to get back that default page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915644#3915644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915644 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - JBP 2.2.0 Documentation Question - portal tree?
Next question... In the documentation, this tag is documented as: anonymous wrote : Indicates whether the object should be hooked in to the portal tree. | What is a portal tree? (I have searched the ref. manual and there is no definition of this term...) What does it mean to be 'hooked in to the portal tree'? What are the allowed values, attributes, etc. and their meanings for ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915650#3915650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915650 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: JBP 2.2.0 - Documentation Question
I deployed a war in which I did not supply an but there was an 'old' *-portal.xml in which I defined sso. The result was that my portlet was available as sso.MyPortlet. So it may be that your prior post is correct, but it appears that there is another way of deducing the application name. What exactly is the purpose of application name and how is it determined? Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915651#3915651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915651 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: JBP 2.2.0 - Documentation Question
still waiting for answer...just want to make sure this doesn't drop off the radar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915806#3915806 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915806 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - JBP 2.2.0 Documentation Question - Portal Properties
What are all the properties available for a ? --names? --allowed values? meanings? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915814#3915814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915814 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - JBoss Documentation Question - Page properties
What are all the properties available for a ? --names? --allowed values? meanings? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915815#3915815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915815 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - *-object.xml design issue/question
Why use the same tag, , to 'contain everything' in *.xml? I mean, why not use for declarations, for declarations, etc...? The overloading of the term for everything is confusing. Why not provide a DTD or an XSD for the *-object.xml? Thanks, Brad Smith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915816#3915816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915816 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: *-object.xml design issue/question
by same tag, I mean . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915841#3915841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915841 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: *-object.xml design issue/question
3rd try: I mean - View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915843#3915843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915843 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: mysql in a remote db
You need to go into your MySQL Admin Console and allow remote connections to your DB - that's documented inthe MySQL reference manual. It has nothing to do with JBoss Portal. Good Luck. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915848#3915848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915848 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Breaking changes to pageflow
How about making a new beta release of Seam - I have trouble trying to figure out which version of facelets, EL, etc... I need to build complete application .war (for a Seam + Hibernate + Facelets style of application)... even though I try to use recent nightly releases, follow the documentation, look at the example code, etc. Also, following the included readme.txt file doesn't cut it in the nightly builds. anonymous wrote : | Get Up And Running Quick | | | 1. Download JBoss AS 4.0.4.CR2 or later | |http://www.jboss.com/products/jbossas/downloads | | 2. Install JBoss AS 4.0.4.CR2 with the EJB 3.0 profile selected | | 3. Edit the "build.properties" file and change jboss.home to your |JBoss AS installation directory | | 4. Start JBoss AS by typing "bin/run.sh" in the JBoss home directory | | 5. In the "examples/booking" directory, type "ant deploy" and check |for any error messages | | 6. Point your browser to | |http://localhost:8080/seam-booking/ | | 7. Register an account, search for hotels, book a room... | Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938710#3938710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938710 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Help w. setup of Seam CVS20060418 for Hibernate
I am trying to set up a seam project that uses EJB3 annotations on the entities , JSF for the views, and Hibernate as the persistence manager (Hibernate Sessions). I am able to compile and deploy without errors; I am even able to invoke pages in my app without exceptions. However, it does not seem that Seam is doing what I expect (possibly I have misconfigured something). What I am trying to do is create the skeleton of a simple login process. I have provided here, the User entity, and the SimpleLogin POJO I created to perform the login process: @Entity | @Table(name="user", | uniqueConstraints = [EMAIL PROTECTED](columnNames={"a_number"})} | ) | @EntityListeners(BaseEntity.class) | @Name("user") | @Scope(ScopeType.SESSION) | public class User extends BaseEntity implements Serializable { | | private final Log log = LogFactory.getLog(User.class); | | private static final long serialVersionUID = -795127549881852884L; | | private String aNumber; | private Set links; | | public User() { log.info("new User()"); } | | @Column(name = "a_number",unique = true,insertable=true,nullable=false,updatable=false,length=12) | public String getaNumber() { return aNumber; } | public void setaNumber(String aNumber) { this.aNumber = aNumber; log.info("User.setaNumber("+aNumber+")"); } | | @OneToMany(cascade= CascadeType.ALL, mappedBy="user", fetch = FetchType.EAGER) | public Set getLinks() { return links; } | public void setLinks(Set links) { this.links = links; } | | } | and here is the SimpleLogin POJO: @Name(value = "simpleLogin") | @Scope(ScopeType.EVENT) | public class SimpleLogin { | | @In(required = true) @Out | private User user; | | @In(create=true) | private Session appssoDB; | | @In(create=true) | private FacesMessages facesMessages; | | public String login() { | final User u = (User)appssoDB.createQuery("from User where aNumber=:aNumber") | .setParameter("aNumber",user.getaNumber()) | .uniqueResult(); | if (user == null) { | facesMessages.add("Invalid A Number"); | return "login"; | } else { | return "loggedIn"; | } | } | } | now here is a page that I borrowed from one of the Seam examples and adapted to use these beans: | | | | | | Login Name | | | | | Register User | Ask for Help | | | Created with JBoss Seam, Facelets, and JSF 1.1.01 Ref. Impl. | | | | | #{conversation.id} | When I deploy the app, I get the following (relevant snippets?) in the server console: | 11:19:32,743 INFO [ServletContextListener] Welcome to Seam 1.0 rc1 | 11:19:32,758 INFO [Initialization] initializing Seam | ... | ... | ... | 11:19:35,868 INFO [User] new User() | 11:19:35,915 INFO [User] new User() | 11:19:35,915 INFO [User] User.setaNumber(null) | 11:19:36,040 INFO [SessionFactoryObjectFactory] Factory name: java:/appssoSessionFactory | 11:19:36,040 INFO [NamingHelper] JNDI InitialContext properties:{} | 11:19:36,055 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/appssoSessionFactory | ... | ... | There are no exceptions in the deployment and it appears from the lines above that Seam is started and hibernate is aware of my User class. So I invoke my main.seam page.. everthing displays 'just fine' no exceptions - I get conversation.id = 1, which I take to mean that seam is participating in the request processing successfully. Here is the server.log contents that I see when I invoke main.seam | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.lifecycle.LifecycleImpl] execute([EMAIL PROTECTED]) | 2006-04-24 11:31:30,167 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.lifecycle.RestoreViewPhase] Entering RestoreViewPhase | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.application.ViewHandlerImpl] URL pattern of the FacesServlet executing the current request .jsf | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.application.ViewHandlerImpl] viewId after appending the context suffix /main.xhtml | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.application.StateManagerImpl] Begin restoring view in session for viewId /main.xhtml | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.application.StateManagerImpl] Restoring view from session for viewId /main.xhtml | 2006-04-24 11:31:30,167 DEBUG [com.sun.faces.application.StateManagerImpl] End restoring view in
[JBoss-user] [JBoss Seam] - Re: Help w. setup of Seam CVS20060418 for Hibernate
I had read in the documentation that I could use seam.properties or context-param's. So, I have in web.xml: | | | org.jboss.seam.core.init.managedSessions | appssoDB | | | | | org.jboss.seam.core.init.componentClasses | org.jboss.seam.core.Hibernate | | | Is this not supported? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938985#3938985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938985 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help w. setup of Seam CVS20060418 for Hibernate
Gavin - I appreciate your quick responses - thanks. Why not have Seam throw an exception on startup if this file is missing then? If I must always have it, and it's not there, then isn't this somewhat of a fatal condition for startup? Also, I added the seam.properties file - now, on initial visit to my /main.seam page, I can see in the console that a new User object is being created, however, on submit, the SimpleLogin action I created is not getting created and invoked. The SimpleLogin class looks like this: | @Name(value = "simpleLogin") | @Scope(ScopeType.STATELESS) | public class SimpleLogin { | | private final Log log = LogFactory.getLog(SimpleLogin.class); | | @In(required = true) @Out | private User user; | | @In(create=true) | private Session appssoDB; | | @In(create=true) | private FacesMessages facesMessages; | | public SimpleLogin() { log.info("new SimpleLogin()"); } | | public String login() { | log.info("login() - (in) user = "+user); | final User u = (User)appssoDB.createQuery("from User where aNumber=:aNumber") | .setParameter("aNumber",user.getaNumber()) | .uniqueResult(); | log.info("login() - (out) user = "+u+" (if null, user does not exist)"); | if (user == null) { | facesMessages.add("Invalid A Number"); | return "login"; | } else { | return "loggedIn"; | } | } | } | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938989#3938989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938989 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help w. setup of Seam CVS20060418 for Hibernate
Okay - I finally fixed this myself. I found that by adding the following to my web.xml, | | javax.faces.STATE_SAVING_METHOD | client | | that suddenly Seam began to 'do the right thing,' i.e. instantiate and call my components. In the documentation it says: anonymous wrote : | If you are using Seam in Apache MyFaces (and possibly some other JSF implementations), you must use client-side state saving. So you'll also need this in web.xml: | | | javax.faces.STATE_SAVING_METHOD | client | | I am not using MyFaces (yet?); rather, I am using Facelets 1.1.5(milestone) and JSF 1.1.01. so I incorrectly assumed that this did not apply to me. This has been a lot of pain for such a small thing. Surely there is some clever way of defaulting stuff like this... Anyways, I appreciate the help with this on the forum - Thanks Gavin. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939026#3939026 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939026 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Problem with Injection / Outjection
Hello, I am using Seam 1.0.0.CR1. I am having some difficulty with the @In and @Out annotations. I will explain my 'use case' then I will explain the problem. I am developing a prototype Seam web application that is integrated with the CAS http://www.ja-sig.org/products/cas/ Single Sign-On system. What this means is that I am deploying a Filter along with my application that works out the authentication status of the user with the CAS server. Once the the Filter has established that the user is authenticated, it let's the user's requests proceed on to the Seam (web) application that it fronts. Once I get to the first page in my Seam, I would like to use a component (a POJO style STATELESS component (not EJB3)) to perform a hibernate query and return some user-specific data. I read in the documentation that I should create a pages.xml file and add something like the following: | | | | so I added this (main.xthml is the page that renders in response to requests for /main.seam). I have snipped the only 'interesting' code from main.xhtml here: | Welcome #{aNumber} (aNumber) | Welcome #{remoteUser} (remoteUser) | Welcome #{com$evergreen$sso$SSOData.userPrincipal} (ssoData.userPrincipal) | Welcome #{com$evergreen$sso$SSOData.userPrincipal.userid} (com$evergreen$sso$SSOData.userPrincipal.userid) | Welcome #{com$evergreen$sso$SSOData.userPrincipal.personName} (com$evergreen$sso$SSOData.userPrincipal.personName) | | Conversation.id = #{conversation.id} | #{userLinks} | which results in a display like the following: | Welcome (aNumber) | Welcome (remoteUser) | Welcome EvergreenSSOPrincipal{userid=A42} (ssoData.userPrincipal) | Welcome A42 (com$evergreen$sso$SSOData.userPrincipal.userid) | Welcome B Smith (com$evergreen$sso$SSOData.userPrincipal.personName) | where the stuff from com$evergreen$sso$SSOData is supplied in the HttpSession via the Filter class I deployed with the application. The first problem here is from #{userLinks}. I have tried to bind this to this bean: | @Name("userLinkActions") | @Scope(ScopeType.STATELESS) | public class UserLinkActions { | | private Log log = LogFactory.getLog(UserLinkActions.class); | | @In(required = true) | private Context sessionContext; | | @In(value="#{userPrincipal}",required=true) | private EvergreenSSOPrincipal ssoPrincipal; | | @In(create=true) | private Session appssoDB; | | @In(create=true) | private FacesMessages facesMessages; | | @Out(scope=ScopeType.SESSION) | private User user; | | @Out | private Collection userLinks; | | public UserLinkActions() {log.info("new UserLinkActions()");} | | @Factory("userLinks") | public final void getUserLinks() { | log.info("getUserLinks() - (in) user = " + user); | log.info("getUserLinks() - (in) ssoPrincipal = " + ssoPrincipal); | log.info("getUserLinks() - (in) appssoDB = " + appssoDB); | log.info("getUserLinks() - (in) sessionContext = " + sessionContext); | log.info("getUserLinks() - (in) facesMessages = " + facesMessages); | | if (ssoPrincipal == null) { | log.info("Yikes! getUserLinks() - ssoPrincipal is null."); | userLinks = new ArrayList(); | return; | } | final User currentUser = (User)appssoDB.createQuery("from User where aNumber=:aNumber") | .setParameter("aNumber",user.getaNumber()) | .uniqueResult(); | log.info("getUserLinks() - (out) currentUser = "+currentUser); | userLinks = currentUser.getLinks(); | if (userLinks != null) { | log.info("getUserLinks() - user has "+userLinks.size()+" links."); | } | } | | } | The server console reports the following when /main.seam (/main.xhtml) is reached: | 15:46:21,934 INFO [User] new User() | 15:46:21,997 INFO [UserLinkActions] new UserLinkActions() | 15:46:21,997 INFO [UserLinkActions] getUserLinks() - (in) user = null | 15:46:21,997 INFO [UserLinkActions] getUserLinks() - (in) ssoPrincipal = null | 15:46:21,997 INFO [UserLinkActions] getUserLinks() - (in) appssoDB = null | 15:46:21,997 INFO [UserLinkActions] getUserLinks() - (in) sessionContext = null | 15:46:21,997 INFO [UserLinkActions] getUserLinks() - (in) facesMessages = null | 15:46:21,997 INFO [UserLinkActions] Yikes! getUserLinks() - ssoPrincipal is null. | Please disregard the hibernate query in the bean based on the User property - I know that won't work in its current state. I am trying to understand why the @In annotations aren't behaving as I expect. I am sure I once again missed something in the documentation, the configuration, are in this forum (yes I have searched and read). I am mainly concerne
[JBoss-user] [JBoss Seam] - Re: Problem with Injection / Outjection
Can anyone help with this? Again, the problem is that I am displaying this page via GET and my @In annotations do not appear to be 'honored' by Seam. Thus, the userLinks collection which I would like to @Out will never be 'loaded' with data. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940450#3940450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940450 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problem with Injection / Outjection
Part 2) anonymous wrote : stack trace of the call to the UserLinkActions() constructor and Part 3) anonymous wrote : A stack trave of the call to getUserLinks() | 10:08:13,234 INFO [User] new User() | 10:08:13,296 INFO [UserLinkActions] new UserLinkActions() | 10:08:13,296 ERROR [STDERR] java.lang.Exception | 10:08:13,296 ERROR [STDERR] at com.evergreen.userlinks.biz.UserLinkActions.(UserLinkActions.java:56) | 10:08:13,296 ERROR [STDERR] at com.evergreen.userlinks.biz.UserLinkActions$$EnhancerByCGLIB$$8b2f8ae1.() | 10:08:13,296 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | 10:08:13,296 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | 10:08:13,296 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | 10:08:13,296 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | 10:08:13,296 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:350) | 10:08:13,296 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.instantiate(Component.java:670) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:634) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1156) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1107) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1090) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1140) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1104) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1090) | 10:08:13,296 ERROR [STDERR] at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | 10:08:13,312 ERROR [STDERR] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65) | 10:08:13,312 ERROR [STDERR] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) | 10:08:13,312 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554) | 10:08:13,312 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) | 10:08:13,312 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) | 10:08:13,312 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) | 10:08:13,312 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) | 10:08:13,312 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | 10:08:13,312 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 10:08:13,312 ERROR [STDERR] at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:565) | 10:08:13,312 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 10:08:13,312 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 10:08:13,312 ERROR [STDERR] at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | 10:08:13,312 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 10:08:13,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 10:08:13,328 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23) | 10:08:13,328 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCh
[JBoss-user] [JBoss Seam] - Re: Problem with GET request and Injection / Outjection
this is a better title for this problem... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940636#3940636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940636 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problem with Injection / Outjection
Another bit of data on this issue | 10:37:11,052 INFO [CASFilter] EvergreenSSOPrincipal{userid=A42...} | 10:37:11,145 INFO [Pages] reading pages.xml | 10:37:12,302 ERROR [STDERR] May 2, 2006 10:37:12 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp27602userlinks-exp.war/WEB-INF/lib/jsf-facelets-1.1.5M.jar!/META-INF/jsf-ui.tagl | 10:37:12,333 ERROR [STDERR] May 2, 2006 10:37:12 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp27602userlinks-exp.war/WEB-INF/lib/jsf-facelets-1.1.5M.jar!/META-INF/jsf-core.ta | 10:37:12,348 ERROR [STDERR] May 2, 2006 10:37:12 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp27602userlinks-exp.war/WEB-INF/lib/jsf-facelets-1.1.5M.jar!/META-INF/jstl-fn.tag | 10:37:12,380 ERROR [STDERR] May 2, 2006 10:37:12 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp27602userlinks-exp.war/WEB-INF/lib/jsf-facelets-1.1.5M.jar!/META-INF/jstl-core.t | 10:37:12,395 ERROR [STDERR] May 2, 2006 10:37:12 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp27602userlinks-exp.war/WEB-INF/lib/jsf-facelets-1.1.5M.jar!/META-INF/jsf-html.ta | 10:37:42,709 INFO [UserLinkActions] new UserLinkActions() | 10:37:42,709 ERROR [STDERR] java.lang.Exception | 10:37:42,709 ERROR [STDERR] at com.evergreen.userlinks.biz.UserLinkActions.(UserLinkActions.java:57) | 10:37:42,709 ERROR [STDERR] at com.evergreen.userlinks.biz.UserLinkActions$$EnhancerByCGLIB$$58c91f85.() | 10:37:42,709 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | 10:37:42,709 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | 10:37:42,709 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | 10:37:42,709 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | 10:37:42,709 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:350) | 10:37:42,709 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.instantiate(Component.java:640) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:604) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1117) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1068) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1051) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1101) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1065) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1051) | 10:37:42,709 ERROR [STDERR] at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | 10:37:42,709 ERROR [STDERR] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65) | 10:37:42,709 ERROR [STDERR] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) | 10:37:42,709 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554) | 10:37:42,709 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) | 10:37:42,709 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) | 10:37:42,709 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) | 10:37:42,
[JBoss-user] [JBoss Seam] - Re: Problem with Injection / Outjection
How about @In(jection) does the final'ness of methods have an impact on that too? Thanks for catching the final problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940728#3940728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940728 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Problem with Injection / Outjection
Gavin, Thanks for helping me debug this problem. That was more painful than I would have liked normally but the it's been far more educational too ;-). Everything is working great now! Thanks again! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940772#3940772 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940772 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - IllegalArgumentException: could not set field value: linkEdi
Hello, I am having a problem with @Injection (I think). Here is the source code (Facelets XHTML) for an HTML form: | | | | | URL: | | | | | | | | Link Title: | | | | | | | | | | | | | | | | | | | function gotoPage(pageUrl) { | if (pageUrl) { | window.location.pathname = pageUrl; | } | } | | | | | Here is the generated source: | | | | | URL: | http://www.boston.com/"; /> | | | | | | | Link Title: | | | | | | | | | function gotoPage(pageUrl) { | if (pageUrl) { | window.location.pathname = pageUrl; | } | } | | | Here is the component that responds to submits from this form: | | @Name("linkEditor") | @Scope(ScopeType.CONVERSATION) | public class LinkEditor { | | private Log log = LogFactory.getLog(UserLinkActions.class); | | // Resources | @In(create = true) | private Session appssoDB; | | // Entities | @In(create = false,required = true) | @Out(scope = ScopeType.SESSION, value = "user") | private User user; | | @In(create = true) @Out | private Link link; | | @RequestParameter("id") | private long linkId; | | // UI, Misc... | @In(create = true) | private FacesMessages facesMessages; | | @End(ifOutcome={"success"}) | public String createLink() { | | log.info("createLink() - entered"); | final User u = (User) appssoDB.get(User.class, user.getId()); | if (u != null) { | Transaction tx = appssoDB.beginTransaction(); | if (link != null) | u.addLink(link); | link.initDates(); | appssoDB.save(u); | tx.commit(); | appssoDB.refresh(u); | user = u; | return "success"; | } else { | facesMessages.add("User does not exist in database."); | return null; | } | } | | public String updateLink() { | log.info("updateLink() - link.id="+linkId); | if (link != null || link.getId()>0) { | final Link l = getLink(link.getId(),user.getId()); | if (l != null ) { | l.setTitle(link.getTitle()); | l.setRank(link.getRank()); | l.setURL(link.getURL()); | l.refreshUpdateDate(); | user.addLink(l); | appssoDB.save(user); | appssoDB.refresh(user); | link = user.getLink(link.getId()); | return "success"; | } | } | facesMessages.add("Unable to update requested link."); | return null; | } | | public String deleteLink() { | log.info("deleteLink() - linkId="+linkId); | link = getLink(linkId,user.getId()); | log.info(" link -> "+link); | if (link != null) { | Transaction tx = appssoDB.beginTransaction(); | link.getUser().removeLink(link); | appssoDB.save(link.getUser()); | tx.commit(); | user = (User)appssoDB.get(User.class, user.getId()); | return "success"; | } else { | facesMessages.add("Unable to delete requested link."); | return null; | } | } | | public String readLink() { | link = getLink(linkId,user.getId()); | log.info("getLink() - link -> "+link); | if (link != null) { | return "success"; | } else { | facesMessages.add("Unable to load requested link."); | return null; | } | } | | /** The link we are editting must be associated with a particular user. | * | * @return a link | */ | private Link getLink(long lid, long uid) { | log.info("getLink() - lid="+lid+"\tuser.id="+uid); | return (Link)appssoDB.createQuery("from Link as link where link.user.id=:uid and link.id=:lid") | .setParameter("lid",lid) | .setParameter("uid",uid) | .uniqueResult(); | } | } | Here is the problem - The form's submit button in this case is wired to the linkEditor.updateLink action. When I submit the form, I get the following stack trace: 08:07:02,190 ERROR [InvokeApplicationPhase] #{linkEditor.updateLink}: javax.faces.el.EvaluationException: /edit-link.xhtml
[JBoss-user] [JBoss Seam] - Re: class not found javax/interceptor/InvocationContext
I installed JBoss 4.0.4GA with EJB3 profile and I get the same error from my Seam 1.0.0.CR2 .war: | 10:49:08,314 ERROR [[/userlinks]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener | java.lang.NoClassDefFoundError: javax/ejb/InvocationContext | at java.lang.Class.getDeclaredMethods0(Native Method) | at java.lang.Class.privateGetDeclaredMethods(Class.java:2365) | at java.lang.Class.privateGetPublicMethods(Class.java:2488) | at java.lang.Class.getMethods(Class.java:1406) | at org.jboss.seam.interceptors.Interceptor.init(Interceptor.java:62) | at org.jboss.seam.interceptors.Interceptor.(Interceptor.java:37) | at org.jboss.seam.Component.initDefaultInterceptors(Component.java:513) | at org.jboss.seam.Component.initInterceptors(Component.java:486) | at org.jboss.seam.Component.(Component.java:187) | at org.jboss.seam.Component.(Component.java:147) | at org.jboss.seam.Component.(Component.java:142) | at org.jboss.seam.Component.(Component.java:137) | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:284) | at org.jboss.seam.init.Initialization.addComponents(Initialization.java:194) | at org.jboss.seam.init.Initialization.init(Initialization.java:108) | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) | at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) | at org.jboss.web.WebModule.startModule(WebModule.java:83) | at org.jboss.web.WebModule.startService(WebModule.java:61) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke
[JBoss-user] [JBoss Seam] - Re: class not found javax/interceptor/InvocationContext
whoops - in my previous message, I claimed to have same error, however, my exception is different - javax/ejb/InvocationContext instead. This is similar in the sense that to me, it looks like Seam 1.0.0.CR2 does not work with JBoss 4.0.4 GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943901#3943901 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943901 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: IllegalArgumentException: could not set field value: lin
Some further digging Here is the what comes in with the request when this submit is invoked: | 16:06:48,740 INFO [RequestDumper] _id0:title = Jboss Seam Forum Site | 16:06:48,740 INFO [RequestDumper] _id0:id = 27 | 16:06:48,740 INFO [RequestDumper] _id0:url = http://www.jboss.com/index.html?module=bb&op=viewforum&f=231 | 16:06:48,740 INFO [RequestDumper] _id0 = _id0 | 16:06:48,740 INFO [RequestDumper] com.sun.faces.VIEW = H4sIAMVXX2wURRifu7a0XAFbCqSCpUdBCtjutfSOthaUlrb04hVqWyp/HmDudnq3sLe77s72thIJPKCJJEZFjCY1kuiDD/iibyYmGh6MJGAg8cXEhBgTY+KfxBfUB/Wb2b293ft | jC0LYh7m9me+b79/v .. PRUNED.. LJYV/tLZvHygfM1d2wi7E+i8oJYVucxIAAA== | 16:06:48,740 INFO [RequestDumper] _id0:_id16 = save changes | 16:06:48,740 INFO [RequestDumper] | Here is what Seam thinks it has to work with (I added some logging to org.jboss.seam.Component.setFieldValue(Object bean, Field field, String name, Object value) {} in the catch{} block. 16:06:48,771 ERROR [Component] java.lang.IllegalArgumentException | java.lang.IllegalArgumentException | at sun.reflect.UnsafeLongFieldAccessorImpl.set(UnsafeLongFieldAccessorImpl.java:62) | at java.lang.reflect.Field.set(Field.java:656) | at org.jboss.seam.Component.setFieldValue(Component.java:1081) | at org.jboss.seam.Component.injectParameters(Component.java:737) | at org.jboss.seam.Component.inject(Component.java:712) | at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:30) | ... | ... | 16:06:48,771 ERROR [Component] getFieldValue() - bean -> [EMAIL PROTECTED] | 16:06:48,771 ERROR [Component] getFieldValue() - field -> private long com.evergreen.userlinks.biz.LinkEditor.linkId | 16:06:48,771 ERROR [Component] getFieldValue() - name -> id | 16:06:48,771 ERROR [Component] getFieldValue() - value -> nullnull | Any thoughts? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944029#3944029 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944029 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: IllegalArgumentException: could not set field value: lin
I solved this. The root of the problem was that I was: a.) using the @RequestParameter annotation b.) trying to use different methods in the same class, LinkEditor, to handle the different functions (events) related to editting links in my application. This suggests that I would need to create a separate class for each of my use cases unless they shared exactly the same (@)Injection state. In other words, for my 'read' and 'delete' use cases, I need the id of the desired link entity, so I used the @RequestParameter. When I update the link, this same request parameter was not in my form and thus I ran into the exception. I wonder if it makes sense to add an 'optional' or 'required' parameter to the @RequestParameter...? Also, Gavin, I wonder if you have some suggestions for how to organize and group related code since it seems like using a single class to encapsulate related methods might not be best..? (the 'best practices' stuff) Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944039#3944039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944039 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: IllegalArgumentException: could not set field value: lin
One more thing... I showed the source (actual and generated) above. I invoke the display of this form the following way: | | | | | Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944031#3944031 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944031 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Script.aculo.us with Seam Remoting
Gavin, Any chance your prototype + scriptaculous integration work will appear in a Seam downloadable soon? Will this appears, will there changes in how Seam currently supports remoting? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943273#3943273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943273 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: IllegalArgumentException: could not set field value: lin
Well...that works too. thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944212#3944212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944212 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Help getting started with Seam
Hello, I downloaded jboss-seam-1.0beta2, pointed Jboss IDE hibernate tools at my DB and generated a simple seam app. I successfully ran the ant script and compiled/deployed my generated app. The app comes up fine, however, once I get into the CRUD screens I am getting errors when I try to create new records in my table(s). | 15:23:44,780 ERROR [[/seamapp]] Cannot set value for expression '#{ssouserEditor.instance.id}' to a new value of type java.lang.String | javax.faces.el.EvaluationException: Cannot set value for expression '#{ssouserEditor.instance.id}' to a new value of type java.lang.String | at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:304) | at javax.faces.component.UIInput.updateModel(UIInput.java:226) | at javax.faces.component.UIInput.processUpdates(UIInput.java:165) | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:428) | at javax.faces.component.UIForm.processUpdates(UIForm.java:85) | at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:428) | at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:153) | at org.apache.myfaces.lifecycle.LifecycleImpl.updateModelValues(LifecycleImpl.java:277) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:81) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:44) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: javax.faces.el.EvaluationException: com.sso.domain.SsoUser | at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:155) | at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:269) | ... 31 more | Caused by: javax.faces.el.EvaluationException: Bean: com.sso.domain.SsoUser, property: id | at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:372) | at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:148) | ... 32 more | Caused by: java.lang.IllegalArgumentException: argument type mismatch | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:368) | ... 33 more | Is this familiar? obvious? Any help appreciated - thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi
[JBoss-user] [JBoss Seam] - Re: Help getting started with Seam
Other notes - I generated this from a SQL Server database with two tables. Here is the hibernate tools script that generated this DB: | create table sso_user ( | id numeric(19,0) identity not null, | a_number varchar(255) not null unique, | primary key (id) | ) | create table user_link ( | id numeric(19,0) identity not null, | user_id numeric(19,0) not null, | url varchar(255) not null, | title varchar(255) not null, | description varchar(255) null, | view_order numeric(19,0) null, | update_date datetime not null, | create_date datetime not null, | primary key (id) | ) | alter table user_link | add constraint fk_user_link__user | foreign key (user_id) | references sso_user | Feb 14, 2006 2:59:28 PM org.hibernate.tool.hbm2ddl.SchemaExport execute | | package com.sso.domain; | // Generated Feb 14, 2006 3:20:16 PM by Hibernate Tools 3.1.0.beta4 | | import java.math.BigDecimal; | import java.util.HashSet; | import java.util.Set; | import javax.persistence.CascadeType; | import javax.persistence.Column; | import javax.persistence.Entity; | import javax.persistence.FetchType; | import javax.persistence.Id; | import javax.persistence.OneToMany; | import javax.persistence.Table; | import javax.persistence.UniqueConstraint; | | | /** | * SsoUser generated by hbm2java | */ | @Entity | @Table(name="sso_user" | , uniqueConstraints = { @UniqueConstraint( columnNames = { "a_number" } ) } | ) | | public class SsoUser implements java.io.Serializable { | | | // Fields | | private BigDecimal id; | private String ANumber; | private Set userLinks = new HashSet(0); | | | // Constructors | | /** default constructor */ | public SsoUser() { | } | | /** minimal constructor */ | public SsoUser(BigDecimal id, String ANumber) { | this.id = id; | this.ANumber = ANumber; | } | | /** full constructor */ | public SsoUser(BigDecimal id, String ANumber, Set userLinks) { | this.id = id; | this.ANumber = ANumber; | this.userLinks = userLinks; | } | | | | // Property accessors | @Id | @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true, scale=0) | | public BigDecimal getId() { | return this.id; | } | | public void setId(BigDecimal id) { | this.id = id; | } | @Column(name="a_number", unique=true, nullable=false, insertable=true, updatable=true) | | public String getANumber() { | return this.ANumber; | } | | public void setANumber(String ANumber) { | this.ANumber = ANumber; | } | @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="ssoUser") | | public Set getUserLinks() { | return this.userLinks; | } | | public void setUserLinks(Set userLinks) { | this.userLinks = userLinks; | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923720#3923720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923720 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help getting started with Seam
I appreciate the quick responses. Anyway, I don't need to use BigDecimal - long would be fine...do you have some suggestion for customizing the generation of these entity beans? THanks, Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923727#3923727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923727 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help getting started with Seam
Sorry to bug you more, but I am having trouble with the hibernate tools. I tried creating a hibernate.reveng.xml file that looks like this: | | http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd"; > | | | | | | | | | | | | | However, it won't run successfully - org.hibernate.MappingException: Could not configure overrides from file: C:\blah blah\hibernate.reveng.xml Any tips? Thanks again, Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923732#3923732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923732 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help getting started with Seam
My latest adventure with Seam is that the CRUD generator is generating duplicates of the some of the beans and methods. sigh... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923973#3923973 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923973 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Help getting started with Seam
First, duplicates: After running the Seam generator in Eclipse, I do an Ant build - I get this: | Buildfile: C:\Documents and Settings\A428302\workspace\userlinks\build.xml | init: | [echo] Build Seam Application | compile: | [javac] Compiling 12 source files to C:\Documents and Settings\A428302\workspace\userlinks\build\classes | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserSelector.java:135: com.sso.domain.SsoUserSelector.UserLinkSsoUserSelector is already defined in com.sso.domain.SsoUserSelector | [javac] public static class UserLinkSsoUserSelector implements SsoUserSelector { | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditor.java:25: createUserLink() is already defined in com.sso.domain.SsoUserEditor | [javac] public String createUserLink(); | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditor.java:26: selectUserLink() is already defined in com.sso.domain.SsoUserEditor | [javac] public String selectUserLink(); | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:148: selectedUserLink is already defined in com.sso.domain.SsoUserEditorBean | [javac] private UserLink selectedUserLink; | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:151: userlinkEditor is already defined in com.sso.domain.SsoUserEditorBean | [javac] private transient UserLinkEditor userlinkEditor; | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:153: createUserLink() is already defined in com.sso.domain.SsoUserEditorBean | [javac] public String createUserLink() { | [javac] ^ | [javac] C:\Documents and Settings\A428302\workspace\userlinks\src\com\sso\domain\SsoUserEditorBean.java:161: selectUserLink() is already defined in com.sso.domain.SsoUserEditorBean | [javac] public String selectUserLink() { | [javac] ^ | [javac] Note: Some input files use unchecked or unsafe operations. | [javac] Note: Recompile with -Xlint:unchecked for details. | [javac] 7 errors | | BUILD FAILED | C:\Documents and Settings\A428302\workspace\userlinks\build.xml:116: Compile failed; see the compiler error output for details. | | Total time: 3 seconds | | When follow the first error, I find this: | package com.sso.domain; | // Generated Feb 15, 2006 12:32:42 PM by Hibernate Tools 3.1.0.beta4 | | import java.util.ResourceBundle; | import javax.ejb.Interceptors; | import javax.ejb.Local; | import javax.ejb.Stateless; | import org.jboss.annotation.ejb.LocalBinding; | import static org.jboss.seam.ScopeType.CONVERSATION; | import org.jboss.seam.annotations.Begin; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.JndiName; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.ejb.SeamInterceptor; | | | | @Local | public interface SsoUserSelector { | |public String select(); |public String selectNone(); | |public String getButtonLabel(); |public String getPageTitle(); | |public String cancel(); | |public boolean isCreateEnabled(); | |@Stateless |@Name("ssouserSelector") |@Interceptors(SeamInterceptor.class) |public static class DefaultSsoUserSelector implements SsoUserSelector { | | @In | private transient ResourceBundle resourceBundle; | | @In(create=true) | private transient SsoUserEditor ssouserEditor; | | @In(create=true) | private transient SsoUserFinder ssouserFinder; | | @Begin | public String select() { | ssouserEditor.setInstance( ssouserFinder.getSelection() ); | ssouserEditor.setNew(false); | return "editSsoUser"; | } | | public String selectNone() { | throw new UnsupportedOperationException(); | } | | public String getButtonLabel() { | return resourceBundle.getString("View"); | } | | public String cancel() { | throw new UnsupportedOperationException(); | } | | public String getPageTitle() { | return resourceBundle.getString("Find") + " " + | resourceBundle.getString("SsoUser"); | } | | public boolean isCreateEnabled() { | return true; | } | |} | |@Stateless |@Name("userlinkSsoUserSelector") |@LocalBinding(jndiBinding="com.sso.domain.UserLinkSsoUserSelector") |
[JBoss-user] [JBoss Seam] - Re: Seam training at JBoss World
The only link I could find was to register for JBoss World (I'm already registered) - where exactly is the link to your session? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947609#3947609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947609 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: seam and glassFish , when it is possible to use seam on
I use Maven 2 to build, run TestNG test cases, and deploy a Seam .war to JBoss. In order to deploy to Glassfish, I would think that you merely need to figure out how you're going to package your Seam application and how you will deploy it (I use a simple file copy approach to copy the .war into the deploy directory on JBoss). Packaging your Seam app will require some thought - I am not familiar with Glassfish and what it provides, but let's imagine you're using Seam with JavaBeans POJO's for your actions and Hibernate 3 for your persistence (as I am); if you're app had this same structure, you would simply need to make sure that all the Hibernate 3 dependencies are packaged in your .war. (along with Seam jars and its dependencies, and any JSF dependencies you choose). Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948064#3948064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948064 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Is it possible to integrate Seam with Jdeveloper IDE?
what do you mean by integrate? For example, in my IDE, IntelliJ IDEA, I have a Seam project that includes the seam jars. The IDE simply recognizes the annotations and auto-imports and auto-completes them for me. I presume this is true for Eclipse, probably also for Netbeans, etc. provided you import the Seam .jar files into your project and your IDE provides auto-complete features. Since much of working with Seam amounts to using the annotations, I am not sure what other kinds of integration make sense View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949697#3949697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949697 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - SeamTest (TestNG), Maven 2, and Embeddable EJB3
Has anyone successfully run unit tests with a Maven 2 pom.xml for a Seam project? I am having some trouble getting this to work... here is what I have attempted to do: 1. I downloaded the latest Embeddable EJB3 (Alpha 8 - patch 2)(?) 2. installed the .jar's with this distro in my .m2 repository 3. added them to my pom.xml with test {code} org.jboss.ejb3.microcontainer jboss-ejb3-all Alpha8.P2 test org.jboss.ejb3.microcontainer hibernate-all Alpha8.P2 test org.jboss.ejb3.microcontainer thirdparty-all Alpha8.P2 test {code} 4. Created a components.xml pasted below: {code} true true 12 java:/appssoSessionFactory {code} NOTE: I am using Hibernate Session with EJB3-style annotations for the hibernate mappings. 5. In pom.xml, I have added the dependency: {code} org.testng testng 4.7 test jdk15 {code} per the instructions for running TestNG test cases (this works as expected for normal TestNG test cases). 6. I copy the default microcontainer config files from the conf directory to my target/test-classes/conf directory (so that these resources will be in the classpath of the test runner) 7. Here is my test case: {code} public class UserEditorTest extends SeamTest { @Logger private Log log; @Test public void test_SessionStarter_create_delete_User() throws Exception { new Script() { @Override protected void updateModelValues() { log.info("updateModelValues()"); User user = (User)Component.getInstance("user", true); assert user != null; user.setaNumber("A123456"); } @Override protected void invokeApplication() { UserEditor userEditor = (UserEditor)Component.getInstance("userEditor", true); String outcome = userEditor.createUser(); assert "success".equals(outcome); } @Override protected void renderResponse() { User user = (User) Component.getInstance("user", false); assert user != null; assert user.getId()>0; log.info("user -> "+user); } }.run(); } } {code} 8. Here is my problem (when invoking the maven-test plugin): {code} 14:22:39,891 INFO org.hibernate.impl.SessionFactoryObjectFactory.(addInstance:86) - Factory name: java:/appssoSessionFa ctory 14:22:39,907 INFO org.hibernate.util.NamingHelper.(getInitialContext:26) - JNDI InitialContext properties:{} 14:22:39,938 ERROR org.hibernate.util.NamingHelper.(getInitialContext:33) - Could not obtain initial context javax.naming.NamingException: Local server is not initialized at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.(InitialContext.java:175) at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:89) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:291) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176) at com.evergreen.userlinks.HibernateUtil.(HibernateUtil.java:23) at com.evergreen.userlinks.biz.UserLinkActionsTest.test_SessionStarter_add_delete_link(UserLinkActionsTest.java: 38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.battery.AbstractBattery.executeTestMethod(AbstractBattery.java:124) at org.apache.maven.surefire.battery.AbstractBattery.executeTestMethods(AbstractBattery.java:70) at org.apache.maven.surefire.battery.AbstractBattery.execute(AbstractBattery.java:49) at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) at org.apache.maven.surefire.Surefire.run(Surefire.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun
[JBoss-user] [JBoss Seam] - Re: SeamTest (TestNG), Maven 2, and Embeddable EJB3
Aw dang! I used Confluence markup tags instead of the BBCode tags - now my post is more difficult to deciper. :( (Help still?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952128#3952128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952128 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user