[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
I think, yes. When I use it with internet connection, works fine, but when without internet, there is an error. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031262#4031262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031262 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Separate database for jBPM
So when you say "separate database" I assume you have multiple persistence units defined in persistence.xml (and components.xml if you're using Seam managed). Did you specify the unitName attribute for the EntityManager in your @PersistenceContext? Otherwise, how would the container know which to use? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031260#4031260 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031260 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Email Function Error when running Jboss web applicaiton with
Greeting I have a Java web applicaiton running on jboss applicaiton server in linux environment. I also run James for mail server. The web application has an email function. When I run it, it got the following error: < MAIL FROM:<[EMAIL PROTECTED]> 250 ok RCPT TO:<[EMAIL PROTECTED]> 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) DEBUG SMTP: Invalid Addresses DEBUG SMTP: [EMAIL PROTECTED] DEBUG SMTP: Sending failed because of invalid destination addresses ---> In addition, 1. In the same environment, I run a stand alone Java email application with James (i.e. without JBOSS), the email function works fine. 2. In my local machine (Windows XP), I run the same JBoss web application with James, the email function works fine. 3. I am using james v 2.2.0, jboss 4.0.2. 4. [EMAIL PROTECTED] is my real yahoo email account. Do I need configure jboss and/or james somewhere to solve the problem? Or I maybe miss something else. Any advices are really appreciated! Best, Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031256#4031256 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031256 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Compliance of the EAR of the booking demo?
It's an ugly, ugly hack to get JARs on the classpath of an EAR. The only reason to tolerate it is that doing it in the "correct" way is even uglier. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031254#4031254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Weird console problem
On jboss4.0.5+EJB3+jbossws1.2 we installed jbpm3.2 console. We duplicated (copy and paste of the whole jboss dir) this instance - On a redhat : it works - On a WinXP : it works - On another WinXP (mine :( ) I get this exception | java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory | at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263) | at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142) | ... | and cannot see the console. We have the same DB JAVA_HOME point to jdk5.0.11 in all configs Any idea ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031253#4031253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Scheduled TaskInstances within a ProcessInstance?
it seems like a common thing to want to be able to do... for now i have tried adding the attributes i need to Task and that seems to be working well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031251#4031251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Compliance of the EAR of the booking demo?
Hi all, Is there a reason for application.xml in the booking demo ear to declare el-api.jar and el-ri.jar as client modules? Because those 2 jar's aren't actually client modules and they don't have a main-class entry in theirs MANIFEST.MF I am not sure if it doesn't violate the jee spec? Or is this just a JBoss specific configuration until JBoss 5 is released? Can anybody comment on this? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031250#4031250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM : Couldn't be that complicated...
Hi We are fighting for making jbpm work on jboss4.0.5 + EJB3 RC9 patch 1 + jbossws 1.2 for weeks... And no success yet. Among things we tried we removed javassist.jar from the console (at least we can see the console) We are now struggling with the transitions in decision nodes. Whatever we put in the condition (using ... or ) jbpm always takes the first one ! What about creating a page somewhere to get jbpm work with jboss4.0.5 ? I don't think it is a really fancy idea since the 4.0.5 is the latest production quality release. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031249#4031249 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Separate database for jBPM
Could you please give a simple example of config required to run the dvd store example in a way that jBPM uses a separate database (ie NOT the orders database)? I have tried several combinations of multiple persistence-units + @PersistenceUnit and also leveraging the components.xml file (as per chapter 4 of the doc). Exceptions seem to be suggesting that the annotations are being ignored (ie empty unitName on EntityManager's persistence unit). PS I think this is a big step in the right direction. I have only just started playing with Seam. The examples are pretty impressive and I have a couple running in Eclipse. The documentation is getting there too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031247#4031247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031247 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble with @DataModelSelection
Happy now! A manual clean up of deployment folders, rebuilding from scratch and restarting JBoss cured the problem. (And in case you have not spotted it - in the code above - the call to log in the select() method does not output anything because of a missing #0 in the template string - but that was also where I had my breakpoint - thought it worth mentioning... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031246#4031246 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: ServiceMBeanSupport in the Microcontainer world
Service load? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031245#4031245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble with @DataModelSelection
And here is the xhtml: | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich"; | template="layout/template.xhtml"> | | Spaces page | | | | | | | | | | | | Wanted Public Space Name: | | | | | | | | | | | | | name | | | | created | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031241#4031241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble with @DataModelSelection
Here is the local interface (sans imports and headers): | @Local | public interface UserSpacesLocal | { | public void destroy(); | | public void getAvailableSpaces(); | | public String getSpaceInput(); | public void setSpaceInput(String space); | public String addSpace(); | public String nextPage(); | public String prevPage(); | public String firstPage(); | public String lastPage(); | public int getPageSize(); | public String getFirst(); | public void setFirst(String first); | public void select(PublishingSpace selectedSpace); | public void setSelectedSpace(PublishingSpace space); | public PublishingSpace getSelectedSpace(); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031239#4031239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trouble with @DataModelSelection
Here is the action bean: | @Stateful | @Scope(SESSION) | @Name("userSpaces") | @TransactionAttribute(REQUIRED) | @Restrict("#{s:hasRole('user')}") // Forces check that user is logged in | public class UserSpacesAction implements UserSpacesLocal, Serializable | { | | private static final long serialVersionUID = -3722438832731142648L; | | @PersistenceContext | private EntityManager em; | | @In("currentUser") | private User m_currentUser; | | private String m_spaceInput; | | @SuppressWarnings("unused") | @DataModel("availableSpaces") | private List m_availableSpaces; | | @SuppressWarnings("unused") | @DataModelSelection | @Out(required = false) | private PublishingSpace selectedSpace; | | | private String m_first; | private static int PAGESIZE = 10; | | @Logger | private Log log; | | @SuppressWarnings("unchecked") | @Factory("availableSpaces") | public void getAvailableSpaces() | { | log.debug("Get User space for user #0", m_currentUser.getLogin()); | | m_availableSpaces = em.createQuery( | "SELECT DISTINCT s.publishingSpace FROM SpaceAccess s WHERE s.theUser = :user").setParameter("user", | m_currentUser).getResultList(); | | log.debug("Got a List back empty=#0", Boolean.valueOf(m_availableSpaces.isEmpty())); | } | public PublishingSpace getSelectedSpace() | { | return selectedSpace; | } | public void setSelectedSpace(PublishingSpace space) | { | selectedSpace = space; | } | public String addSpace() | { | // create the full "public.xxx" name and check that it is a | // valid space name | // | String tmpSpace = "public."+m_spaceInput; | if(!SpaceNameValidator.isSpaceNameValid(tmpSpace)) | { | FacesMessages.instance().add("spaceInput", "Invalid space name"); | return null; | } | // Check if space exists | // | if(PublishingSpace.exists(em, tmpSpace)) | { | FacesMessages.instance().add("spaceInput", "Space name already taken - use something else."); | return null; | } | | // Add objects | // | log.debug("Adding space for public.#0", m_spaceInput); | PublishingSpace p = new PublishingSpace("public."+m_spaceInput); | p.setDateAdded(new Date()); | SpaceAccess sa = new SpaceAccess(m_currentUser,p, Boolean.TRUE); | em.persist(p); | em.persist(sa); | log.info("Added space #0 for user #1", p.getSpaceName(), m_currentUser.getLogin()); | getAvailableSpaces(); | lastPage(); | // Clear this value for new input | m_spaceInput = ""; | return null; | } | | public void setSpaceInput(String space) | { | m_spaceInput = space; | } | | public String getSpaceInput() | { | return m_spaceInput; | } | public void select(PublishingSpace space) | { | selectedSpace = space; | log.info("selectedSpace=", space == null ? "null" : space.getSpaceName()); | } | public String nextPage() | { | System.err.print("NEXT PAGE first="+m_first); | if(m_availableSpaces != null) | { | int tmp = getIntFirst() + PAGESIZE; | | if(tmp <= m_availableSpaces.size()) | setIntFirst(tmp); | } | return null; | } | public String prevPage() | { | setIntFirst(Math.max(0, getIntFirst() - PAGESIZE)); | return null; | } | public String firstPage() | { | setIntFirst(0); | return null; | } | public String lastPage() | { | if(m_availableSpaces != null) | { | int lastIdx = m_availableSpaces.size() -1; | if(lastIdx >= 0) | { | int tmp = lastIdx / PAGESIZE; | setIntFirst(tmp * PAGESIZE); | } | } | return null; | } | public String getFirst() | { | return m_first == null ? "0" : m_first; | } | public void setFirst(String first) | { | m_first = first; | } |
[jboss-user] [JBoss Seam] - Re: seam-gen error
I've just come across something similar. I'm using fabForce DBDesigner4 to generate a model and then export to a database. If I use a many to many relationship DBD4 models it with a table representing the relationship with only two foreign keys and generate-entities then uses @ManyToMany. I added a single column to the table design representing the relationship and generate-entities no longer uses a @ManyToMany. Hope this helps. Andy. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031237#4031237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Trouble with @DataModelSelection
I am having trouble with using @DataModelSelection - I end up with an empty object when something is selected. I am using seam 1.2GA, and Ajax4JSF + Rich Faces. (Will post code as I am stuck) Greatful for any help or suggestions... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031236#4031236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
"[EMAIL PROTECTED]" wrote : nonononono! | | @In java.util.ResourceBundle resourceBundle; Oops! I will try it tonight. Thanks a lot Gavin. Have a nice weekend View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031235#4031235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
"[EMAIL PROTECTED]" wrote : Did you try the obvious, ie: | | #{messages[keyController.keyname]} I have not, just thought about it while posting this topic. :) Will do... Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031230#4031230 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
"petemuir" wrote : You are probably after the Messages component (which you access in JSF as #{messages[key]}). | | You could do Messages.instance().get(key) or @In(#{messages[key]} String value or @In Map messages; For the front end, I specify the view-id in pages.xml such as Then I have a editFlightInfo_en.properties under WEB-INF/classes/scheduler then on editFlightInfo.xhtml, I can do things like "#{messages.keyname}" where the keyName is in editFlightInfo_en.properties. However, how Seam know which view-id I am referring to (or which resource bundle file) from the java side? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031234#4031234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
nonononono! @In java.util.ResourceBundle resourceBundle; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031231#4031231 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
"[EMAIL PROTECTED]" wrote : @In Map messages; | | or | | @In ResourceBundle resourceBundle; | I tried this actually @In private ResourceBundle resourceBundle; then resourceBundle.getBundle().getBundle("editFlight").getString("planeName"); But I got NPE at runtime and it turned out resourceBundle is null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031229#4031229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
Did you try the obvious, ie: #{messages[keyController.keyname]} View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031228#4031228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Selectable linklist without
It must be a DataModel, not a plain List. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031227#4031227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
You are probably after the Messages component (which you access in JSF as #{messages[key]}). You could do Messages.instance().get(key) or @In(#{messages[key]} String value or @In Map messages; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031225#4031225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
Another question I have is, is there any way to use a dynamic keyname in the front end? For exmaple: #{messages[#{keyController.keyname}]} ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031226#4031226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get ResourceBundle message from backend using Sea
@In Map messages; or @In ResourceBundle resourceBundle; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031224#4031224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen error
seam-gen does not support many-to-manys, I'm not sure exactly what conditions cause Hibernate Tools to create them, but it can probably be turned off. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031223#4031223 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to get ResourceBundle message from backend using Seam?
I get it to work on facelet pages, however, no idea how to do it from java class. It might work like: String flightName = ResourceBundle.getBundle("bundleName").getString("key"); Then in the class path, I have bundleName_en.properties which has the value. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031222#4031222 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm_log description/ query for information
I would like to be able to find the path of execution for a process instance by reading the jbpm_log table. in addition, for each entry, I want to know the processinstance, taskinstance, process node, variable names and values. Is there a field definition listing for this table someplace so that I could create a query? I noticed in the jbpm3.1 datamodel that jbpm_log.class_ is Bool, yet in my schema it is char(1). I would particularly like to know what class_ relates to, as I see I, R, U, T, A, X, Z, N, S values in that column, but dont know what they are or relate to. Is there some easy way to get the information listed above in a query so I can validate / unit test the application. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031220#4031220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Deploying jbpm-enterprise.ear from jbpm-jpdl-suite-3.2.B
Hello there! Did you succeed on this procedure? I'm really getting upset with jbpm and its "documentation".. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031219#4031219 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen error
It was the many to many relationship. I can duplicate this problem in all of my schemas. Simply create three tables. Table A, Table B, Table C. Table A and Table C have a many to many relationship. Table B is the link between them that just contains Table A and Table C primary keys with foreign key constraints to the appropriate tables. Then run seam generate-entities - I can't think of a scenario where this is something specific to my environment, but maybe I am missing something. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031218#4031218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - How to solve circular dependencies in JBoss 4.0.5GA?
Hello all, I have two stateless session beans that exchange data with each other. If I were to declare EJB injection (@EJB tag) of each other in the beans, the container would complain: anonymous wrote : 14:37:58,625 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | State: NOTYETINSTALLED | I Depend On: | jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | Depends On Me: | jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | | ObjectName: jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | State: NOTYETINSTALLED | I Depend On: | jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | Depends On Me: | jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | Is there a way around this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031217#4031217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - How to solve circular dependencies in JBoss 4.0.5GA?
Hello all, I have two stateless session beans that exchange data with each other. If I were to declare EJB injection (@EJB tag) of each other in the beans, the container would complain: anonymous wrote : 14:37:58,625 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | State: NOTYETINSTALLED | I Depend On: | jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | Depends On Me: | jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | | ObjectName: jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3 | State: NOTYETINSTALLED | I Depend On: | jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | Depends On Me: | jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3 | Is there a way around this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031216#4031216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Please help: problem with running the hotel booking example
Greetings, everyone! I am having a problem running the booking example: every time I typed in a username and tabbed into the next textbox "Name", the browser takes me into the seam debug page; and there are some exceptions thrown (attached below) saying "Exception while invoking expression #{register.invalid}". Does this mean that it can't find a component named "register"? I am running the booking example in JBoss Eclipse IDE 2.0.0 Beta2 and I followed the below wiki article to set it up in Eclipse. I also extracted a working booking EAR that is built by running the ant build script and compared the file structure and they are identical to each other. Any idea/hint? Thanks, Tong | 17:12:42,731 ERROR [SeamPhaseListener] uncaught exception | javax.faces.el.EvaluationException: Exception while invoking expression #{register.invalid} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165) | at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58) | at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75) | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:106) | at org.jboss.seam.pages.Page.enter(Page.java:226) | at org.jboss.seam.core.Pages.enterPage(Pages.java:269) | at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:242) | at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:193) | at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:57) | at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213) | 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 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:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
One more thing. You can now move the wsdlLocation from the interface to the class. This way, you do not have to modify the generated files (not a big deal in this example, but a real big deal if you have many endpoints and are generating the stubs quite often). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031214#4031214 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Selectable linklist without
I have a List of items stored in a session bean and i've created a link list on the page. When I click on the link, I want to transfer the underlying item to the action methode. I used enhanced EL for that purpose, but the parameter of methode selectModule() is always 'null'. | | | | | | | | | @Stateful | @Name("configSelector") | @Scope(ScopeType.SESSION) | public class ConfigurationSelectorImpl implements ConfigurationSelector { | | @Logger private Log log; | | private ArrayList moduleList = new ArrayList(); | | @Out(required=false) | private Module selectedModule; | | @SuppressWarnings("unused") | @Create | public void initModuleList() { | moduleList.add(AdminModule.getInstance()); | } | | public ArrayList getModuleList () { | return this.moduleList; | } | | public void selectModule(Module pModule) { | this.selectedModule = pModule; | log.info("#0 selected", this.selectedModule.getName()); | } | | @Destroy @Remove | public void destroy() {} | | } | I can't use because I do not want to render the list in a table. I'm surely missing something. Please help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031213#4031213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031213 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Rpc client
you need to drop 4.0.2 as it does not support complex data types. 4.0.3SP1 works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031212#4031212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Scoped classloaders question
If your both applications are on the same JAR... as JNDI is set to use byReference... you will get a reference to classes on messging.sar. So.. you will need these classes in your client jar if you were using callByValue. Now.. if you need callByValue on JNDI for any reason.. then you will need to scope your client with messaging libraries... but this is more complicate. We are looking forward to synchronize versions of aop and remoting on jboss 4.2 what would eliminate the need of scoping messaging, what would make its usage easier. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031210#4031210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Where is Hibernate Config?
I am setting up the latest version of JBoss and trying to enable show_sql=true but I don't seem to see hibernate.cfg.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031207#4031207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - NegotiateKerberos
I try to following the instruction http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos but I got following error | 16:47:10,109 INFO [ServiceConfigurator] Problem configuring service jboss.security:service=JaasSecurityManager | org.jboss.deployment.DeploymentException: Exception setting attribute CallbackHandlerClassName = org.jboss.web.tomcat.security.AdvancedWebCallbackHandler on mbean jboss.security:service=JaasSecurityManager; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/WebCallbackHandler) | at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698) | at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332) | at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | at org.jboss.system.ServiceController.install(ServiceController.java:226) | 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:597) | 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.install(Unknown Source) | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | 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:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:490) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.NoClassDefFoundError: org/jboss/web/tomcat/security/WebCallbackHandler | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(ClassLoader.java:620) | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) | at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) | at java.net.URLClassLoader.access$000(URLClassLoader.java:56) | Can someone help me to identify which Jar file I missed? thanks, Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031206#4031206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Scoped classloaders question
Alrighty, but even if I get a reference to a class from a different classloader, I still need the remote interface implemented by that instance to be in the client classloader right? Which JAR would I have to include in my client application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031203#4031203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam/hibernate search
What do you mean by messy? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031202#4031202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help: Seam PDF NPE??
That document is fine. I'd guess you have a configuration error. Are you able to use the document servlet like the itext example does? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031200#4031200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seampay, few questions....
http://docs.jboss.com/seam/1.2.0.PATCH1/reference/en/html/framework.html#d0e5643 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031199#4031199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seampay, few questions....
Hi, I just look on seampay example and found somethink like this: | @Name("paymentHome") | public class PaymentController extends EntityHome { | | @RequestParameter Long paymentId; | @In PaymentProcessor processor; | | @Logger Log log; | | public String saveAndSchedule() | { | String result = persist(); | what is: EntityHome and where can I find some doc about this EntityHome, its in jar lib: import org.jboss.seam.framework.EntityHome; second: String result = persist(); what is persist() and again, what that do and where can i find some info about that? It's similar to em.persist();? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031198#4031198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Scoped classloaders question
"georgesberscheid" wrote : Hmm, that WIKI entry confuses me a little. How would my deployed application be able to access the client libraries if they are deployed in a scoped classloader that's different from the application's? | | Indeed, I get the following exception when I try to open a JMS Topic Connection: | TopicConnectionFactory factory = (TopicConnectionFactory) initialContext.lookup("ConnectionFactory"); | | topicConnection = factory.createTopicConnection(); | | topicConnection.start(); | java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor | | at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141) | | at org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182) | | at org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100) | | at org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72) | | at org.jboss.aop.ClassInstanceAdvisor.(ClassInstanceAdvisor.java:75) | | at org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java) | | at org.jboss.jms.client.delegate.ClientConnectionDelegate.start(ClientConnectionDelegate.java) | | at org.jboss.jms.client.JBossConnection.start(JBossConnection.java:144) | | I'm using JBAS 4.0.5 and CallByValue is set to false in /server/default/deploy/naming.sar/META-INF/jboss-service.xml | | Thanks, | Georges That's why we ask JNDI set callByReference... then your client will get a handle to another class loaded in a different classLoader what should be okay. This exception you're getting is a bug we are fixing early next week.. about classLoading isolations on aspects... if you download sources from the SP branch it should be already fixed... but we don't have a release yet... this should be out over the weekend/early next week.! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031197#4031197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031197 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: ServiceMBeanSupport in the Microcontainer world
How do you demand a service load then? I checked out the tests and it wasn't immediately clear. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031193#4031193 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031193 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jBPM : Couldn't be that complicated...
Hello there! For the last 6 hours I've been fighting again jBPM and the documentation (or total lack of it) regarding customizing an installation. jBPM is an awesome product, no doubt of that, but only if you intend to use it with the starter kit. We are a Red Hat Partner, and we have a real nice SOA prospect in hands. Im defining a process execution example/environment setup for the customer, and it's been a nightmare so far. I'm trying to get the 3.2 ear version to work (I need to deploy on a standalone jboss), and I've spent the entire day looking at this forum. There's so many flaws on the docs regarding installation. 1st : The queues: If you plan to install the enterprise as standalone, there's no mention the the queues you have to create... 2nd: Database... I read the chapter 8, followed every single step, just to start, the scripts on the 3.2 simply does not work. After all tables get created, the values inserted into JBPM_ID_USER are not enough to grant you enough privileges, there's some relationship missing I'm not the type that only throws rocks, I'd like to contribute, I'm still fighting against the deployment, and I'm volunteering to help in the wiki as soon as I figure out how to get jBPM 3.2 to work in a standalone jboss instance. Could anyone tell me what else do I need after creating the users? Which other tables should I fill? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031188#4031188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031188 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Access services from other application
Hello, I developed one application (.ear) and it has two services and some Entity Beans. Now I´m developing another application, and I want use the services of my first application. Wich the better way top access the services from the old application? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031186#4031186 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031186 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Datasource failover, sudden disconnection not working
Correct, I had to add a parameter in the connection url, I set the socketTimeout in 5000 milliseconds in this way: jdbc:mysql://192.168.10.210:3306/POK2?socketTimeout=5000|jdbc:mysql://192.168.10.219:3306/POK2?socketTimeout=5000 For anyone looking at mysql failover, take a look at here: http://dev.mysql.com/doc/refman/5.0/es/connector-j-reference-configuration-properties.html (Not exactly mysql failover, but very usefull) Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031185#4031185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031185 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Associate Entity Beans from different applications
Hello, I developed one application (.ear) and it has two services and some Entity Beans. Now I´m developing another application, and I want use the services of my first application and some entity beans too. Wich the better way to associate the entity beans of my first application with the entities of my actual application? I tried to reuse the database, but I have some errors. Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031184#4031184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031184 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Problems with authentication
Hello, I developed one application (.ear) and it has two services, both use the same security domain. Now I´m developing another application, and I want use the services of my first application. In my actual application I´m using another security domain and when I try to acess som methods of the first application occur an Authentication Failure. How can I do the authentication to use the services of my first application? Thank You!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031182#4031182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Can't access session facade bean
Problem solved. Even though it wasn't in the jar... it was in WEB-INF/classes Took it out of there and problem solved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031181#4031181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Can't access session facade bean
Also I did make sure that the jar file that contains my SessionEJBBean, SessionEJB, SessionEJBLocal is not in the WEB-INF/lib directory of my webapp.war (it was at one time) so as not to have problems with the classloader. It is only in the ear file. But I am still having the same problem. I am casting the interface and not the implementing class which I believe is the right thing to do. Can't get past this. Can anyone help? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031180#4031180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Queue - I can send but cannot receive
With connection.start() everything works fine. Connection con = cf.createConnection(); | con.start(); //new line | Session session = con.createSession(false, Session.AUTO_ACKNOWLEDGE); I had some problems when i added connection.stop() method to my code. So i removed stop() method call, and again everything works corectly. Best regards vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031179#4031179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031179 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Exception when completing a task in websale example
This was in the stdout log before the stack trace... 12:04:50,976 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks == 12:05:01,538 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 12:05:13,131 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks == 12:05:13,131 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 12:09:19,184 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks == 12:09:19,184 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 12:09:30,059 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks == 12:09:30,106 ERROR [FacesServlet]:250 - Servlet.service() for servlet FacesServlet threw exception ... and this is from the catalina log... Mar 23, 2007 12:02:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\dev\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\jEdit Mar 23, 2007 12:02:57 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 23, 2007 12:02:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 422 ms Mar 23, 2007 12:02:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 23, 2007 12:02:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Mar 23, 2007 12:02:58 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Mar 23, 2007 12:02:58 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive console.war Mar 23, 2007 12:02:58 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for context 'null' Mar 23, 2007 12:02:58 PM com.sun.faces.spi.InjectionProviderFactory createInstance WARNING: JSF1033: Resource injection is DISABLED. Mar 23, 2007 12:02:59 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Mar 23, 2007 12:02:59 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Mar 23, 2007 12:02:59 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/16 config=null Mar 23, 2007 12:02:59 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Mar 23, 2007 12:02:59 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1859 ms Mar 23, 2007 12:04:18 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container. Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/ajax4jsf.jar!/META-INF/a4j.taglib.xml Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr WARNING: /common/template.xhtml @56,71 name="tiid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr WARNING: /common/template.xhtml @57,63 name="tdid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr WARNING: /common/template.xhtml @58,74 name="piid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui
[jboss-user] [J2EE Design Patterns] - Integrating services
I have one aplication (.ear) who use two services. Now I´m developing other aplication and I want to use the services of the first aplication that I developed. Wich the best way to develop this new aplication and use the services of the previus aplication? How can I reuse the entity beans of the first application? thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031172#4031172 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031172 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Exception when completing a task in websale example
Here's the stack trace... javax.servlet.ServletException: Servlet execution threw an exception org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) root cause java.lang.NoSuchFieldError: FORCE org.jbpm.graph.node.Join.execute(Join.java:105) org.jbpm.graph.def.Node.enter(Node.java:318) org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter() org.jbpm.graph.def.Transition.take(Transition.java:151) org.jbpm.graph.def.Node.leave(Node.java:393) org.jbpm.graph.def.Node.leave(Node.java:357) org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:120) org.jbpm.websale.ShipItem.execute(ShipItem.java:59) org.jbpm.graph.def.Action.execute(Action.java:122) org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.def.Action$$EnhancerByCGLIB$$ffa54cd3.execute() org.jbpm.graph.def.Node.execute(Node.java:338) org.jbpm.graph.def.Node.enter(Node.java:318) org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter() org.jbpm.graph.def.Transition.take(Transition.java:151) org.jbpm.graph.def.Node.leave(Node.java:393) org.jbpm.graph.def.Node.leave(Node.java:368) org.jbpm.graph.node.Fork.execute(Fork.java:140) org.jbpm.graph.def.Node.enter(Node.java:318) org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter() org.jbpm.graph.def.Transition.take(Transition.java:151) org.jbpm.graph.def.Node.leave(Node.java:393) org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209) org.jbpm.graph.node.TaskNode$$FastClassByCGLIB$$923668a4.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$be1107e9.leave() org.jbpm.graph.exe.Token.signal(Token.java:194) org.jbpm.graph.exe.Token.signal(Token.java:165) org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$3059b833.signal() org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:478) org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:417) org.jbpm.taskmgmt.exe.TaskInstance$$FastClassByCGLIB$$cb2c21af.invoke() net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161) org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$6cbc6eb4.end() org.jbpm.webapp.tag.tf.ui.TaskForm$TaskFormActionListener.processAction(TaskForm.java:282) javax.faces.event.ActionEvent.processListener(ActionEvent.java:77) javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758) javax.faces.component.UICommand.broadcast(UICommand.java:368) org.jbpm.webapp.tag.tf.ui.AbstractTaskFormButton.broadcast(AbstractTaskFormButton.java:51) org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274) org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250) org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405) com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031170#4031170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031170 ___ jboss-user mailing list jboss-user@lists.jboss.org http
[jboss-user] [EJB/JBoss] - Can't access session facade bean
I don't understand why I am getting a classcastexception... >From the rmx console | +- SDS_DATA (class: org.jnp.interfaces.NamingContext) | | +- SessionEJB (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy97 implements interface org.usiis.model.SessionEJBLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | +- remote (proxy: $Proxy96 implements interface org.usiis.model.SessionEJB,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | My java code | import javax.naming.Context; | import javax.naming.InitialContext; | | import org.usiis.model.SessionEJB; | import org.usiis.model.SessionEJBLocal; | | public class ContextManager { | | private final String oc4jRemote = "SessionEJB"; | private final String bossRemote = "SDS_DATA/SessionEJB/remote"; | private final String bossLocal = "SDS_DATA/SessionEJB/local"; | | public ContextManager() { | } | | | public SessionEJB getRemoteContext ()throws Exception { | final Context context = new InitialContext(); | //SessionEJB b = (SessionEJB) context.lookup(oc4jRemote); | SessionEJB b = (SessionEJB) context.lookup(bossRemote); | | return b; | } | | | public SessionEJBLocal getLocalContext() throws Exception { | final Context context = new InitialContext(); | SessionEJBLocal b = (SessionEJBLocal) context.lookup(bossLocal); | | return b; | } | The error | | 2:35:36,674 ERROR [STDERR] java.lang.ClassCastException: $Proxy97 | 2:35:36,674 ERROR [STDERR] at org.usiis.view.backing.ContextManager.getLoca | Context(ContextManager.java:30) | | Can anyone explain why the cast is not working? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031168#4031168 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031168 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Forcing JBossWS to use a different Java class for a QNam
NM. I had an incorrect setting in jaxrpc. This works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031167#4031167 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031167 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Access to SLSB threadpool - throttling EJB usage
I expose a public API that is backed by a SLSB. As these are publicly available in an environment where multiple tenants are accessing the application, I would like to throttle API usage for each user. My thought is if I could access a threadlocal or context setting for SLSBs in the pool, I could determine how much concurrent usage is happening in my system. 2 questions: 1) Is there a better approach to accomplishing this? 2) If this technique is as good as any, how can I access the thread pool and/or SLSB pool during a request in order to make this work? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031166#4031166 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Log4j conflicts and classLoading nightmare in jboss 4.0.
Did you see the isolating section here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration | | | com.example:loader=unique-archive-name | | java2ParentDelegation=false | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031163#4031163 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031163 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen error
As a follow-up, I am able to run seam generate-entities against other databases, even databases with hundreds of tables, successfully. I am confident that everything is configured correctly and no stray jars are creating the problem. The only difference I can find between the schema causing the error and the schemas that work correctly, is the schema with the error has multiple many to many relationships - although the Entity beans are created correctly with proper mappings before this error occurs. If anyone has experienced this error - or who has any ideas as to how to solve this problem I would greatly appreciate it. It will save me a ton of typing. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031161#4031161 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031161 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Queue - I can send but cannot receive
What happens with Connection.start() ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031160#4031160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help: Seam PDF NPE??
Hi., Thanks for ur response. anonymous wrote : | What does your document look like? | Actually first i tried the lists.xhtml (with binding) from itext example but then I thought that might be a problem, so i removed all tags and just left some some static elements like this | http://java.sun.com/jsf/facelets"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:p="http://jboss.com/products/seam/pdf";> | | List examples | | Basic list: | | I think its something to do with configuration becos whatever the elements (static/dynamic), it throws the same error. If you like i could also send my web.xml file. Please note that I'm using Tomcat with embedded microcontainer. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031159#4031159 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031159 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Newbie question : Process Instances
Thanks for your reply. Sorry for the typo :P Well pessimist locking should not be an issue, we are more interested in long term process, not so much on concurrency. The cool thing we need is to have two applications (say check-in and billing) having access to the same process Best regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031156#4031156 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031156 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Help: Seam PDF NPE??
What does your document look like? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031155#4031155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Farm Deployment with UDP not working
Try increasing ucast_recv_buf_size and mcast_recv_buf_size to more than 10MB. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031151#4031151 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: HASingletonDeployer
The BarrierController was only added in 3.2.8. See http://wiki.jboss.org/wiki/Wiki.jsp?page=BarrierController. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031150#4031150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031150 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Problem consuming web services
Further research leads me to believe that you are running JDK 6.0. Don't. Use 5.0 instead. JDK 6.0 comes with an implementation of SOAPMessage that spits out the error that you posted. JBossWS comes with its own implementation of SOAPMessage which is not being used because the one from the JDK takes precedence. Run with a 1.5 JVM and you should be just fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031148#4031148 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031148 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM3.1 Beta2: comparing hibernate proxies against the r
Using jBPM with Spring and Hibernate, I am sometimes getting: java.sql.BatchUpdateException: ORA-02291: integrity constraint (JBPMUSER.FK_LOG_TASKINST) violated - parent key not found When signalling/ending a task. Only sometimes though, and seemingly randomly. I'm using Hibernate 3.1 still. I havent traced through yet, but if others have experienced similar issues please share your war stories. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031143#4031143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Help: Seam PDF NPE??
Hi., I just followed seam itext example to create and render a PDF page but unfortunately NPE. I just have a form with s:link like | | | | Please see below for stack trace: | 18:04:04,486 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase. | java.lang.NullPointerException | at org.jboss.seam.pdf.DocumentStorePhaseListener.sendContent(DocumentStorePhaseListener.java:45) | at org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:37) | at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:126) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | 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.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:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) | at java.lang.Thread.run(Thread.java:595) | Envirnoment: Seam 1.1.6 GA; Facelets; Ajax4Jsf_1.0; Myfaces 1.1.5; Tomahawk 1.1.3 Any help would be appreciated. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031142#4031142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Problem consuming web services
Which JVM are you using? Try running the app server with the -verbose:class JVM option. This will print out the jar file for each loaded class, perhaps there is a web services-related jar file hiding somewhere in your classpath or in some endorsed directory that is causing this problem (look for javax.xml.soap.SOAPMessage). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031141#4031141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Problem consuming web services
The only files on the WAR are the manifes.md, web.xml and the .class of the webservices (there are 2 web services, both of them give me the same error) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031138#4031138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Help: BPEL designer
Well, there is also the NetBeans Enterprise Pack which supports BPEL, WSDL and XML Schema authoring. Looks good, although the near-term plans that Koen and I have are to integrate with the Eclipse editor first. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031137#4031137 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031137 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Persistence Context vs. Seam-managed persistence context
It's one of the best reasons to use Seam :) It's harder to get LIEs. Everyone should use it, there's no reason not to. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031134#4031134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Persistence Context vs. Seam-managed persistence context
Thanks for your reply ! Do you advice Seam managed EntityManager because it's simpler ? more powerful ? both ? Is it an advice for a newcomer (then for me ;-)) ? Or an advanced user (then for me in a few times ;-)) ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031132#4031132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
Are you sure? I have Internet here and I don't think that's actually accessed... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031130#4031130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:link bug?
I tried @DataModel but this has other side effects that I don't want. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031129#4031129 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JDBCCacheLoader config
Ok thanks mucho. Yes my thought was the cache load would get too large without a cacheloader, hence it would offload via the jdbccacheloader into mysql, then re-get from there as needed (in a prepped state). With a large data set, I assumed there would be much to gain from that. So with hibernate it'll just reload from the db after passivation, same as the jdbc loader, fine. A good ref cache config file for jboss/hibernate: http://fisheye.jboss.com/viewrep/JBoss/JBossCache/etc/META-INF/hibernate-recommended-config.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031128#4031128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031128 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - HOW t o get parameter (big5 code in taiwan)
my portlet class /* * oper.java * * Created on 2007?3?15?, ?? 11:42 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package org.fedora; import org.jboss.portlet.JBossActionRequest; import org.jboss.portlet.JBossActionResponse; import org.jboss.portal.api.node.event.PortalNodeEvent; import org.jboss.portal.api.node.event.PortalNodeEventListener; import org.jboss.portal.api.node.event.PortalNodeEventContext; import org.jboss.portal.api.node.event.WindowActionEvent; import org.jboss.portal.api.node.PortalNode; import org.jboss.portal.WindowState; import org.jboss.portlet.JBossPortlet; import org.jboss.portlet.JBossRenderRequest; import org.jboss.portlet.JBossRenderResponse; import org.jboss.portal.api.node.PortalNode; import org.jboss.portal.api.node.PortalNodeURL; import javax.portlet.*; import javax.portlet.PortletException; import java.io.IOException; import javax.portlet.PortletRequestDispatcher; import java.text.SimpleDateFormat; import java.util.Date; import org.gotdns.fedora.client.*; import org.jboss.portal.common.util.CollectionBuilder; import org.jboss.portal.identity.UserModule; import org.jboss.portal.identity.User; import org.jboss.portal.identity.RoleModule; import org.jboss.portal.identity.Role; import org.gotdns.fedora.client.*; import org.jboss.portal.identity.IdentityException; /** * * @author kevnlin */ public class oper extends JBossPortlet { private static final String JSP_PATH = "/WEB-INF/jsp"; private org.gotdns.fedora.client.operationclient home; /** Creates a new instance of oper */ private String oid=""; private String opname=""; private String opdesc=""; private String oplink=""; private String disable=""; private String opmode=""; public void processAction(JBossActionRequest req, JBossActionResponse resp) throws PortletException, PortletSecurityException, IOException { opmode= req.getParameter("opmode"); // if(opmode == null ){opmode="list";} // resp.setProperty("opmode",opmode); resp.setRenderParameter("opmode",opmode); opname=req.getParameter("opname");if(opname == null){opname="";} opdesc=req.getParameter("opdesc"); if(opdesc == null){opdesc="";} disable=req.getParameter("disable"); if(disable == null){disable="";} oplink=req.getParameter("oplink"); if(oplink == null){oplink="";} oid=req.getParameter("oid"); if(oid == null){oid="";} resp.setRenderParameter("oid",oid); System.out.println(opname); //String tt=new String(opname.getBytes(),"utf8"); String tt=""; // tt=new String(tt.getBytes(),"utf-8"); // System.out.println(tt); tt=new String(opname.getBytes("MS950"),"utf-8"); System.out.println(tt); tt=new String(opname.getBytes("utf-8"),"MS950"); System.out.println(tt); // System.out.println(new String(opname.getBytes("ms950"),"utf-8")); // System.out.println(new String(opname.getBytes("utf-8"),"mf950")); } protected void doView(JBossRenderRequest req, JBossRenderResponse resp) throws IOException, PortletException { System.out.println(opname+"VIEW"); String opmode=""; opmode= req.getParameter("opmode"); if(opmode == null){opmode="";} resp.setProperty("opmode",opmode); resp.setContentType("text/html;charset=UTF-8"); javax.portlet.PortletRequestDispatcher pRD =null; if(opmode.equals("list")){ pRD = this.getPortletContext().getRequestDispatcher( JSP_PATH + "/op/opview.jsp"); }else if(opmode.equals("view")){ pRD = this.getPortletContext().getRequestDispatcher( JSP_PATH + "/op/opdetail.jsp"); }else{ pRD = this.getPortletContext().getRequestDispatcher( JSP_PATH + "/op/opview.jsp"); } pRD.include(req,resp); } protected void doEdit(JBossRenderRequest req, JBossRenderResponse resp) throws IOException, PortletException { System.out.println(opname+"EDIT"); oid=req.getParameter("oid"); if(oid == null){oid="";} SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss"); SimpleDateFormat formatter = new SimpleDateFormat("-MM-dd"); java.util.Date opdate=new java.util.Date(); String tmp=""; tmp=formatter.format(opdate); String opmode=""; opmode= req.getParameter("opmode"); System.out.println("opmode=" + opmode); if(opmode == null){opmode="";} resp.setProperty("opmode",opmode); resp.setContentType("text/html;charset=UTF-8"); // resp.setContentType("text/html;charset=UTF-8"); javax.portlet.PortletRequestDispatch
[jboss-user] [JBoss Seam] - Re: s:link bug?
Correction, use @DataModel to outject it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031126#4031126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031126 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
Just to be clear which versions I'm using: Boss 4.2.0.CR1 jbossws-1.2.0.GA (build=200703010320) java 1.5.0_11-b03 Here are the final files. EchoService.wsdl (note the \ tag near the bottom) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Congrats! You have published your own WSDL! | | | | | web.xml (note specifies the imple): | | http://java.sun.com/xml/ns/j2ee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; | version="2.4"> | | | echo | echo.EchoImpl | | | | echo | /* | | | Echo.java (note wsdlLocation added by hand to @WebService) package echo; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.xml.ws.RequestWrapper; | import javax.xml.ws.ResponseWrapper; | | | /** | * JBossWS Generated Source | * | * ... | * JAX-WS Version: 2.0 | * | */ | @WebService(name = "Echo", targetNamespace = "http://echo/";, wsdlLocation="META-INF/wsdl/EchoService.wsdl") | public interface Echo { | | | /** | * | * @param arg0 | * @return | * returns java.lang.String | */ | @WebMethod | @WebResult(targetNamespace = "") | @RequestWrapper(localName = "echo", targetNamespace = "http://echo/";, className = "echo.Echo_Type") | @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://echo/";, className = "echo.EchoResponse") | public String echo( | @WebParam(name = "arg0", targetNamespace = "") | String arg0); | | } | and finally EchoImpl.java (not the portName) package echo; | | @javax.jws.WebService(endpointInterface="echo.Echo", portName="EchoPort") | public class EchoImpl implements Echo | { |public String echo(String arg0) |{ | return arg0; |} | } And for completeness, the war structure META-INF/ | META-INF/MANIFEST.MF | META-INF/wsdl/ | META-INF/wsdl/EchoService.wsdl | WEB-INF/ | WEB-INF/classes/ | WEB-INF/classes/echo/ | WEB-INF/classes/echo/Echo.class | WEB-INF/classes/echo/EchoImpl.class | WEB-INF/classes/echo/EchoResponse.class | WEB-INF/classes/echo/Echo_Type.class | WEB-INF/classes/echo/ObjectFactory.class | WEB-INF/classes/echo/package-info.class | WEB-INF/web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031124#4031124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:link bug?
Whether you understand it or not, I wouldn't expose that business method to the view. Make it an accessor for the list instead. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031120#4031120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: ServiceMBeanSupport in the Microcontainer world
"genman" wrote : | Does a call to ControllerContext.getTarget() demand-load the bean? | No. OnDemand has other usage. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031121#4031121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: ServiceMBeanSupport in the Microcontainer world
No. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031118#4031118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen and @GeneratedValue
Thanks Gavin and Max. I'm looking at seeing how I can design the sight around what you generate without tweaking the generated stuff, java and xhtml. That way it should make changes to the datamodel as painless as possible. Andy. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031116#4031116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
Alright, I got it working. First I changed my web.xml to use the impl bean: echo.EchoImpl per this discussion: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70837 where Diesler says: anonymous wrote : So this is trying to instanciate an interface. Your web.xml should contain the endpoint impl bean not the SEI. Is that the case? but then I got this error: 9:55:24,824 ERROR [ServiceEndpointDeployer] Cannot create service endpoint | rg.jboss.ws.WSException: Cannot find port in wsdl: {http://echo/}EchoImplPort So then I remembered: https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#2.1%20javax.jws.WebService%7Coutline specifies: anonymous wrote : javax.jws.WebService.portName - The wsdl:portName So I tried to change Echo.java to declare the port, but I got an error: 09:56:05,683 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss/jboss-4.2.0.CR1/server/default/deploy/echo.war | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (org.jboss.ws.WSException: @WebService[portName,serviceName,endpoi | ntInterface] MUST NOT be defined on: echo.Echo) So I changed EchoImple.java: @javax.jws.WebService(endpointInterface="echo.Echo",portName="EchoPort") | public class EchoImpl implements Echo | | Now it works and it still serves out my wsdl. I'm not sure if this is a bug or not because the docs here https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#2.1%20javax.jws.WebService%7Coutline say: anonymous wrote : endpointInterface - The qualified name of the service endpoint interface. This annotation allows the separation of interface contract from implementation. If this property is specified, all other WebService properties are ignored as are all other 181 annotations. Only the annotations on the service endpoint interface will be taken into consideration. The endpoint implementation class is not required to implement the endpointInterface. Which I take to mean the other parameters (portName) should be ignored if endpointInterface is specified. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031115#4031115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re:
Same here. Anyone know aprox. when will the SP1 release be available? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031114#4031114 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Could not instantiate Seam component - Hibernate Session Err
Hi, i'm using Jboss-4.2.0 and Seam 1.2, get this error, can somebody help me 11:54:10,312 WARN [lifecycle] Could not instantiate Seam component: searchContractFrontController org.jboss.seam.InstantiationException: Could not instantiate Seam component: searchContractFrontController at org.jboss.seam.Component.newInstance(Component.java:1708) at org.jboss.seam.Component.getInstance(Component.java:1611) at org.jboss.seam.Component.getInstance(Component.java:1578) at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53) at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:100) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45) at org.apache.el.parser.AstValue.getTarget(AstValue.java:42) at org.apache.el.parser.AstValue.invoke(AstValue.java:127) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.ejb.EJBException: java.lang.RuntimeException: java.lang.ClassCastException: org.jboss.ejb3.entity.ExtendedHibernateSession] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org
[jboss-user] [Microcontainer] - Re: ServiceMBeanSupport in the Microcontainer world
One more question, regarding the new on demand feature .. Does a call to ControllerContext.getTarget() demand-load the bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=403#403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=403 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Providing your own wsdl instead of the generated one.
"ngtdave" wrote : | 07:39:04,886 INFO [ServiceEndpointManager] WebService started: http://127.0.0.1:8080/echo | | 08:31:07,730 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | | java.lang.InstantiationException: echo.Echo | | at java.lang.Class.newInstance0(Class.java:335) | Alright, I get this error without the wsdlLocation change I made, so it's not that. BTW I'm using JBoss 4.2.0.CR1 with jbossws-1.2.0.GA (build=200703010320) and java 1.5.0_11-b03 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031108#4031108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: facesMessages.addToControl and h:message not working wit
Fixed my own problem. I should return null from the action method when I want to stay on the same page. Oops! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031104#4031104 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: security in UI
Or on s:fragment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031103#4031103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:link bug?
I've got a like this: | | Nested inside are some elements as you'd expect. I want to include an in one of the columns but before I did that I noticed that 'jobListHandler.jobList' was getting called twice to render the table only once. As it's making a database call I'm not happy about this, but it gets worse. If I add this code inside one of the tags then 'jobListHandler.jobList' gets called twice (as before) and once for each and every table row displayed (a total of 13 times in this case): | | | | Why is this happening? Am I misunderstanding the usage of and/or ? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031102#4031102 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: security in UI
Wow I must be blind. RTFM -- anonymous wrote : The rendered attribute can generally be used on the control itself, or on a surrounding or control. Sorry for the noise! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031101#4031101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Some bugs inside jboss remote jdbc adapter.
I use - jboss-4.0.5 - ojdbc14.zip - Oracle9i - WindowsXP I have found some bugs inside jboss when I access datasource remotly. 1. The code bellow throws NullPointerException when the blob field is empty. failed on org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService:553 | Blob blob = resultSet.getBlob(column.name()); | bytes = blob.getBytes(1, (int)blob.length()); | 2. The same code above does not return the contains of the blob when the blob is field. 3. There is a failue on org.jboss.resource.adapter.jdbc.remote.SerializableInputStream:266 Correction should be | return read(b, 0, b.length); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031099#4031099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to get reqest parameter [multi lang -for Big5 (ta
Please open a new topic, the first post broke this thread we cannot read anything. Always put code between [ code ] [/ code] in this forum, thanks. (without spaces in the "tags"). Use the preview button to see your topic before posting I will delete this topic. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031098#4031098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Getting user and group information from withing a portle
Thanks, that answers my question. I'm wondering why there is no user object in the Portlet spec. I guess that would then lead to a group object and so on. But I think this is a question for another forum. Thanks for the help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031097#4031097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - security in UI
Sorry, this more of a JSF than Seam question... If I've got an arbitrary block of JSF code I'd like to hide based on some security API call, what is the best component to wrap it in and slap a render attribute on? h:panelGroup works, but is there anything better? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031096#4031096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031096 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user