How to set the CLASSPATH for an Sql Server 2005 database... help me please
Hello! Guys I want to access a Sql Server 2005 database from Java.I've downloaded the JDBC 2.0 driver from Microsoft.I've copied the sqljdbc4.jar file to C:\Java\jdk1.6.0_14\db\lib.And I've added this to the classpath C:\Java\jdk1.6.0_14\db\lib\sqljdbc4.jar.The classpath variable is defined as a user variable.Well the point is that I get that nasty exception:Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.So if you know how to help me,please do so.Thank you :)
Hi Timo,
My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
my code below
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
if(oamessagecheckboxbean != null)
oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
FirePartialAction firepartialaction = new FirePartialAction("change");
oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
oapagecontext.writeDiagnostics(this, "setting fire event", 1);
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processFormRequest(oapagecontext, oawebbean);
oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
if(bean!=null){
bean.setRendered(Boolean.TRUE);}
Thanks,
Malar
Similar Messages
-
How to set the classpath for external .jar files after importing?
Hi techs,
How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
urgentI got it.
after importing the jar file to the perspective,we need to right click on project name, go to proprties,
goto java build path,
there we need to include the external jar files. -
How to restore the Password backup in sql server 2005
How to restore the Password backup in sql server 2005
Hello,
THANKS............ BUT
I executed this query
RESTORE DATABASE new_data1
FROM DISK = 'd:\UK_DETAILS.bak'
with password ='selfinity123'
WITH MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.mdf',
MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.ldf'
I got the error
Msg 319, Level 15, State 1, Line 4
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon. -
How to convert the following query to sql server 2005
hi
i have the following query in ms access and i want to convert it into sql server 2005 express edition
SELECT iif(Max(BNo) is null,1,Max(BNo)+1) AS BNo from ( SELECT iif(Max(Product.BNo) is null,0,Max(Product.BNo)) AS BNo FROM Product union all SELECT iif(Max(grndetail.BNo) is null,0,Max(grndetail.BNo)) AS BNo FROM grndetail UNION ALL SELECT iif(Max(srdetail.BNo) is null,0,Max(srdetail.BNo)) AS BNo FROM srdetail ) as t
how to do thisThe construct involving case when MAX sounds suspicious. Can you explain what the query is supposed to be doing, the structure of your table, then we can re-write it?
E.g. if you provide your table, some data and desired result, you'll get better answer than direct translation of this suspicious query.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
How to set the classpath for servlet and jsp???
i add C:\tomcat-5.0\common\lib\servlet-api+jsp-api to the class path from DOS prompt, as show below:
set CLASSPATH=%classpath%;C:\tomcat-5.0\common\lib\servlet-api.jar;C:\tomcat-5.0\common\lib\jsp-api.jar
then, i compile the servlet:
javac FirstServlet.java
no error
and i copy the .class file into C:\tomcat-5.0\webapps\servlets-examples\WEB-INF\classes
i set the JAVA_HOME enviroment variable as below:
set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
i start the tomcat version 5.0 and run web browser and type http://localhost:8080/servlets-examples/servlet/FirstServlet
i get the error message:
HTTP Status 404 - /servlets-examples/servlet/FirstServlet
type Status report
message /servlets-examples/servlet/FirstServlet
description The requested resource (/servlets-examples/servlet/FirstServlet) is not available.
Apache Tomcat/5.0.30
Can anybody tell me how to solve the problem. Thanks a lot.You will have to create the servlet mapping in the Web.xml file
<servlet>
<servlet-name>FirstServlet</servlet-name>
<servlet-class>FirstServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FirstServlet</servlet-name>
<url-pattern>/servlet/FirstServlet</url-pattern>
</servlet-mapping> -
Setting up datasource for MS SQL SERVER 2005 Express
Can anyone offer me a little help
I have SQL 2005 Express Edition installed on the same machine
as CF
I've been into it and enabled TCP/IP and NAMED PIPES
I've set TCP port to 1433
I've created a login account called CF and enabled both SQL
and Windows authentication
I've created a database called coldfusionDB
I've set windows firewall to make an exception for that port
In CF Administrator I'm using the supplied Microsoft SQL
driver. Can someone tell me what to put in the fields for the
datasource ? I have the following:
Port = 1433
DATABASE = coldfusionDB
SERVER = DESKTOP\SQLEXPRESS
the Error I'm getting back from CF Administrator is:
* Connection verification failed for data source:
cfclientstore
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver][Macromedia][SQLServer JDBC Driver]The requested instance is
either invalid or not running.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC
Driver]The requested instance is either invalid or not running.Try:
Server = localhost\sqlexpress
Database = coldfusionDB
Port = 1433
Also verify that the SQL server service has started.
These links may also help:
http://www.adobe.com/go/kb400255
http://www.mattwoodward.com/blog/index.cfm?event=showEntry&entryID=01930619-FD0A-4F02-31B1 BFC7D1D9A44C -
How to recover the deleted job in sql server 2005
Hi
one of the user accidently deleted the job.and i want to recover the job.i have msdb backup,can i restore the database backup?
please advice the prosess for recovering the deleted job
koteswarraoYou can but be careful.
Restore the database as MSDB_Restored and then query sysjobs, sysjobsteps and sysjobschedules to get the details of your job and then use the detail to recreate the Job.
Tony C -
How to set the classpath and path from the jsp to call java class function
Hi Exprets,
I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
If any one know how to achieve it, please reply as soon as possible.
thanks in advance,
swapna soni.It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
1. How costly is the query retrieving the data from the database?
If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
2. Are there chances for the data to become stale within a session?
In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
3. How many data sets does the session already holds?
If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
4. Does the server employ some kind of caching mechanism?
Using session cache can definitely improve performance.
You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
Thanks,
Shakti -
How to set the classpath in CVM?
Hi everybody,
experimenting with the J2ME Personal Profile Runtime Environment on a Linux PC I wonder how to set the classpath. The command line options only allow me to set the bootclasspath.
My original problems deals with determining the codebase for a class that is contained in a jar.
1) If I put this jar into the bootclasspath, that class is found and can be loaded, but the codebase (retrieved using class.getProtectionDomain().getCodeSource) is NULL.
2) If I put it into the classpath by using the command line option -Djava.class.path=... the class cannot be found by the ClassLoader.
3) If I put the jar into both, the classpath and the bootclasspath, the latter one is applied and result 1) shows up.
Any idea how to work around this?@see http://forum.java.sun.com/thread.jsp?forum=8&thread=410868
-
How to set the classpath in windows operating system
hi,
how to set the classpath in window operating system
i want this help for setting the classpath for the tomcat
please help me
thank you
darshan soniOpen autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas -
How to set the CLASSPATH in Unix Server
Hi, everyone~
Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
I wonder is the hp-ux support jsp and servlet or not?
In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
regards,
tzeyikTomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD -
How to enable root on mac on 10.9.2 and how to set the password for the same ?
how to enable root on mac on 10.9.2 and how to set the password for the same ?
http://support.apple.com/kb/ht1528
Follow the steps for Lion.
But, why are you doing this? I've never found the need to do that. -
How to set the Classpath of the Manifest to use jars which are included?
Hi,
I want to set the classpath for jars which are included in another jar, wihich I want to execute. At the moment I unzip them and include them afterwards, but there should be a more handy way to do this.
Please post an example of a Classpath declaration for the Manifest, assuming the jars are at the top level of the archive.
If it shouldn't be possible do that, please explain me why.
Perhaps it might be diffuclt for java to decide if a classpath location starts with the current-dir or the current-jar, but I assume that there is a special syntax to sort out such probems.
Thanks a lot in advance.
Greetings MichaelJava's classloader doe not support jars within jars. There are some 3rd part solutions, one is "one jar" at sourceforge. Search for others.
-
How much Memory should be allocated to SQL Server 2005
Hi,
I have a SQL Server 2005 installation on a server having 64GBof RAM.
SQL server is allocated 57GB of the available RAM.
Could you please tell me what would be the ideal RAM allocation for my scenario. is the one that is set now, fine.
How much RAM should be left for the OS and other processes to run?
I have around 8 databases on the server and the cumulative size of all the databases in about 800GB, these are highly used servers, used for a public domain.Umesh,
Saeid and Uri has already given you good articles to refer to please read them. Reg SQL Server utilization I am sure you are referring to task manager which is always not correct place to look for memory utilization. Below link has query which will give
you SQL Server memory utilization
http://blogs.msdn.com/b/sqlsakthi/archive/2011/02/28/t-sql-script-to-monitor-memory-usage-by-sql-server-instance.aspx
Article provided by Uri will give you not absolute value but almost correct value, but since you asked absolute value you need to look at performance counter to reach at correct memory utilization. If you refer to section 'Does my SQL server has low memory'
in article which Saeid gave you will find list of counters to monitor for memory utilization use the counters to reah absolute value.
>>OK, Can high RAM utilization by sql server cause the OS to restart by any chance.
IMO its not possible I have never seen SQL server being cause for OS shutdown. SQL Server works in non preemptive mode and will yield memory to OS when required. One possibility is when SQL server has locked pages in memory(LPIM) and some rouge process
or driver starts using memory from OS heavily and since SQL server memory is locked( due to LPIM privilege) it cannot trim heavily resulting in OS to terminate but this is not because of SQL server but because of bad drivers and processes leaking
memory on OS.
SQL server using memory is normal behavior
>>This question seems vague, but I had to ask this, because my server restarts abruptly and I don't get valid reasons in the Logs for that matter.
Does SQL server starts abruptly or windows OS ? Please look at event viewer for more details and SQL server logs. Is your SQL Server 2005 patched to SP4
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
How do I configure Tuxedo 8.1 with SQL Server 2005 database?
Hi,
Currently using Tuxedo 8.1 (64bit) on SUN Solaris 8.
1. I want to know whether I can configure a SQL Server 2005 database in my current Tuxedo domain?
2. Are there any BEA useful links for examples?
3. Known problems?
Any other useful information
Regards SamHi
Thanks for your reply.
I build the TLOG using following:
tmadmin ?c
crdl -b 500 -z c:\tuxedo\envs\sqlpoc\tlogs\TLOG
tmadmin
crlog -m simple
Built the TMS using the following:
buildtms -v -r SQL_SERVER -o TMS_SQLSERVER
When trying to boot the TMS_SQLSERVER, get the following error (TRACE is switched on):
113626.W039133!TMS_SQLSERVER.exe.3180.3184.0: 08-08-2007: Tuxedo Version 8.1, 32-bit
113626.W039133!TMS_SQLSERVER.exe.3180.3184.0: LIBTUX_CAT:262: INFO: Standard main starting
113626.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:ia: { tpsvrinit(14, "C:\TUXEDO\envs\sqlpoc\bin\TMS_SQLSERVER.exe -C dom=simpapp -g 500 -i 30001 -u W039133 -U C:\TUXEDO\envs\sqlpoc\logs\ULOG -m 0 -A")
113626.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:ia: { tpopen()
113626.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:xa: { xa_open(0x90026c, 0, 0x0)
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:xa: } xa_open = -3
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: LIBTUX_CAT:466: ERROR: tpopen TPERMERR xa_open returned XAER_RMERR
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:ia: } tpopen = -1 [tperrno TPERMERR]
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: TRACE:ia: } tpsvrinit = -1 [tperrno TPERMERR]
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
113632.W039133!TMS_SQLSERVER.exe.3180.3184.0: LIBTUX_CAT:300: ERROR: tlogopen: gptblopen: UNIX sys call error - 2
113632.W039133!tmboot.3132.2844.-2: 08-08-2007: Tuxedo Version 8.1, 32-bit
113632.W039133!tmboot.3132.2844.-2: CMDTUX_CAT:825: ERROR: Process C:\TUXEDO\envs\sqlpoc\bin\TMS_SQLSERVER.exe at simple failed with /T tperrno (TPERMERR - resource manager error)
113632.W039133!TMS_SQLSERVER.exe.3284.3528.0: 08-08-2007: Tuxedo Version 8.1, 32-bit
113632.W039133!TMS_SQLSERVER.exe.3284.3528.0: LIBTUX_CAT:262: INFO: Standard main starting
113632.W039133!TMS_SQLSERVER.exe.3284.3528.0: TRACE:ia: { tpsvrinit(14, "C:\TUXEDO\envs\sqlpoc\bin\TMS_SQLSERVER.exe -C dom=simpapp -g 500 -i 30002 -u W039133 -U C:\TUXEDO\envs\sqlpoc\logs\ULOG -m 0 -A")
Can anyone help?
Thanks
Maybe you are looking for
-
What is the index tab in Balance Sheet Revaluation for?
Hi All, Whenever I put a value in the Index tab in Balance Sheet Revaluation (Consumer Price Index), the revaluated amount in the Balance Sheet becomes the same as the local currency. No matter what amount I put in the Index tab, it is always the sam
-
Hi all, I have requirement to send mails from BADI.For that i used following function modules-SO_NEW_DOCUMENT_SEND_API1 and SO_NEW_DOCUMENT_ATT_SEND_API1, Both of these two function module requires to use COMMIT WORK statement. But if we use COMMIT W
-
Satellite P300: cursor jumps to different positions while typing
Hi All, i have a Satellite P300, I am having trouble when i type. When i am typing using the keyboard, the first couple of words are ok, but then the words start typing in the wrong place, eg back further into the middle of the sentence i am typing.
-
How will my .json and .html backed up bookmarks import?
Firefox 3.6.28 OS 10.4.11 Ibook G4 Hi, I back up regularly both as .json and as .html. With the .json back up, I remove the date each time I back up so there's an over-write and there's only one .json back up file in my Backup Folder. I've never had
-
Using a JComboBox within a JPopupMenu
I have a JPopupMenu in which I'm placing a JComboBox for list selection. The problem is that when I click on the JComboBox, the original JPopupMenu disappears and only the JComboBox popup menu remains. Is there a way to keep the original popup menu d