localhost startup for CPAS

CPAS Forum (Inactive)
localhost startup for CPAS <1374>  2006-07-19 18:03
Status: Closed
 
i got this error when trying http://localhost:8080/cpas.
i've attached the error.log

need help with the error.

thx

 
 
adam responded:  2006-07-20 15:14
CPAS/Tomcat can't communicate with your PostgreSQL service. Is the PostgreSQL service running? Can you communicate with it using pgAdmin III? Did you change the default port that PostgreSQL uses to communicate? If so, you'll need to specify this port in the jdbc url in cpas.xml.

Leave PostgreSQL running and restart Tomcat. It could be a timing problem where CPAS started up and attempted to connect before PostgreSQL was done starting. If that's the problem, you should be able to make the CPAS Tomcat service depend on PostgreSQL. The exact steps vary by operating system.

Adam

 
<1374> responded:  2006-07-20 19:56
i faced a new problem again.
i've attached the error.log

so is CPAS/Tomcat communicating with PostgreSQL right now?

any guidance is greatly appreciated. thanks

 
adam responded:  2006-07-20 23:02
Yes, they are communicating now. What is your configuration? You must be doing a manual install… but what operating system? What version of PostgreSQL?

The error message is fairly straightforward. The CPAS SQL scripts use a standard stored procedure language called PL/pgSQL. CPAS apparently created the new database, but PL/pgSQL is not installed by default on your PostgreSQL installation. So, you need to enable PL/pgSQL for the "cpas" database using CREATE LANGUAGE. The exact steps for doing this vary by PostgreSQL version… you can look it up in the PostgreSQL docs or use pgAdmin III to create the language.

Note: if you install on Windows using the graphical installer then all of this should be configured automatically.

 
<1374> responded:  2006-07-21 00:10
yes finally it works thanks
 
adam responded:  2007-01-04 09:28