Build Failure in KitchenSink project

61 views
Skip to first unread message

Roney Francis

unread,
May 26, 2015, 5:53:18 AM5/26/15
to acti...@googlegroups.com
I am new in Java framework. I would like to start with ActiveWeb. I saw your tutorial from youtube. But, it is not sufficient. I expecting more. in step by step. How to start with a new project, How to give join queries in ActiveJDBC..etc. like lot of questions are there. I expecting that you will give in very soon. 

Anyhow, I used Simple-Activeweb project. Its working fine. Now I tried Kitchensink, I felt this issue. and I'm attaching pom.xml file as per my system requirement. find the same.

Thanks in Advance Mr.Igore Polevoy
And Appreciate your great job.


"C:\Program Files\Java\jdk1.8.0\bin\java" "-Dmaven.home=C:\Program Files\Apache Software Foundation\apache-maven-3.2.5" -Didea.modules.paths.file=C:\Users\yenor\.IdeaIC14\system\Maven\idea-projects-state-8bcd44dc.properties -Dclassworlds.conf=C:\Users\yenor\.IdeaIC14\system\tmp\idea-8072788902298731379-mvn.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Apache Software Foundation\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 14.0.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.0.3 jetty:run
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ActiveWeb - KitchenSink WebApp 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-jetty-plugin:6.1.22:run (default-cli) > test-compile @ kitchensink >>>
[INFO] 
[INFO] --- db-migrator-maven-plugin:1.4.9:migrate (dev_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_development using migrations at src/migrations/
[INFO] No new migrations are found
[INFO] 
[INFO] --- db-migrator-maven-plugin:1.4.9:migrate (test_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_test using migrations at src/migrations/
[INFO] No new migrations are found
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kitchensink ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kitchensink ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] >>> activejdbc-instrumentation:1.4.9:instrument (default) > process-classes @ kitchensink >>>
[INFO] 
[INFO] --- db-migrator-maven-plugin:1.4.9:migrate (dev_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_development using migrations at src/migrations/
[INFO] No new migrations are found
[INFO] 
[INFO] --- db-migrator-maven-plugin:1.4.9:migrate (test_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_test using migrations at src/migrations/
[INFO] No new migrations are found
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kitchensink ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kitchensink ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< activejdbc-instrumentation:1.4.9:instrument (default) < process-classes @ kitchensink <<<
[INFO] 
[INFO] --- activejdbc-instrumentation:1.4.9:instrument (default) @ kitchensink ---
**************************** START INSTRUMENTATION ****************************
Directory: D:\IntellijWorkSpace\kitchensink-master\target\classes
Found model: app.models.Person
Found model: app.models.Post
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.397 s
[INFO] Finished at: 2015-05-26T15:00:57+05:30
[INFO] Final Memory: 12M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.javalite:activejdbc-instrumentation:1.4.9:instrument (default) on project kitchensink: Failed to add output directory to classpath: org.javalite.instrumentation.InstrumentationException: javassist.NotFoundException: getClassName(..) is not found in app.models.Person -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Process finished with exit code 1

pom.xml

Igor Polevoy

unread,
May 26, 2015, 9:54:16 PM5/26/15
to acti...@googlegroups.com
Hi, Roney. I pulled the Kitchensink project and it broke for different reasons, I fixed the issues, and pushed a new version to Github.

Please, clone  and try it again, 

tx,

Roney Francis

unread,
May 28, 2015, 2:23:07 AM5/28/15
to acti...@googlegroups.com
Thank You Igor. The earlier issue is resolved. 
Now I started the new build. I got this problem.
1. Jetty started is fine.
2. I got the Kitchensink in browser url  ,Fine
3. When I click on posts link I got this issue.

Error:
Failed to connect to JNDI name: jdbc/kitchensink_development

I 'm giving the logs


Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

D:\IntellijWorkSpace\kitchensink-master>mvn clean jetty:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ActiveWeb - KitchenSink WebApp 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ kitchensink ---
[INFO] Deleting D:\IntellijWorkSpace\kitchensink-master\target
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.22:run (default-cli) > test-compile @ kitchensink >>>
[INFO]
[INFO] --- db-migrator-maven-plugin:1.4.10:migrate (dev_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_development using migrations at D:\IntellijWorkSpace\kitchensink-master\src/migrations/
[INFO] Trying migrations at: D:\IntellijWorkSpace\kitchensink-master\src\migrations
[INFO] No new migrations are found
[INFO]
[INFO] --- db-migrator-maven-plugin:1.4.10:migrate (test_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_test using migrations at D:\IntellijWorkSpace\kitchensink-master\src/migrations/
[INFO] Trying migrations at: D:\IntellijWorkSpace\kitchensink-master\src\migrations
[INFO] No new migrations are found
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kitchensink ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kitchensink ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 24 source files to D:\IntellijWorkSpace\kitchensink-master\target\classes
[WARNING] /D:/IntellijWorkSpace/kitchensink-master/src/main/java/app/gwt/client/RPCServiceBinder.java: Some input files use unchecked or unsafe operations.
[WARNING] /D:/IntellijWorkSpace/kitchensink-master/src/main/java/app/gwt/client/RPCServiceBinder.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] >>> activejdbc-instrumentation:1.4.10:instrument (default) > process-classes @ kitchensink >>>
[INFO]
[INFO] --- db-migrator-maven-plugin:1.4.10:migrate (dev_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_development using migrations at D:\IntellijWorkSpace\kitchensink-master\src/migrations/
[INFO] Trying migrations at: D:\IntellijWorkSpace\kitchensink-master\src\migrations
[INFO] No new migrations are found
[INFO]
[INFO] --- db-migrator-maven-plugin:1.4.10:migrate (test_migrations) @ kitchensink ---
[INFO] Migrating jdbc:mysql://localhost/kitchensink_test using migrations at D:\IntellijWorkSpace\kitchensink-master\src/migrations/
[INFO] Trying migrations at: D:\IntellijWorkSpace\kitchensink-master\src\migrations
[INFO] No new migrations are found
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kitchensink ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kitchensink ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< activejdbc-instrumentation:1.4.10:instrument (default) < process-classes @ kitchensink <<<
[INFO]
[INFO] --- activejdbc-instrumentation:1.4.10:instrument (default) @ kitchensink ---
**************************** START INSTRUMENTATION ****************************
Directory: D:\IntellijWorkSpace\kitchensink-master\target\classes
Instrumented class: /D:/IntellijWorkSpace/kitchensink-master/target/classes/app/models/Person.class
Instrumented class: /D:/IntellijWorkSpace/kitchensink-master/target/classes/app/models/Post.class
**************************** END INSTRUMENTATION ****************************
[INFO] Instrumentation: directory D:\IntellijWorkSpace\kitchensink-master\target\test-classes does not exist, skipping
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ kitchensink ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\IntellijWorkSpace\kitchensink-master\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ kitchensink ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 5 source files to D:\IntellijWorkSpace\kitchensink-master\target\test-classes
[WARNING] /D:/IntellijWorkSpace/kitchensink-master/src/test/java/app/controllers/PostsControllerSpec.java: D:\IntellijWorkSpace\kitchensink-master\src\test\java\app\controllers\Posts
ControllerSpec.java uses unchecked or unsafe operations.
[WARNING] /D:/IntellijWorkSpace/kitchensink-master/src/test/java/app/controllers/PostsControllerSpec.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.22:run (default-cli) < test-compile @ kitchensink <<<
[INFO]
[INFO] --- maven-jetty-plugin:6.1.22:run (default-cli) @ kitchensink ---
[INFO] Configuring Jetty for project: ActiveWeb - KitchenSink WebApp
[INFO] Webapp source directory = D:\IntellijWorkSpace\kitchensink-master\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\IntellijWorkSpace\kitchensink-master\target\classes
[INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = D:\IntellijWorkSpace\kitchensink-master\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = D:\IntellijWorkSpace\kitchensink-master\src\main\webapp
[INFO] Starting jetty 6.1.22 ...
[INFO] jetty-6.1.22
[INFO] No Transaction manager found - if your webapp requires one, please configure one.
[main] WARN org.javalite.activeweb.Configuration - Environment variable ACTIVE_ENV not provided, defaulting to 'development'
[main] INFO org.javalite.activeweb.RequestDispatcher - ActiveWeb: starting the app in environment: development
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10000 seconds.
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.RequestDispatcher - ================ New request: Thu May 28 11:21:29 IST 2015 ================
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.RequestPropertiesLogFilter - ** Request headers **

ContextPath:
Query String: null
URI Full Path: /
URI Path: /
Method: GET
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.RequestParamsLogFilter - ** Request headers **


[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.HeadersLogFilter - ** Request headers **

Header: Cookie=JSESSIONID=1s2mtn6bb4qzz
Header: Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Header: Connection=keep-alive
Header: User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Header: Host=localhost:8080
Header: Accept-Encoding=gzip, deflate, sdch
Header: Accept-Language=en-US,en;q=0.8

[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.ControllerRunner - Executing controller: app.controllers.HomeController.index
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.freemarker.FreeMarkerTemplateManager - Rendered template: '/home/index' with layout: '/layouts/default_layout'
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.TimingFilter - Processed request in: 136 milliseconds, path: /, method: GET
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.RequestDispatcher - ================ New request: Thu May 28 11:21:33 IST 2015 ================
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.RequestPropertiesLogFilter - ** Request headers **

ContextPath:
Query String: null
URI Full Path: /posts
URI Path: /posts
Method: GET
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.controller_filters.RequestParamsLogFilter - ** Request headers **


[12006451@qtp-1911379471-0] WARN org.javalite.activejdbc.DB - Could not close connection! MUST INVESTIGATE POTENTIAL CONNECTION LEAK!
org.javalite.activejdbc.DBException: cannot close connection 'default' because it is not available
        at org.javalite.activejdbc.DB.close(DB.java:263)
        at org.javalite.activejdbc.DB.close(DB.java:252)
        at org.javalite.activeweb.controller_filters.DBConnectionFilter.onException(DBConnectionFilter.java:121)
        at org.javalite.activeweb.ControllerRunner.exceptionHandled(ControllerRunner.java:224)
        at org.javalite.activeweb.ControllerRunner.run(ControllerRunner.java:85)
        at org.javalite.activeweb.RequestDispatcher.doFilter(RequestDispatcher.java:202)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
[12006451@qtp-1911379471-0] INFO org.javalite.activejdbc.ConnectionsAccess - Detached connection: default from thread: Thread[12006451@qtp-1911379471-0,5,main]
[12006451@qtp-1911379471-0] ERROR org.javalite.activeweb.RequestDispatcher - ActiveWeb ERROR:
ContextPath:
Query String: null
URI Full Path: /posts
URI Path: /posts
Method: GET

org.javalite.activejdbc.InitException: Failed to connect to JNDI name: jdbc/kitchensink_development
        at org.javalite.activejdbc.DB.open(DB.java:111)
        at org.javalite.activejdbc.DB.openJndi(DB.java:227)
        at org.javalite.activejdbc.DB.open(DB.java:191)
        at org.javalite.activeweb.controller_filters.DBConnectionFilter.before(DBConnectionFilter.java:85)
        at org.javalite.activeweb.ControllerRunner.filterBefore(ControllerRunner.java:249)
        at org.javalite.activeweb.ControllerRunner.run(ControllerRunner.java:54)
        at org.javalite.activeweb.RequestDispatcher.doFilter(RequestDispatcher.java:202)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3835)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3771)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4280)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1258)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2239)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:422)
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:134)
        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:105)
        at org.javalite.activejdbc.DB.open(DB.java:108)
        ... 23 more
