w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I have created a new core in solr and once I restart my tomcat server the core gets deleted.why does the core in solr gets deleted?
Check for the persistent attribute in the solr.xml <solr persistent="true"> which will persist the changes made through Admin UI and these would be available after restarts as well. If persistence is enabled (persist=true), the configuration for this new core will be saved in 'solr.xml'.

Categories : Solr

eclipse can not start up my tomcat server, how to turn the server on
It seems your sever is already in running state and you are trying to start again. Any chance you started your server though comand prompt, before trying in eclipse. If exsist try kiiling the java process of the server in task manager and try again

Categories : Java

How to run jsp pages in eclipse using tomcat server?
it seems that u need to put bootstrap.jar in your tomcat's bin folder. upd try to delete tomcat's configured server from eclipse and add newone upd goto Run -> Debug/Run Configuration -> Classpath tab and check your bootstrap.jar path is correct

Categories : Java

Tomcat Server Publishing issue in eclipse
I found the issue when i am adding this in pom.xml <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.2.4</version> </dependency> its creating this issue when i run mvn install i got this error [ERROR] error: error reading /home/hariom/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar; invalid LOC header (bad signature) So i replaced this dependency with this one <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.2.2</version> </dependency> now everything works fine.

Categories : Java

ckan: how to restore a previously deleted group
The quickest (and probably dirtiest) way to do this, assuming your group name is my-group: update group_revision set state='active' where name='my-group' and current=true; update group set state='active' where name='my-group'; This should keep the audit intact.

Categories : Misc

How to access local data in new apps from previously deleted app
You can save data in iCloud. Your applications can share iCloud data as long as they have the same bundle identifier prefix. Alternatively, you can sync this data with your own (web) server. It's up to you to write this functionality in your apps. There is currently no shared document space on iOS. Each application is contained within a sandbox and cannot access documents stored in another application. Documents can be shared through URL schemes, but this has to be launched from the originating app to the destination app (both apps must be installed at the same time).

Categories : IOS

Configuring eclipse to delete logs before tomcat server startup
I'm not sure if Eclipse is the right tool to accomplish that. In my current project server start and application deployment is managed by Ant and include a Task to erase Logs between this processes is trivial. Ant integrates nicelly with Eclipse and Tomcat. You can do the same with Maven if you prefer

Categories : Eclipse

How to deploy web project on remote tomcat server outside Eclipse with .jar files in it
You need to create jars for your project B & C an place them under the WEB-INFlib of your project A in tomcat webapps directory. Or if you don't create jars for your project B & C then copy the classes with proper package structures in WEB-INF/classes. You can always check what is going wrong in Tomcat/logs directory. A piece of advice: Familarize yourself with use of build tools such as maven and ant. I would recommend you to learn about maven, its dependency management, and build plugins. You can really make your life easier with such tools.

Categories : Java

Eclipse juno won't hit breakpoints in GWT server side code running in tomcat
Turns out that instead of debugging it as a Remote Java Application, debugging it as a Web Application works. Still need to ensure that its in fact getting deployed to the correct tomcat installation directory. I've unchecked "Run built-in server" in the Debug Configuration for the Web Application type project. I've also ensured that eclipse has taken control of the tomcat installation identified in preferences. Manually setting the directory was not allowed as I had identified it separately in eclipse as THE tomcat installation dir.

Categories : Java

My source folders are deleted after executing mvn eclipse:eclipse
I'm not sure what you are doing exactly but the eclipse plugin handles only eclipse configuration and does not touch any source folders. If the source folders are removed from your eclipse project, then the project/pom file is not set up correctly. Since Juno, eclipse contains the m2e maven integration plugin. I suggest you create your first projects using that. It will take care of handling the build process and project setup for you. Use the New->Project...->Maven Project menu and create the project using the wizard. When it is complete, copy all your existing sources into the new one and manipulate the pom file with the pom editor (eclipse will open the pom file with this editor by default.) Important note: If you start using m2e, then don't use the command line eclipse:eclips

