About Tomcat

tutorial

Step 7: Run the Spring Web App

Shows how to run the NetBeans Spring MVC JPA web application.... page = "guest.html" / > Assuming that Tomcat 6.0 is installed as a server in your NetBeans - you should be able to ... embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open the database file in ...

 
issue

stress test -> com.objectdb.o.InternalException: null

I am running a stress test with 2 users, each making a request to the JSON API (which uses as storage ObjectDB) each 50 milliseconds. An API call might have between 1-4 db calls, but they are relatively light, and the db has just a few MB at the moment. After a few minutes I got this exception. If I decrease the load, it doesn't happen. If I increase it, I get it very often. Any solution/fix? A sample project is very hard, if not impossible, to create, because it uses all the system. ... java : 210 ) at org. apache . tomcat . websocket . server . WsFilter . doFilter ( WsFilter. ... java : 603 ) at org. apache . tomcat . util . net . JIoEndpoint $SocketProcessor. run ( ... java : 210 ) at org. apache . tomcat . websocket . server . WsFilter . doFilter ( WsFilter. ...

 
tutorial

Spring MVC JPA Tutorial - NetBeans Project

Opening a Spring MVC JPA Maven web application project in the NetBeans IDE.... Project... (or  F6 ). Choose or define Tomcat as a server and click  OK . Note: To run the application ...

 
forum_thread

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com.example.model" + ".*"); ... I'm using JDK 8 , Object DB and Embedded Tomcat 8.0.3 so after clean and build my dist directory contains: 1. lib ...

 
forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... the persistence.xml database local url doesn't work. ( Tomcat says "Connection refused" ) <properties > ... are still randomly updated each time i am restarting tomcat :( Xirt edit ...

 
forum_thread

Guestbook example from tutorial does not work.

Hi, I have Problems to initialize objectdb in a jee envoirment. I used the Guestbook from the tutorial and try to deploy on Tomcat but i get this error. Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /objectdb-2.6.2/tutorials/guestbook-jee6/target/Guestbook: org.apache.openejb.OpenEJBRuntimeException: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider ... used the Guestbook from the tutorial and try to deploy on Tomcat but i get this error. Caused by: ... Server version: Apache Tomcat/7.0.55 Server built:   Jul 18 2014 05:34:04 ... alternative is to place the object-jee.jar to /tomcat/lib/ dir. Didn´t find a better solution. Why ...

 
forum_thread

lockfiles in client/server mode

i have an objectdb server running on localhost as user "objectdb", spawned like so: java -server -cp /usr/local/share/objectdb/objectdb.jar: com.objectdb.Server -conf /etc/objectdb/objectdb.conf start it has naturally created and taken ownership of /tmp/ObjectDB. ... my own account, or deploy a working webapp running as the tomcat user. for whatever reason the client is attempting to create lockfiles in /tmp/ObjectDB. my account and the tomcat account naturally cannot do this on the same machine where the objectdb ...

 
forum_thread

Getting com.objectdb.o.UserException:

I am using the object db version 2.x in a web application that runs on tomcat4. I am using the default configuration file. ... a new file 'file:C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\odb20120904.log' at ... file:C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\odb20120904.log (The filename, ... to write to: C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\ ...

 
forum_thread

Spring MVC Errors

I try to import the project from the tutorial but when doing so I get errors: 1. http://i.imgur.com/tbIsj.png and then when I try to start it anyways I get things like thaat: 2. http://i.imgur.com/G7UVu.png any ideas ? I installed m2eclipse plugin and Maven Integration for WTP and then I import Maven project from disk and this is what I get ... ;( ... GuestBook...   3.) I'm using Tomcat and I don't get the last part of the tutorial: "To enable on the fly automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent (javaagent:objectdb.jar). ...

 
forum_thread

Retrieving Metamodel without connection

Hello! I use Spring Data JPA. It uses the Metamodel to create repository beans. This triggers a connection to the ObjectDB server. It happens on every start of the Context. If it fails the application isn't available at all. I had the situations multiple times that my database server took longer to boot after a power outage than the tomcat machine. This leads to an unusable application until i restart tomcat. ... server took longer to boot after a power outage than the tomcat machine. This leads to an unusable application until i restart tomcat. Other JPA providers are able to fetch the Metamodel without ...