Hello, I'd like to add my 2 cents to this.
I'd like to be able to set multiple @IfProfileValue annotations on a test class or method, so I can do some ORring or ANDing with multiple name elements.
...
Type: Posts; User: khote; Keyword(s):
Hello, I'd like to add my 2 cents to this.
I'd like to be able to set multiple @IfProfileValue annotations on a test class or method, so I can do some ORring or ANDing with multiple name elements.
...
Are you using a ContextLoaderListener, configured somewhere else in the web.xml? Are you using struts or tiles or some other servlet-type framework?
which database are you using?
I recently worked with someone with a similar problem, they were using MySQL. You can declare the database charset UTF8, it will hold any characters you want in their...
tell us more about your build. Are you using a MANIFEST.MF, are you telling it where the classpath is, what's in it? application.xml, what's in it?
and I don't know if the double "//" in...
give us some more details. Where is your app running, a web app, ejb, standalone? How did you build it, ant, maven?
what is in your log4j.xml, have you declared any appenders in it?
I encountered this problem in our shop, typically people declare an interface, as in public interface MyDao. Then an implementation, MyDaoImpl for example.
In your unit tests are you
public...
public void setAsText(String[] text) {
logger.info("in setAsText" + text.toString());
Category cat;
cat=categoryDao.getCategoryById(Integer.valueOf(text[0]));
...
You might want to check out http://sequoia.continuent.org/HomePage
It handles connection pooling, distributed transactions, and replication - which is what your (ii) sounds like.
I see in your comment that you created a file called "formvalidation.js", but that in your in script tag you called it "formvalidate.js" ...
there's also the possibility that your webroot is not...
Well, no answer. I can tell you what I did to get past this problem though.
I'm the new guy on this contract so I don't get to decide how session beans are deployed ... not being an expert with...
I'm using a legacy EJB stateless session bean jboss-4.0.4. when I make it directly using initialContext it seems to work.
When I use the following configuration I get the stacktrace below. ...
How about a nested loop, where the inner loop executes some arbitrary "batch commit size", keeping track of how many have been committed. I've used such a method when I was trying to fine-tune the...
I went through BeanUtils. For the level of abstraction I needed it just didn't do the trick. CustomPropertyEditors - the spring way of handling them is much better, plus it allows you to configure...
I had a standalone java project where it was useful to map certain pojos to records in a fixed-record file, some of these files containing 900,000 records. Java.nio, all of that, basically mapping...
I use something like this to talk to db2:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
lazy-init="true">
<property...
be flexible. if Request is a domain object with a getId() method:
public void changeRequestStatus(Request request, Status status) {
changeRequestStatus(request.getId(), status);
}
public...
I've had luck with PropertyOverrideConfigurerp. I extend the class, overriding the property setters/getters. Use this as a BeanFactoryPostProcessor, and refresh your context with it. In my...
I guess my first question is about the procedure, can you show us the declaration of your procedure.
Does your CREATE PROCEDURE statement declare: DYNAMIC RESULT SETS 1
Are you opening the...
Is there any way you can specify the schema in your jdbc url? Many databases allow you to do this, for example I use this for a db2 project ...
Describe your build environment. Eclipse, Maven, maven2, ant? Describe your test environment as well.
I've had good success using HttpUnit to emulate a web environment. You can use your own web.xml, use a test version. If you declare your datasource in a separate context it's easy to use HSQLDB as...
PropertyPlaceholderConfigurer doesn't have any getters, but you can extend it yourself adding the getter methods you want. Use your extension as the class in your context.
I extend/override PropertyOverrideConfigurer as a BeanFactoryPostProcessor, refreshing the context. PropertyPlaceholderConfigurer requires those properties files and is implemented during a...
How complex are the elements in your countries.xml? Are you using this file strictly for injection or does it have other uses in your application?
Take a look in the spring reference A.2.2.5
...
Is your unit test extending AbstractTransactionalSpringContextTests? You actually have to declare your transaction manager bean to have id="transactionManager"