The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
database connection (unresolved sqlcxt) gfhgfnhhn UNIX for Advanced & Expert Users 3 3 Weeks Ago 06:44 AM
database connection failing from linux DILEEP410 UNIX for Dummies Questions & Answers 1 10-05-2007 07:07 AM
database connection ramneek High Level Programming 0 10-18-2005 04:14 AM
Database connection whartoner High Level Programming 2 01-15-2002 08:38 AM
Java program calling a UNIX command QUartz Ite UNIX for Dummies Questions & Answers 2 11-15-2001 05:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2005
uci uci is offline
Registered User
 

Join Date: Mar 2005
Posts: 3
Stumble this Post!
Connection problem with gui java program to postgreaql database using unix

Having problem in connecting my gui java program to postgreaql database. I first used setenv classpath /home/share/postgresql/java/postgresql.jarroj1, where proj1 is my folder conatining all java and class file, to set classpath. Then javac *.java. Then java proj1.Login. It gives me "java.lang.ClassNotFoundException: org.postgresql.Driver
", "java.lang.NullPointerException" and "Exception in thread 'main' java.lang.NoClassDefFoundError: Login"
so what is wrong with my command and what are the right commands?

PS: my db uses postgresql 7.4, my program involves jdk 1.4, I use x-window 6.0 to open the program, I am using ssh 3.2.9 to connect to unix server, and the os is solaris 8
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-16-2005
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
Well for starters Unix is case sensitive. The environment varible you should be using is CLASSPATH.

Secondly that usage is discourged by Sun in favour of invoking java as
java -classpath <insert you classpath here> MyApplication
Reply With Quote
  #3 (permalink)  
Old 12-15-2007
Registered User
 

Join Date: Dec 2007
Posts: 1
Stumble this Post!
Problem while connecting from WAS Server web application to unix box

Hi

I am very new to unix . please help me

I am trying to connect one remote AIX box from my webapplication by using ssh stuff to read the files and My WAS applicaiton server is resided in another AIX box.

This time I am facing the connection issue

whenever my application is trying to connect the remote aix box the
following exception is gettting even these two boxes are up and running fine and while pinging its working fine.

The host tigger is currently unknown to the system
1309282e SystemOut O
The host key (ssh-dss) fingerprint is:01:f6:9d:fb:92:e2:5b:db:16:c6:4f:d6:cc:8b:bf:e1
1309282e SystemOut O Do you want to allow this host key? [Yes|No|Always]: java.lang.NullPointerException

And in another issue I am trying to read some files to display it on the web its connecting the box fine but no data getting back the following
this could be ftp prob i think
messages are getting and finally

com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_DATA subsystem message
com.sshtools.j2ssh.subsystem.SubsystemClient Sending SSH_FXP_READ subsystem message
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.transport.TransportProtocolCommon Received SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.Service Routing SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_STATUS subsystem message
com.sshtools.j2ssh.subsystem.SubsystemClient Sending SSH_FXP_CLOSE subsystem message
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpSubsystemClient Waiting for response
com.sshtools.j2ssh.transport.TransportProtocolCommon Received SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.transport.Service Routing SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_STATUS subsystem message

com.sshtools.j2ssh.sftp.SftpSubsystemClient Received response
SRVE0026E: [Servlet Error]-[NonSecureServlet]: java.lang.NullPointerException


******* this is very urgent.

Please help me in this regard what is the problem. your suggestions greatful and appreciable.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0