w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
apache-tomcat-7 is not starting on centos
Maybe my experience is useful for somebody. I deployed a WAR file (the deployed web application was writing some file on hard). I forgot to undeploy WAR file from tomcat and before undeployment, I just delete my web application from my computer hard disk. When I tried to start Tomcat (/Library/Tomcat/bin/startup.sh), there was no error, but I could not open http://:8080/ on any browsers, and when I tried to shutdown Tomcat (/Library/Tomcat/bin/shutdown.sh), I got the above mentioned error (SEVERE: Could not contact localhost:8005. Tomcat may not be running). I use this command (/Library/Tomcat/bin/catalina.sh run) and I understood the above problem. Then I created the missing file, and start the tomcat, then undeploy the previously-deleted WAR file from tomcat and then shutdown tomcat (

Categories : Tomcat

tomcat 6 vs tomcat7 performance in centos
The honest answer is: it depends on your configuration. Tomcat7 may be faster at some things. It is newer code, and I would expect it to offer some improvements, and in my experience it does. And again, depending on your application, Java 7 may offer you some improvements. It will be hard for anyone without more knowledge of your application to really answer this. We found that one of the bigger benefits of moving to Java 7 was improved garbage collection and tuning options.

Categories : Tomcat

no dataimport-handler defined (sorl 4.4.0 / Tomcat / Centos)
I assume from (Tomcat) that you are not using default Solr distribution but some sort of custom install. I suspect that install does not copy all of the jars correctly. Just download Solr 4.4 from the website and copy the relevant jars to wherever you want on the file system. Then, adjust lib directive to use that path. You can use absolute path, instead of relative one too.

Categories : Tomcat

How to configure tomcat web.xml and tomcat-users.xml to secure a tomcat page
As far as access to the tomcat manager GUI is considered, there is no role as "manager" to set in tomcat-users.xml. you have to specify one of these roles. You can find the role names in the web.xml file of the Manager web application. The available roles are: •manager-gui — Access to the HTML interface. •manager-status — Access to the "Server Status" page only. •manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page. •manager-jmx — Access to JMX proxy interface and to the "Server Status" page. have a look into this link for further info, http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html I hope it helps, thanks.

Categories : Xml

how to access tomcat servlet in maven project structure with embeddable tomcat
Your application context path is /Archery (defined in context.xml) Your servlet path is also /Archery (urlPatterns property of @WebServlet) It's also duplicated by your web.xml So, your URL should be localhost:8080/Archery/Archery First server[:port], followed by context path, followed by servlet path Anyway, you will have to fix project structure in order for this to work. If you are following Maven conventions web resources directory should be src/main/webapp The web.xml (and context.xml) should be put under WEB-INF directory under this directory. After you have packaged the war, just make sure these files are there (under WEB-INF)

Categories : Maven

How to deploy war with automatic buildnumber to tomcat using maven tomcat plugin
Use tomcat 7, with '##' tomcat7 is possible to use the aritfactId as context and the version as version in tomcat. <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://localhost:8080/manager/text</url> <server>tomcatserver</server> <path>/${project.artifactId}##${project.version}</path> </configuration> </plugin> Parts in your pom that you use in more that one pom like 'maven-compiler-plugin' put in the parent pom and include in all your project poms.

Categories : Maven

Tomcat 7 in Eclipse Indigo: Tomcat failing to start
Your project should be created as a Dynamic Web Project. Since your project is already created, you should add the Dynamic Web Module facet to it. Right-click the project --> Properties --> Project Facets --> check the Dynamic Web Module facet --> OK.

Categories : Eclipse

How to change port of tomcat from eclipse's tomcat plugin
It worked after changing server.xml in tomcat's home directory. The problem was that there were multiple instances of tomcat that were running. I changed the ports of other connectors too.. that may also have had an effect, though I am not sure.

Categories : Eclipse

Netbeans fails to deploy to Tomcat 7, works with Tomcat 6
I spent several hours today with this and find a solution minutes after posting here. In Netbeans I had to delete Tomcat from the list of servers then manually add it back with all the same information. Netbeans must save details about the server the first and only time it connects.

