Trisummit Technologies

Build a Struts Application with Maven

Maven is a build tool for Java based web apps – plain and simple.
Before learning about Maven I did my builds using Ant. And when it came to building webapps, I was always frustrated about getting things in source control in such a way that all of the developers could build their apps no [...]

java.sql.SQLException: No suitable driver – JDBC

This should be a very simple problem, but finding the solution does not always jump out at you based on the tutorials out there.
When doing a JDBC connection for SQL Server you may have the following line of code:

String sqlServerConnectionString = "jdbc:sqlserver://10.0.0.233:1433;
databaseName=mydatabasename;user=sa;password=mypassword";
Connection con = DriverManager.getConnection(sqlServerConnectionString);

Then you go to run it and run into the [...]

New Content Types for Office Files

Here it is 2009 and we have finally confronted this problem. We had some users trying to upload Office 2007 files into the Jive application and the uploads were not sticking. After researching the problem, I determined the problem had to do with the content types being named something larger than the varchar2(50) [...]

./java_ee_sdk-5_05-linux.bin: error while loading shared libraries: libstdc++.so.5

This one stumped me for some time. I was trying to simply install the Sun version of the JDK onto a VMWare instance of Red Hat ES4 and I kept coming upon this error. I initially figured it must be a dependency issue and I tried all sorts of things to get it [...]

Div Tags in Front of Javascript Pull Down Menus

I was working on a wiki for one of the Quest Communities called http://wiki.activeroles.quest.com. This wiki is using Media Wiki which is an Open Source wiki built on PHP. In customizing the look and feel to this wiki to make it look like its parent community site, I ran into an issue with [...]

Setup Hibernate in a Swing Application

Hibernate works very well in Swing Applications. This page is intended to help you get started in implementing Hibernate with Swing. This particular example is set up in a database environment using Oracle 10g. However, this setup will work perfectly in other database enviroments by simply modifying the database connection information.
1. Download the latest [...]

org.hibernate.MappingNotFoundException: resource: /Entry.hbm.xml not found

Ran across this error while building the Swing application with Hibernate. Originally, the Entry.hbm.xml file was placed deep in the directory structure next to the java class called Entry.java. Several ways of naming the xml file where tried. The only solution that worked in this case was to move the file outside of the classpath [...]

java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter

Ran across this error while setting up an application using Hibernate. After googling it some, I came across a thread (in Spanish) referencing the need to include the cglib-2.1.3.jar. That may have fixed the problem; nevertheless, the problem had to do with not including all of the hibernate jar files found in the hibernate-3-X-X.ga.zip file. [...]

No connection properties specified – the user must supply JDBC Connections

Was trying to get setup with Hibernate and ran into the following error and stack trace:

INFO: using JDK 1.4 java.sql.Timestamp handling
Dec 26, 2007 11:40:40 AM org.hibernate.connection.UserSuppliedConnectionProvider configure
WARNING: No connection properties specified – the user must supply JDBC connections
Exception in thread "AWT-EventQueue-0" org.hibernate.HibernateException: Hibernate Dialect
must be explicitly set        
    at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)        
    at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)        
    at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)        
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)        
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)        
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)

This error [...]

mysqldump: Got error: 1146: Table ‘databasename.tablename’ doesn’t exist when doing LOCK TABLES

Ran into this error tonight while copying tables from one database into another.
I was using the mysqldump command as follows:
mysqldump -h localhost -u username -p –add-drop-table wildernessgear wp_31_term_relationship /home/bnettles/wp_31_term_relationship.sql
This command was supposed to export just the one table wp_31_term_relationship. I had already exported the 30 previous tables in the database. All [...]