[Installation, Configuration & DEPLOYMENT] - Re: Multiple data sources when using MySQL
by yashendrac
Hi,
I am also getting same error related to MySQL.
Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.destination:name=ObjectUpdates,service=Topic" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.destination:name=audit,service=Queue" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging.destination:name=report,service=Topic" is missing the following dependencies:
| Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
| Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:
| Dependency "jboss.jgroups:service=ChannelFactory" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jgroups:service=ChannelFactory' **")
|
Any Idea if commenting out following is safe?
<depends options-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends> in the file deploy/messaging/mysql-persistence-service.xml
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231746#4231746
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231746
16 years, 11 months
[Beginners Corner] - Multiple schema access
by ander.gborges
Hi People,
I am looking for a solution to my problem for days but I didnôt find anything that could really help me.
In my app I am using JBoss 4.2.3 GA and EJB3.
What I need:
Allow that each customer of my system (Today 5 but more than 2000 sooner) have it own database (Can be the same database but diferent schema). I mean, use the same entities and sessions.
I tryied to create the entityManager inside my stateless session, but without success. Today I was deep inside the jboss code looking for the code that instantiates the EntityManager when I put the code
| @PersistenceContext(unitName = "default")
| protected EntityManager entityManager;
|
because I realized that if I found this code, I would be able to change the unitName programatically and force JBoss to instantiate the correct EM and then I wouldnôt have to change any session or entity code.
I beg anyone to give me a north, could be links, concepts or any kind of example. I would really apreciate that.
Thanks in advance.
Anderson Geison Borges.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231741#4231741
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231741
16 years, 11 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: URGENT! java.lang.IllegalStateException: Failed to find
by tmac42
I've the same problem but i've fixed it.
i'm working with JBOSS 4.0.
personaly in my pc IIS services was running, and that was the problem, so i've stopped it : start -> configuration pannel -> administration tools -> services -> stop IIS
after that it works!! when I started the client
my client code :
public static void main(String[] args) {
| String str = "This is the string being counted in the EJB.";
| Hashtable environment = new Hashtable();
|
| environment.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
|
| environment.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
|
| environment.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
|
| Ccount cc = null;
| try {
| CcountHome home = CcountUtil.getHome(environment);
| cc = home.create();
| System.out.println(str);
| System.out.println(" Upper case: " + cc.upper(str));
| System.out.println(" Lower case: " + cc.lower(str));
| System.out.println(" Spaces: " + cc.spaces(str));
| System.out.println(" Total: " + cc.characters(str));
|
| } catch (Exception e) {
|
| e.printStackTrace();
|
| }
|
|
|
|
| }
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231735#4231735
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231735
16 years, 11 months
[EJB 3.0] - EJB3, JSF and Ajax: Exception when cleaning form object attr
by mvpc
Hello People!
I am having some trouble with a ajax form. After i have inserted the object on the database through ejb sessionbean and call a method to clean the jsf form by setting null the managed bean object attributes. I receive a message (Transaction Fail) from jsf PhaseListener mecanism, and the operation is undone.
My jsf form is something like this:
<h:inputText id="address" value="#{managedBean.email.address}" ></h:inputText>
Then i have a method that insert in the database through ejb sessionbean and set the email attribuetes to null, include the id.
After that i have a method that list the emails. At tgis point it throws an exception on the log, something like this:
javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of my.entity.Email was altered from 77 to null
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
at my.sessionbean.EmailSessionBean.list(EmailBean.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
.
.
.
.
The interesting thing is that I can perform the operation perfectly with other form with the same template. I think is something related with EJB objects beeing used ad the attribute on the jsf form.
So if anyone have any tip, please, let me know. I have searched through out the internet and found no solution.
Thanks!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231724#4231724
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231724
16 years, 11 months
[JBoss Portal] - Re: WSRP with Portlet Container only
by jhalmes
The JIRA priority got bumped down?! I was doing my bi-annual check in on this requested feature and found that JBPORTAL-2186 is now optional? I could have sworn it was high priority last time.
Apparently I'm the only person that wants to publish content from my application via WSRP standards without running a full portal, eh? There has to be at least 2 of us since I didn't open the original JIRA issue.
Seriously, I don't view this as a "feature" as much as a "design requirement" of a portlet container. Why should I have to run an entire portal server to serve up portlets via standards? I thought that was the whole point of the portlet container project? The Sun openportal and apache portlet container both included WSRP from the beginning so I've been expecting it to show up in the jboss container.
I was under the impression that this was going to be included in the "next version" of the portlet container but its been a year since I've been asking about this. I'm guessing by the priority you're not crazy about WSRP as a standard? Unfortunately I have a requirement so I'll have to choose between running the resource expensive portal just to server a single portlet which is really just a wrapper of an iframe back to my main app or switching to another server to host it. I don't like either option.
What would you do? I just need to be able to serve my content via WSRP to another portal. Am I barking up the wrong tree?
As for paying you for support, it would depend on how much and how fast I could get the feature. I'll send you $50 myself if you'll do it this week. If that's not enough I could pass the hat around the dev team, how much would it take? :)
-jasen
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231721#4231721
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231721
16 years, 11 months