Categories : Tomcat

share tomcat logs using tomcat http service
With the http://tomcatip.domain.com:8080/share-log you'll get 404 because there is not a index.html inside tomcat/logs. Did you try to check if http://tomcatip.domain.com:8080/share-log/catalina.out is working?

Categories : Http

An incompatible version 1.1.22 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24
From the error its clear that your tomcat native is of older version (1.1.22) and service looks for much newer version at least 1.1.24. The latest and stable version of tomcat native is 1.1.27. You can install that. Use the following link to install and fix your current issue.

Categories : Apache

Unknown version of Tomcat was specified with tomcat-7.0.42
You are specifying tomcat source directory. You need to specify tomcat binary installation root directory, also known as CATALINA_HOME. Usually, this is where you untar apache-tomcat-7.0.42.tar.gz file.

Categories : Java

JAVA - Tomcat 5 Application connecting to Web Service using HTTPS, while Tomcat 7 Application does not
It would seem that the root cause of this problem is that when you are running the newer version (tc7, jdk1.7) you application is unable to find the certificate store. Are you specifying where the certificates are stored in you java code? Or anywhere else for that matter? If so you may be doing it in a Java1.4 way that has been updated in later versions. The default certificate store for java is {$JAVA_HOME}/lib/security/cacerts If your certificate is not being stored here, then this may be your problem. This store is per java version so this would explain why the older version is working while the new version is not. (This is covered in the post linked to by Michael) If this doesn't fix the problem, then it would be useful if you could post some more information about how you are con

Categories : Java

do the parantheses matter?
I believe that in the second test you are either forgetting to reset j to 1E4, or you meant to use an i in one of the loops. See this test: http://jsperf.com/bit-increment/2 I added a snippet using i in the first loop and j in the second and it performs just as fast as the first test.

Categories : Javascript

Does it matter what I name a C file?
No, the source files can in principle be called anything. However, the name should reflect the contents of the file for readability. Header files also don't have to be called the same as the corresponding source files; they just should.

Categories : C

Why does it matter how I execute this code?
I'm sure you're right that it's to do with the delay between declaring the synthdef and it being ready. I'm not really experienced enough with sclang to immediately tell you exactly how you should change your code (I generally use scsynth via OSC, only using sclang to write SynthDefs), but you should be able to do something with the optional completionMsg argument to SynthDef.add.

Categories : Misc

Does it matter where I put the declaration of a variable?
It's a micro-optimization. So no, performance wise, it doesn't really matter. Any difference in performance will be made irrelevant in practically all non-trivial programs. And it's entirely possible that an optimizer would convert the less efficient form to the more efficient form (don't ask me which is which). I'd prefer the first since it's slightly less code and limiting variable scope as much as possible is generally considered good practice. Actually, to be more similar to method 1, method 2 should look like this: Person person1 = null; foreach (string name in nameList) { person1 = new Person(); person1.fullname = name; } person1 = null; Because after the loop, person1 will still point to the object created in the last iteration, the garbage collector will only be able t

Categories : Performance

mysqli_num_rows returns 1 no matter what
When you use COUNT(*) you always get one row returned even if the count is zero. You either: Want to remove the count(*) and then use mysqli_num_rows() or Get the result of count(*) . $row = mysql_fetch_assoc($query); echo $row['COUNT(`user_id`)'];

Categories : PHP

Selecting the row of UITableView does not matter?
Set the UITableView delegate and implement this method: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { int rowSelected = indexPath.row; }

Categories : IOS

getBufferStrategy(); or createBufferStrategy(2/3); Which comes first? And does it matter?
The first example is the correct usage. There's no practical reason I can think of for creating a local bufferstrategy field every time render is called.(as in the second example) Creating a bufferstrategy and assigning it to a field (like in your first example) should only be done once, outside the render function.

Categories : Java

why does the order of arguments matter in here?
It's up to the program to decide what to do with the command line inputs it is given. Most programs don't care what order they are given because they are functionally distinct. But where some flags can optionally affect others the easiest way to implement it is through input ordering. ffmpeg is one such program. Its man page says: As a general rule, options are applied to the next specified file. Therefore, order is important, and you can have the same option on the command line multiple times. gcc is another program that can catch you out; its man page says: You can mix options and other arguments. For the most part, the order you use doesn't matter. Order does matter when you use several options of the same kind; for example, if you specify -L more than once, the directories

