Hi I am getting the following error while deplying application in tomcat: Jul 25, 2013 5:04:43 PM org.apache.catalina.deploy.NamingResources cleanUp WARNING: Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oms-inter-web]] so no cleanup was performed for that container javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [comp]. at org.apache.naming.NamingContext.lookup(NamingContext.java:820) at org.apache.naming.NamingContext.lookup(NamingContext.java:168) at org.apache.catalina
I am using C# script task component to convert XLS to CSV file , my entry point is set to ScriptMain But I am constantly getting error "Error: Cannot execute script because the script entry point is invalid." /* Microsoft SQL Server Integration Services Script Task Write scripts using Microsoft Visual C# 2008. The ScriptMain is the entry point class of the script. */ using System; using System.Collections.Generic; using System.Text; using System.Data; using System.IO; using System.Data.OleDb; namespace ST_1feb807359714c80ae0bdd964110df59.csproj { [System.AddIn.AddIn("ScriptMain", Version = "1.
I have a very simple WMI test-script that I am running locally on a server to diagnose a problem I'm having getting WMI some data. Essentially, all WMI queries I run on this machine (locally) fail with an error code 0x80041017. Option Explicit Dim WmiQuery WmiQuery = "SELECT * FROM Win32_Processor" Dim objSWbemLocator Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Dim objWMIService Set objWMIService = objSWbemLocator.ConnectServer("localhost", "root\cimv2") Dim results Set results = objWMIService.ExecQuery (WmiQuery) Dim row For Each row in results Next I'm not even trying to
In a case statement, the value of s is increased by the power of 2: input [127:0] s; output [127:0] y; case (s) 128'b1 : y = a1; 128'b2 : y = a2; // ... When it goes to 2^64, the number is so big and it will be represented automatically by scientific notation, for example: 128'b1.84467e19 : y = a64; This will give me a syntax error. Is there a way to avoid this? I don't want to define it as real since I want to synthesise this code.
I was wondering if anyone could help - I am writing a custom Json serializer, extending from JsonSerializer, and I want to wrap any exceptions that could be thrown in my own custom exception, extended from IOException. However, whenever I run any unit tests (using junit) to confirm that the exception is thrown it is failing, saying that - Expected: (exception with message a string containing "Unable to serialize!" and an instance of com.company.profile.serializer.MySerializerException) got: <com.fasterxml.jackson.databind.JsonMappingException: Unexpected IOException (of type com.company.profil
For a new housing project, a complete area will be developed on a blank piece of land. We would like to create a nice interactive chart with all the different sub housing projects. Currently we have a static map available, but want to turn this into an interactive map. Currently we have found zeemaps.com to add pointers to the map, highlight new building area's and add additional information. One thing is lagging, is the ability to create roads/parks in the map. Are there any tools out there available where I can 'draw' the new to be developed area into a google-like map.
Earlier I had a question about killing children subprocesses in Python 3. The thread is here > Python close children subprocess and the working code is as follows: def open_storage(): global my_process my_process = subprocess.Popen("waffles.exe") def kill_children(): my_process.kill() Now I have another question. How do I limit the maxiumum number of allowed subprocesses spawned? I know with Linux you can simply use ulimit, as described in a thread found here > Python: ulimit and nice for subprocess.call / subprocess.Popen? Where the linux method is: import subprocess subprocess.Popen('ulimit
I have a php file with the proper information, and I cannot figure out why I cannot make an ODBC connection to my SQL Database? I have two files and am trying to create a simple webpage that is connected to my database. First File (odbc_vertices.php): <?php //creates an odbc connection and stores it in $odbc variable $odbc = odbc_connect ('VERTICES', 'correctusername','correctpassword') or die ( "Could Not Connect to ODBC Database!" ); ?> Second File (phptest.php): <html> <head> <title></title> </head> <body> <?php include 'odbc_vertices.php'; ?> <select name='vndr'> <option selected> <?php $q
I'm trying to use Copy-Item to copy a file to an existing folder and getting the error "Could not find part of path". I've Googled this problem for ages, but can't seem to find an answer. I altered the code to check that I could copy to each folder in the path and then hit the problem when .'s were used in the file name. Also I cannot change the folder name because the folder name is created by a (crappy) Oracle related installer. Essentially the code is like this (the code is run in the context of the source directory)... $Filename = "new.txt" $Destination = "C:\a\b\c\d\e.f\g\h" Copy-Item -Pa
I am having an Drop down in Struts. How to get selected value from <html:options> tag in JavaScript? <html:select property="temp_Id" > <html:options collection="listmap" property="key"/> </html:select>
I have the following assembly code .export __ls__11NSDOM_EncapFf .text __ls__11NSDOM_EncapFf: /* first load the symbolic constant*/ movq _IEEE_FP@GOTPCREL(%rip), %r8 /*%r8 is a scratch register*/ movq (%r8), %r9 /* %r9 and %r11 are scratch registers*/ movl (%r9), %r11d /* second, see if it is zero and branch accordingly */ test %r11d, %r11d /* zero call TNS procedure */ /* non-zero call IEEE procedure */ je ____ls__11NSDOM_EncapFf_tns/* constant equals 0 */ jmp ____ls__11NSDOM_EncapFf_ieee/* constant not equal to 0 */ ret I compile the .s file to .o file(compilation is fine) , but when I link
I have a socket handler class which is used to communicate to a client with a specific IP and port with the help of several socket functions. The first time I am using writetosocket(), it's working perfectly. But when I restart the client (with ip and port) and try to use writetosocket() it returns broken pipe error with error code 32 after successful execution of the socket_write function. I am getting this error when I am writing data on socket. I read some solutions and tried the most common solution which is to use socket_shutdown and socket_close to terminate the socket connection properl
I am using Bit bucket as my hosting site for the distributed version control systems (DVCS) Git. While Cloning the project and bringing into my eclipse it is giving me the error: Git repository clone failed. Connection reset While in wizard it does import till 50% Of my project and as soon as it reach 50 it gives me error. I am doing it directly from Eclipse[import->Projects from Git-> entering my URL] without "git command line". I even did window-->Preferences->Team->Git->Configurations->User Settings. When I entered my name & ID but this also isn't helping. I am unable to Clone in my project
I have list with blanks and I cannot get the ever-so-popular dynamically named range formula to work: =OFFSET(Tasks!$G$2,0,0,MATCH("*",Tasks!$G$2:$G$22,-1),1) The data validation list I use it for is still showing all the blanks! Please help and advise! Many thanks
I am trying to open a webpage on button click, go to a particular section, traverse across multiple pages upon next button arrow image click. I have to extract information from this website. The HTML structure of page is: <div> <div> <table class="A"> <tbody> <tr> <td class="B"> <div class="C"> <ul id="D" class="E"> <li id="W" class="T U"></li> <li id="X" class="T U "></li> <li id="Y" class="T U"><span class="SPANCLASSNAME">HEADER TAB CAPTION</span></li> <li id="Z" class="T U"></li> </ul> </div> </td> </tr> </tbody> </table> </div> </div> All the data I need could be under any li element. Here
How to detect a mobile device using jQuery I found this and I was wondered what the / sign meant in the if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { // some code.. } code.
I am trying to make an http connection to my own domain and return a string. I have it working with www.microsoft.com but when i change the domain to www.atomic-gaming.info (my domain) i get an error 12029 and if i change the link to www.yahoo.com i get an error 12017 code DWORD dwSize = 0; DWORD dwDownloaded = 0; LPSTR pszOutBuffer; BOOL bResults = FALSE; HINTERNET hSession = NULL, hConnect = NULL, hRequest = NULL; // Use WinHttpOpen to obtain a session handle. hSession = WinHttpOpen( L"WinHTTP Example/1.0", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0
I can use blueZ hciconfig to find the usb bluetooth device 'hci0'. But I can't enable the bluetooth on Android 4.2.2. It seems android use a new bluetooth stack since version 4.2 . So it doesn't rely on the BlueZ statck now. This is my BoardConfig: BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true And I enabled the HCI USB drvier in the kernel. Does any one have the idea about how to support usb bluetooth dongle on Android 4.2.2 ? The issue stuck me two weeks. And I can't get more information from the internet. Thanks very much !
I've created something of a simplistic renderer on my own using OpenGL ES 2.0. Essentially, it's just a class for rendering quads according to a given sprite texture. To elaborate, it's really just a single object that accepts objects that represent quads. Each quad object maintains a a world transform and object transform matrix and furnishes methods for transforming them over a given number of frames and also specifies texture offsets into the sprite. This quad class also maintains a list of transform operations to execute on its matrices. The renderer class then reads all of these propertie
In one of my activities, my EditText views used to look like this But now they looks like this I need help changing it back: from the rectangle to the underscore. BACKGROUND Because I needed to create a custom ActionBar, I had to change the theme of the activity in question, YesterdayActivity, using the following Style: <style name="CustomWindowTitleBackground"> <item name="android:background">#323331</item> </style> <style name="CustomTheme" parent="android:Theme"> <item name="android:windowTitleSize">40dip</item> <item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackgro
There's a great deal of information I can find on hashing strings for obfuscation or lookup tables, where collision avoidance is a primary concern. I'm trying to put together a hashing function for the purpose of load balancing, where I want to fit an unknown set of strings into an arbitrarily small number of buckets with a relatively even distribution. Collisions are expected (desired, even). My immediate use case is load distribution in an application, where I want each instance of the application to fire at a different time of the half-hour, without needing any state information about other
Note: I've read similar threads, but none quite my issue - I can right click on it fine, it just then disappears. I find 'Inspect Element' an invaluable tool in Chrome, however I'm having trouble using it for sub-menu for an element on my nav bar, which pops up below on hover of its parent item. The popup (or down) isn't quite styled how I'd like, so I right-click > inspect element to see what's coming from where exactly, and get a better idea of how to achieve my desired effect. However, as soon as I move my mouse away from the menu, it's gone; thus I can't select different elements in the in
This is my current style file, as I want to have a dark theme with a light ActionBar. <style name="AppBaseTheme" parent="@android:Theme.Holo"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> <item name="android:background">#FF00FF</item> </style> That works correctly, as my ActionBar as a pink background (not shared in screenshot because it would be too confusing). But, unfortunately, despite the fact that I used: Widget.Holo.Light.ActionBar, my ActionBar is still dark themed: How would it be
I'm developping a JS-app that needs to work both on the client side and the server side (in Javascript on a browser and in Node.js), and I would like to be able to reuse the parts of the code that are used for both sides. I have found out that window was a variable only accessible on Browsers, and global in node, so I can detect in which environment the code is executing (assuming that no script declares the window variable) I have two problems. How should I detect in which browser the code is running. For example, is this code OK. (This code is inline, meaning that it is surrounded by some gl
I just recently installed Visual Studio 2012, everything's working good with 2010 with my Crystal report but when I migrated the code to 2012 I can't display anything. Can you pls check if there is something I'm missing with this code: protected void Page_Load(object sender, EventArgs e) { SqlConnection cnn; string connectionString = null; string sql = null; connectionString = "data source=server; initial catalog=DBO;user id=sa; password= passw0rd"; cnn = new SqlConnection(connectionString); cnn.Open(); sql = "select BadgeNo as DataColumn1,Name as DataColumn2, Section as DataColumn3 from Safet
I am able to execute some SSIS packages from my local computer however when I am trying to execute the same through windows service on Windows server R2 it fails. Windows Service Code: using DTS = Microsoft.SqlServer.Dts.Runtime; DTS.Package pkg; DTS.Application app; DTS.DTSExecResult pkgResults; app = new DTS.Application(); pkg = app.LoadPackage(pkgLocation, null); pkgResults = pkg.Execute(); I am installing the service on the server and when started it fails on app = new DTS.Application(); On the server I have already SSIS installed and I am also able to execute the Package from command prom
There are many SO questions that show how to view the output of a git diff command in a diff viewer like meld using git difftool or otherwise. I am not asking about git diff though. I want to see the output of git show <previous commit sha1> in a diff viewer like meld. How can I do this?