Categories : Java

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

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

My eclipse tomcat server is stopping and gives these exceptions "java.net.SocketException" and "java.net.BindException"
Look at the last stack in the logs and you find the root cause of your problem: Address already in use: JVM_Bind It means there is already a process running and listening on the port you try to use. Most of the time, this error is caused by a previous run of your own program that didn't terminate (properly), or is still running. Take a look in your IDE to see if you don't have some running instance alive (and kill it). You can also take look at running process under Windows task manager (or any other equivalent utility on other platforms) and try to identify the process using the port. You may also have a tomcat running as a window service: in this case, just change the port use by your program to avoid conflicts.

Categories : Java

Eclipse finds syntax errors that did not previously exist
Whenever you're facing weird issues with eclipse, try to do the following: Clean the project. Project --> Clean.... Close the project and reopen it again. Project --> Open Project/Close Project. Make a copy of the source file and delete the original file, then paste the source file again.

Categories : Java

Restore deleted Eclipse Project
If you have another repository with your work (like a central git server,another developer, another computer or something like that) you can just clone your repository back from that: File -> Import -> Projects from Git -> URI -> Type in your server/the other developers repo and complete the wizard. And here is the reason why you lost your work: In order to make git work, egit moves all the project files into the repository (which is only a special directory). Therefore, if you delete the repository, you also delete all the files in it, containing your whole project. For the future: To move your repository, just move it to another position using a normal file explorer. After that, tell eclipse about that by removing the repository from the repositories view (NOT delet

Categories : Eclipse

Restore deleted files in eclipse
Answer: You can't.. sorry : If restoring from local history does not work, then you are out of luck i'm afraid.. the point of deleting files, is to DELETE them.. not ever needing them back. my suggestion is be more careful when deleting and use a Source Control Management software like SVN or Git, so you can version your files to prevent things like this from happening again.

Categories : Java

Deleted a change set in eclipse, crisis ensues
Since it is a change set, that means it is a committed set of files. If you selected "Remove" in the "Related Artifacts / Associate Change Request" dialog box, this shouldn't be an issue. You always can test and make a second repo workspace, load that second repo workspace in a second local workspace and see if you get the change set back. You can modify the flow target of your second repo workspace, and make it reference your first repo workspace, to see if you get that same change set in the "incoming" section of the "Pending Changes" view.

Categories : Eclipse

Restore deleted file directly from Eclipse local history
I was able to recover my code. I went to prj/.metadata/.plugins/org.eclipse.core.resources/.history Then did some bashing: fgrep -r -c "[Some function name specific to that file]" * | grep -v ":0" | cut -d : -f 1 | xargs ls -l | grep "Jul 29" So this is greping and counting the number of times some text specific to the code I'm missing shows up in the files, then removes the files where the count is 0, then removes the count from the end of the file name, then does ls to get details on the files, then optionally search for a specific day. Since I was working with clojure I noticed that there were files that either had a large or small file size. The large files were backups of the REPL, the small files were backups of the code. +1 for Eclipse :)

Categories : Eclipse

How to use Tomcat 8 in Eclipse?
The only thing the eclipse plugin is checking is the tomcat version inside: catalina.jar!/org/apache/catalina/util/ServerInfo.properties I replaced the properties file with the one in tomcat7 and that fixed the issue for eclipse In order to be able to deploy the spring-websockets sample app you need to edit the following file in eclipse: .settings/org.eclipse.wst.common.project.facet.core.xml And change the web version to 2.5 <installed facet="jst.web" version="2.5"/>

Categories : Eclipse

Eclipse Tomcat Error in Mac OS X
There error shown just indicates that one of the webapps failed to start properly, but does not give any details. There should be more information in either catalina.out (further towards the beginning of the file) or in one of the other log files -- depending on your configuration. Check localhost*.log and [webapp]*.log for other errors.

Categories : Eclipse

Spring MVC + Eclipse + Tomcat
Go to your server.xml file. You will find your context root there. something like this <Context docBase="yourApp" path="/yourApp" reloadable="true" source="org.eclipse.jst.jee.server:yourApp"/></Host> Try loading localhost:8080/yourApp assuming you are running tomcat on port 8080.

Categories : Eclipse

Tomcat 7.0.42 not starting in eclipse
I found my mistake from here. I had created Servlet using "Create Servlet" wizard which adds a @WebServlet(/servletName) annotation and no entry in web.xml I then created a entry in web.xml manually which duplicated the entry at the runtime. So you have to do either of the two with Servlet 3.0. Use Annotation like: @WebServlet("/testController") public class testController extends HttpServlet { } OR create a web.xml entry for your servlet. Read more: Servlet 3.0 Annotations

Categories : Eclipse

What happens when I run an application on tomcat in Eclipse
Environment assumptions I will assume: target/classes is the target folder for compiled classes src/main/webapp is the web application content folder Project > Build Automatically option is checked Deployment directory Eclipse is using exploded WAR deployment - i.e. the deployed application is deployed as a folder, not a single file archive. Application files are placed and loaded from ${workspace}/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/. Publishing Publishing is a central process which is responsible for assembling and deploying the web application. When talking about local Tomcat, this means copying "web content, compiled classes, libraries, ..." into deployment directory (the one in .metadata). Eclipse is able to do partial publishing - i.e. when a s

Categories : Eclipse

Tomcat 7 won't start on eclipse Kepler
Run netstat -aon and look for ports 8080 or 8005 and kill the process with taskkill /f /pid (pid of process) if your running linux or mac you enter top and look for the process and run: kill (pid of process) Then just restart the server

Categories : Eclipse

Avoiding the embedded tomcat in eclipse
You can create a server runtime in eclipse which points to "C:/Program Files/Apache Software Foundation/tomcat/" using NEW-->SERVER-->click on configure runtime environments this will use the server which is located your folder. I hope i am able to clarify.

Categories : Java

GWT project deployment to tomcat in STS(Eclipse)
Might be a configuration problem, post your gwt-maven-plugin xml here. Here's mine, just for reference <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>${gwt.version}</version> <configuration> <logLevel>DEBUG</logLevel> <style>PRETTY</style> <runTarget>/ApplicationScaffold.html</runTarget> <hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp> <!-- <modules> <module>${project.groupId}.Main</module> </module

Categories : Java

eclipse ee and tomcat 7 - how to add library.path
Run -> Run Configurations... double click on Apache Tomcat and choose Arguments tab. There is VM arguments textarea where you can put additional arguments.

Categories : Eclipse

Replacing Jar files within Tomcat in Eclipse
If you see a jar file in Apache Tomcat libraries, it means you have it under the ${tomcat_home}/lib folder. If you want to remove it from global .classpath you should remove it from lib folder manually and then refresh your project in eclipse.

Categories : Eclipse

Configure eclipse to work with tomcat
Do you want to set docBase to your project's root folder? If this is the case, you can change Default output folder from YourProject/build/classes to YourProject/WebContent/WEB-INF/classes in Java Build Path. And, set docBase to YourProjectRootWebContent in your server.xml. Hope this helps.

Categories : Eclipse

JSF PropertyNotFound Exception on Tomcat 6 outside of Eclipse
javax.el.PropertyNotFoundException: /ccadmin/publications/search.xhtml @107,92 value="#{pubBacker.beginYear}": Property 'beginYear' not found on type com.ccadmin.backing.PublicationBacker clearly specifies it is missing beginYear property for pubBacker bean. Check if jar is updated. It is common mistake, at least for me. Some part of code is updated, but jar is not updated(mvn install).

Categories : Java

How can I run two instances of tomcat 7.0 per eclipse different ports?
As per the screenshot, eclipse complains that "tomcat admin port" 8005 is already in use. Please change this under Ports ( in addition to changing http 1.1 and ajp1.3). I think you had mentioned that the port appears to be readonly. If that is the case, the port could be directly modified in the server.xml located in your workspace. File location: <>ServersTomcat v7.0 Server at localhost-configserver.xml Locate the following line in server.xml and modify it. Refresh your eclipse and it should reflect in the UI. <Server port="8005" shutdown="SHUTDOWN">

Categories : Eclipse

How to run tomcat within eclipse Java Project
Convert your project to a "Dynamic Web Project", right-click it and pick "Run As" -> "Run on Server". In the dialog that pops up, select "Manually define a new server" and follow the steps to configure your Tomcat server inside Eclipse.

Categories : Java

@webServlet not working with tomcat 7 eclipse
This is now clearly a ClassNotFoundException as seen here Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory You are missing the commons-fileupload.jar from your application classpath. Find, download, and put that jar in your application's /WEB-INF/lib folder and restart.

Categories : Java

Eclipse, Basic JSP and Apache Tomcat
i found out the reason why it got clashed and stopped responding . it was conflicting with the oracle 10g server at the port 8080 so i switched the port to 80 of my apache tomcat server . now it works properly .

Categories : HTML

How to tell tomcat to use an external lib while running from within eclipse
In Java web applications, the third party libraries must go in WEB-INF/lib directory. If there is no such directory, just create it and Tomcat (or another Java Application Server) will handle it automatically to use the jars inside it as part of the build path of the application. In short, create a folder lib inside WEB-INF and drop your external jars there.

Categories : Java

Specifying Tomcat 7 to use port 8443 only in Eclipse
Eclipse makes a copy of the server configuration and saves it under the "Servers" project. In the Server View, double clic your server name and when configuration window opens you can edit under "Ports" section. Edited*** You can go further by opening the "Servers" project, then editing server.xml directly looking for the "Connector" tag that holds the current 8080 port. http://farm8.staticflickr.com/7390/9559799161_3a152c1ac1_o.jpg

Categories : Eclipse

how to tell the http server stop sending redundant bytes that i previously requested through "get"?
So imagine you want to download a 4M file and want two threads to do it. Wouldn't it be nice to have the first thread getting from 0 towards the middle, and the second thread bytes from the end towards the middle? Thats the first thing that came to mind when looking at this problem. Since you can request ranges you can either terminate the connection when you got enough or you can work in blocks. A 4MB file would by 1024 blocks of 4k. The two threads gets blocks from either side and you stop when you got those 1024 blocks without caring which thread got more. But this is actually only visually pleasing. If you have a counter c of n blocks you can use it to have a number of threads, based on the size of the download and a maximum limit of threads. All can claim the first free block by in

Categories : Java

Issue when both apache2 server and apache tomcat server installed in my linux machine
Change the default port for Tomcat to something else, for example 8181 Current versions of web browsers recognize port 8080 like 80, so that's why it's forward you to 80 or cut the port option from URL. To change Tomcat port open server config file server.xml search for "8080", which is the current port in use, and replace it with something else (make sure the new port not in use), save and restart Tomcat.

Categories : Java

how to remove catalina.out from Linux server where Apache tomcat server installed
you don't have to remove catalina.out file. You can use logrotate, to rotate logs, and remove old files. Very useful description is here: http://www.swoops.co.uk/how-to-set-up-log-rotation-for-tomcat-catalina-out-log-file/ or here: http://java.dzone.com/articles/how-rotate-tomcat-catalinaout

Categories : Java

Error 404/resource is not available in Eclipse EE Kepler with Tomcat 7
Is the context root setting for the project included in your URL? By default, the context root is usually set to the project name (which may not be what you expect). You can change the context root by opening the project settings, selecting "Web Project Settings", and adjusting the context root to suit your needs: Whatever you use, it must match the context root used in your URL: To set the context root to ROOT, just use "/". You can also change the context root on the server's "Web Modules" properties page. Open the "Servers" view (the same view used to stop and start the server) and double-click the server with your web app. Click the "Modules" tab (in the lower-left corner), then locate your application in the list. You can change your deployment path after clicking the "Edit...

Categories : Tomcat



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