Categories : Shell

ScrollViewer is sizing over everything no matter what I do. :(
Need to constrain the TabControl <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"     Title="Window2"> <Grid ShowGridLines="False"> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <TabControl Grid.Row="0" Grid.Comlumn="0"/> </Grid> </Window&g

Categories : Wpf

Does it matter where to run unit tests from?
It doesn't matter where your tests are run from if your tests are independent. I think your tests are dependent on the data setup by a different test. Make sure that your transactional fixtures are enabled.

Categories : Ruby On Rails

PHP Namespace, Do Directories Matter?
In simple terms, namespaces are ways of naming resources in a way to avoid comflicts, so yes you can extend a namespace based on another. However, you must still include the file for PHP to use it. Namespacing does not necessarily automatically include files for you. Namespacing and a registered autoloader will do that for you.

Categories : PHP

Does it matter which superview I add constraints to?
It does not matter if you add it to view A or to view B, so long as they meet the requirements you quoted from the documentation. There are not any implications that I am aware of, the layout is the same either way. The constraints are not necessarily added to the view that you explicitly add them to, according to the comments in the UIView header file (see excerpt below) they are typically installed at the closest ancestor to the views involved in the constraint (and a view is considered to be its own ancestor for this). Neither way is inherently more convenient than the other (unless you don't have a reference to A, in which case it is obviously more convenient to add it to B). It would depend on the setup of your application (what you have outlets for/references to, etc). Given that

Categories : IOS

jQuery Code runs no matter what
Here's your conditional: if(data == 0) { And here's what your AJAX call returns: echo 'No change: 0'; The conditional evaluates to false because 'No change: 0' doesn't equal 0.

Categories : PHP

Order of declaration does not matter for a struct?
Yes the order absolutely does matter. Re-order your code such that the definition of struct emp appears before the function prototype for f. #include <stdio.h> #include <stdlib.h> struct emp{ char name[20]; int age; }; void f(struct emp); ... gcc is actually trying to tell you that you did things in the wrong order, however the compiler messages are a little bit confusing if this is your first time reading through them. These two warnings: hello2.c:3:15: warning: ‘struct emp’ declared inside parameter list [enabled by default] hello2.c:3:15: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] indicate that the type of 'struct emp' was not known at the time gcc compiled line 3 of your file. The c

Categories : C

Does the order of index creation matter
Short answer - no, it doesn't matter. MySQL will try to pick the best index to use regardless of whether the column appears first or second in your WHERE clause. You can prove this by running an EXPLAIN statement on each one to get more information about how MySQL will execute the query - it should show that the same index is used in both cases. If you're talking about the order the columns appear in the index - (x,y) vs (y,x), it also doesn't matter in this case since you're selecting using both columns. If you sometimes select on just one of the columns though, that column should appear first in the index so MySQL can use the partial index to help optimize the query when only one value is provided.

Categories : Mysql

Php if else logic Block runs no matter what?
Did you mean to say $new_ip instead of $current_ip in your if statement? $current_ip doesn't appear to be set anywhere -- if that is the case $current_ip will always be unset and will never be equal to $old_ip.

Categories : PHP

PHP CURL timing out , no matter what timeout is
I suspect your IIS server (or the server you're running the script on) has no route to the AkamaiGHost server - this could be a firewall issue, DNS issue, or some other connectivity problem (perhaps the AkamaiGHost is not setup to listen to requests from your server?). You should check that you can make outgoing requests on the server. Try logging onto the server that the script is being run on, and ping the AkamaiGHost server -if that works try a command line curl (not SSL) - if that works then your problem could well be due to something interfering with outgoing connections on the SSL port (443) - such as your firewall.

Categories : PHP

Does the order of xmlns elements matter
According to the current version of the XML specification, the order of attribute specifications in a start-tag or empty-element tag is not significant. So no, it shouldn't matter, assuming that the system which eventually reads your XML is compliant.

Categories : Dotnet

Does the order of CSS gradient definitions matter?
When dealing with prefixed CSS, the defined correct answer is always put the prefixed versions first, followed by the un-prefixed version. So -webkit-whatever and -moz-whatever must come before plain old whatever, and the plain unprefixed version must be specified (even if it isn't supported by any browsers yet). This is important because the last defined version that is recognised by the browser is the one that is used, and it is preferable for the browser to use the un-prefixed "standard" version if it understands it. Above the un-prefixed version, the order of individual prefixed versions like -moz-, -webkit-, etc is generally unimportant -- any given browser should only ever recognise one of them, so it doesn't matter what other they're in. A common answer to this is to put them in

Categories : CSS

Cannot get browscap to load on OSX no matter which version I use or where I put it
I wonder what kind of valuable information you expect to get from this function. But whatever it is, please be advised that it is considered bad practice, because you are essentially practicing server based client sniffing, and the only base of information is the user agent string, which can be anything and does not need to represent the real situation. Also, information like "javascript" can only represent the coded ability of the client, not the current configured abilities, which can be less. If you still think the function to be of any use, you have to solve the task of getting a copy of that "browscap.ini" file this function wants to use, and you have to constantly update this file to include new browser versions. There is a link to a file source on the documentation page of get_br

Categories : PHP

order by DAY no matter the year or month
select col1, col2, col3, col4 from ( SELECT C.Class_Name as col1, P.Person_First_Name as col2, P.Person_Last_Name as col3, P.Date_Of_Birth AS col4, DAYOFMONTH(Person.Date_Of_Birth) as ordCol FROM Person as P INNER JOIN Customer as C ON P.[Person _ID] = C.Person_ID WHERE MONTH(P.Date_Of_Birth)=Month(@d) ) tbl ORDER BY tbl.ordCol

Categories : C#

Why does section order matter in the app.config
The order of sections doesn't matter in general, it's only the configSections element that must be first. From MSDN: If the configSections element is in a configuration file, the configSections element must be the first child element of the configuration element. I assume this is because sections need to be declared before they can be used.

Categories : C#

opening descriptor and closing , why does it matter?
A file descriptor has only one position which is used both for writing and reading. When you write to the file in line 4 the position is advanced past what was just written, so the descriptor's position is at the end of the file. Calling close and open has the effect of resetting the position to the beginning of file (among other things). You could replace the calls to close and open with lseek(fd, 0, SEEK_SET) to have the same effect, without closing and reopening the file. Also, you should not mix the stdio functions scanf, printf and low level functions such as write. The results of the program will be unpredictable because of buffering in the stdio functions.

Categories : C

cursor wont return a row no matter what
If i'm not mistaken you have your problem on the query String[] fields = new String[]{ExpDataBase.COLUMN_ID}; Cursor cursor= database.query(ExpDataBase.TABLE_NAME, fields,ExpDataBase.COLUMN_ID+"="+id, null, null, null, null);

Categories : Java

No matter what I do I can't get my Javascript files to run on PhoneGap
onload is some code that is run, not the name of a function. For that reason, you need parentheses after the function name. <body onload="onLoad();"> Also, while it shouldn't cause a problem, a elements go in the body, not in the head, so you should probably remove this: <a href="myapp.js"></a>

Categories : Cordova

IE conditional statment not working no matter what I do
The problem you're having is that conditional comments do not work, and are deprecated, in Internet Explorer 10. References: 'Microsoft drop conditional comments in IE10.'

Categories : HTML

Why does the order of alternatives matter in regex?
The regular expression engine tries to match the alternatives in the order in which they are specified. So when the pattern is (foo|foobar)&? it matches foo immediately and continues trying to find matches. The next bit of the input string is bar& b which cannot be matched. In other words, because foo is part of foobar, there is no way (foo|foobar) will ever match foobar, since it will always match foo first. Occasionally, this can be a very useful trick, actually. The pattern (o|a|(w)) will allow you to capture w and a or o differently: Regex.Replace("a foobar& b", "(o|a|(\w))", "$2") // fbr& b

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.