Java is absolutely a valid choice! J2EE and good framework will give you all you need to make a robust e-commerce website with transactional support. However, java has a steep learning curve, setting up a java stack is not as easy as a lamp stack and hosting is more difficult to find, so be warned.