I have a jdbc driver and using Dbeaver as client application.
How should i debug the jar.
I am using Intellij IDEA and there is option for remote debugging,
this is option available in intellij but i am not sure how to use it in Dbeaver.
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=7777
add it to dbeaver.ini file that located in dbeaver installation directory
Related
I am getting below error while trying to connect to a drillbit instance running on my RHEL box from DBeaver installed on my windows machine .
Can't create driver instance
Error creating driver 'Hadoop / Apache Drill' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'org.apache.drill.jdbc.Driver'
Error creating driver 'Hadoop / Apache Drill' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'org.apache.drill.jdbc.Driver'
org.apache.drill.jdbc.Driver
org.apache.drill.jdbc.Driver
I had previous downloaded file drill-jdbc-all-1.17.0.jar and in Edit Driver setting in libraries tab added this file and it had worked for me. I had also kept drill-jdbc-all-1.17.0.jar inside installation path of DBeaver DBeaver/plugins directory. Strangely this is not working now.
I had Clicked "Add File" in Edit Connection ( Libraries tab ) to add single jar file drill-jdbc-all-.jar. Depending on situation people can "Add Folder" to add folder with Java classes/resources and "Add Artifact" to add Maven artifact (see below).
After I added jar files I was able to find all JDBC driver classes which present in these jars. Just click on the "Find Class" button and DBeaver will show all of them. In most cases there is just one driver class in the driver. Then i clicked ok and Entered port number on the other page and tried to reconnect and was able to connect fine. Also this link could be helpful.
https://dbeaver.com/docs/wiki/Database-drivers/
One thing to add...
If you're having difficulty connecting, try the following connection string with your hostname:
jdbc:drill:drillbit=localhost
This is maybe not an issue for who knows how config.sh work when you config weblogic after you installed it into your disk.
My question is: After I installed weblogic 12cR2. How I can add a customer JDBC driver jar file into weblogic 12cR2 before I run config.sh as when I do config, system need use it to connect my database?
I tried to put it in:
$ORACLE_HOME/oracle_common/modules/db2jcc4.jar
and then, I add the full driver jar file path into java class path with this file:
$ORACLE_HOME/oracle_common/common/bin/commExtEnv.sh
Then I restart my Mac and then, redo config.sh to set up component datasource (em module need it) for RCU. Weblogic blaming driver not found.
but, if I start weblogic server by using $DOMAINH_HOME/startWebLogic.sh. weblogic can find that driver in the path.
What's wrong I did? Please advise!
You don't have to change "commExtEnv.sh". In Weblogic 12c you can create a file called "setUserOverrides.sh" in order to customize the Weblogic starting paramters like the classpath. In your case you could have something like this:
# add custom libraries to the WebLogic Server system classpath
if [ "${POST_CLASSPATH}" != "" ] ; then
POST_CLASSPATH="${POST_CLASSPATH}${CLASSPATHSEP}$ORACLE_HOME/oracle_common/modules/db2jcc4.jar"
export POST_CLASSPATH
else
POST_CLASSPATH="$ORACLE_HOME/oracle_common/modules/db2jcc4.jar"
export POST_CLASSPATH
fi
The "setUserOverrides.sh" must be placed in the bin folder of your domain, where setDomainEnv.sh, setStartupEnv.sh and startWebLogic.sh reside.
You can find more information here in the Oracle documentation: http://docs.oracle.com/middleware/1212/wls/START/overview.htm#START250
The docs for the Workload Scheduler for Node.js says:
"Important: Before running a database step, download and install the
JDBC database client driver on the agent where you want to run the
step. Specify the client jar file path in the JDBC jar class path."
How can I download and install the necessary JAR files to the agent? I see from this question that they should be installed at /home/wauser/utils, but I cannot figure out how to access the agent to install.
I tried an FTP step to move the file to the agent, but it was also unsuccessful.
From your description I assume your are trying to run SQL steps on the xx_CLOUD agent.
Where is the database running and which type of database is it? is it on Bluemix or somewhere else?
Currently the best way to run SQL steps is to use a workload scheduler agent installed on a VM or a docker image, so that you can easily install the jdbc jar files.
Ok, I think I tried everything before I am posting this question. Please tell me, what I am (Still) missing. I keep getting "unable to connect" exception (unable to connect hostname:6012), I changed from default port 1099 and it still didn't help.
version of IntelliJ 14.0.2
Tomcat 7.0.52
Tomcat is running as a service so, I configured on the UI interface of tomcat.exe (java tab) the following JAVA_OPTs
-Xdebug
-Xrunjdwp:transport=dt_socket,address=57497,server=y,suspend=n
-javaagent:C:\Users\username\.IntelliJIdea14\system\groovyHotSwap\gragent.jar
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=6012
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcatalina.home=C:\Tomcat 7.0
-Dcatalina.base=C:\Tomcat 7.0
-XX:MaxPermSize=512m
I made sure the port 57497 is open (open the firewall and telnet).
And on IntelliJ, I made a remote server connection. Please find attached
pictures. Both intellij and tomcat are running on the same system. I have a static dns setup. sometimes i get connection timedout exception.
server tab
connection tab
Here's my config.
Tomcat JAVA_OPTs to enable remote debugging:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5007
In IntelliJ, I don't use the Configuration-Type 'Tomcat'. In my case 'Remote' works pretty well (I would post an image but I ain't got 10 reputation...). You only need to configure your host and port on the config sheet.
I use IntelliJ 14.0.3 and I had the same issue, though with Jetty. Switching to using the remote instead of jetty -> remote worked. I'm guessing they're both supposed to work differently. I just haven't figured out why there are two different options to remote debug.
I have a dynamic web project which I run locally on tomcat. We have a linux based production server which is accessed via host, port username and password.
Earlier, I had a windows machine and I used WinSCP for transferring the war to the webapp folder of tomcat in linux machine. But now, we have got a mac machine to work and I am unable to find a similar way(or any other easier) to deploy my application war onto the production.
What is the best way to deploy the war in the above mentioned scenario? I am unable to find any WinSCP equivalent for mac and also don't know the use of any other SFTP client to be used in mac.
Please suggest.
I am unable to find any WinSCP equivalent for mac and also don't know the use of any other SFTP client to be used in mac.
"Equivalent"?
If you're using WinSCP on Windows, why not use scp, the command-line tool that ships with OS X?