[12006451@qtp-1911379471-0] WARN org.javalite.activeweb.ParamCopy - found 'session' value set by controller. It is reserved by ActiveWeb and will be overwritten.
[12006451@qtp-1911379471-0] INFO org.javalite.activeweb.freemarker.FreeMarkerTemplateManager - Rendered template: '/system/error' with layout: '/layouts/default_layout'

pom.xml

Roney Francis

unread,
May 28, 2015, 3:46:56 AM5/28/15
to acti...@googlegroups.com
ISSUE Resolved

I Changed DBConfig file as

/*
Copyright 2009-2010 Igor Polevoy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package app.config;

import org.javalite.activeweb.AbstractDBConfig;
import org.javalite.activeweb.AppContext;

/**
* @author Igor Polevoy
*/
public class DbConfig extends AbstractDBConfig {

public void init(AppContext context) {

environment("development").jdbc("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/kitchensink_development", "root", "root");

// environment("development").jndi("jdbc/kitchensink_development");

// environment("development").testing().jdbc("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/kitchensink_test", "root", "root");

environment("hudson").testing().jdbc("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/kitchensink_test", "root", "root");

environment("production").jndi("jdbc/kitchensink_production");
}
}

Igor Polevoy

unread,
May 28, 2015, 2:20:50 PM5/28/15
to acti...@googlegroups.com
Exactly!

You would use JNDI only if you have a configured pool of JDBC connections. In development you do not normally do this 

tx

Roney Francis

unread,
May 29, 2015, 2:46:07 AM5/29/15
to acti...@googlegroups.com

Thank you Igor. Thanks a lot..

--
--
You received this message because you are subscribed to the Google
Groups "ActiveWeb Group" group.
To post to this group, send email to acti...@googlegroups.com
To unsubscribe from this group, send email to
activeweb+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/activeweb?hl=en?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "ActiveWeb Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/activeweb/3c1KnHE6REY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to activeweb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages