Some Beans are null
Posted: Fri Feb 18, 2011 11:49 am
Hi,
As you recall I am new to spring, but I read up on it quite a bit, and I do like the idea, I finally figured out how to integrate it with my framework (Wicket, I need to use a different type of annotation (SpringBean)) - not too difficult in the end. And I have no more errors using BroadLeaf except....
this like other services report to be be null:
@SpringBean(name="blCustomerService")
private CustomerService customerService;
Now, I should note that the following is not null as I understand:
@SpringBean(name="blPersistenceUnitManager")
private MergePersistenceUnitManager mpum;
Besides having all the jars I also have the following files:
applicationContext.xml (in WEB-INF) (and a properties file for the sql data).
persistence-container.xml (in META-INF)
I can copy the files here but they are similar to the examples.
Now I have been looking through the demos etc... but there are quite a few xml files and I am not sure which I need and which I don't.... I am not sure if I am missing something glaring like a file or something is simply not working in the code. Btw, I am using Glassfish if that is an issue.
I appreciate anyone trying to make heads or tails of this....
Matthew
As you recall I am new to spring, but I read up on it quite a bit, and I do like the idea, I finally figured out how to integrate it with my framework (Wicket, I need to use a different type of annotation (SpringBean)) - not too difficult in the end. And I have no more errors using BroadLeaf except....
this like other services report to be be null:
@SpringBean(name="blCustomerService")
private CustomerService customerService;
Now, I should note that the following is not null as I understand:
@SpringBean(name="blPersistenceUnitManager")
private MergePersistenceUnitManager mpum;
Besides having all the jars I also have the following files:
applicationContext.xml (in WEB-INF) (and a properties file for the sql data).
persistence-container.xml (in META-INF)
I can copy the files here but they are similar to the examples.
Now I have been looking through the demos etc... but there are quite a few xml files and I am not sure which I need and which I don't.... I am not sure if I am missing something glaring like a file or something is simply not working in the code. Btw, I am using Glassfish if that is an issue.
I appreciate anyone trying to make heads or tails of this....
Matthew