third post on my "solo" thread. i've made more tests.
now i've moved the resource definition in the
$CATALINA_HOME\webapps\myapp\META-INF\context.xml as suggested on the
tomcat documentation.
<?xml version="1.0" encoding="ISO-8859-1"?>
<Context reloadable="true" crossContext="true">
<Resource name="jdbc/vbetadb"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="72660361"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/vbeta?autoReconnect=true" />
</Context>
I keep on getting the same errors.
When i start tomcat i get this message on the catalina log:
1-mag-2007 11.18.31 org.apache.tomcat.util.modeler.Registry
registerComponent
GRAVE: Null component
Catalina:type=DataSource,path=/red5,host=localhost,class=javax.sql.DataSource,name="jdbc/vbetadb"
it looks like a context override to me.
when the resource was defined in the $CATALINA_HOME\conf\server.xml with
the additional parameters path="/red5" and docBase="red5" i wasn't able to
deploy the .war named "red5.war" and a "red5" application was listed in
the tomcat manager.
i can't find anything on google about this error. and i've any idea about
what i'm doing wrong. please help.
In data 30 aprile 2007 alle ore 18:23:06, cyberpunk <[EMAIL PROTECTED]>
ha scritto:
> i've passed a couple of days studing the configurations of tomcat and
> red5, but i can't resolve my problem ...
>
> now i've configured my datasource in the serve.xml in the
> $catalina_home\conf folder, then i've made a reference to the source in
> the $red5_home\conf\war\myapp-context.xml
>
> then i've modified the $red5_home\build.xml file so myapp now is built in
> the war file (red5.war) along with the other demos.
>
> I've istalled the jakarta taglib (jstl.jar and standard.jar) and mysql
> connector (mysql-connector-java-5.0.5-bin.jar) in the $catalina_home\lib
> folder and i've also excluded, from the war, the .jar files in the
> $red5_home\lib that are already presents in the $catalina_home\lib ... so
> i think it isn't an enviroment "override" as said in the tutorial at
> http://www.red5tutorials.net/index.php/Tutorials:MySQL_and_Red5
>
>
>
> when i start tomcat now i got an error on the catalina.<date>.log:
> 30-apr-2007 18.02.08 org.apache.tomcat.util.modeler.Registry
> registerComponent
> GRAVE: Null component
> Catalina:type=DataSource,path=/red5,host=localhost,class=javax.sql.DataSource,name="jdbc/vbetadb"
>
> and when i try to connect to the db through myapp i got, on
> stdout.<date>.log, this error:
> [ERROR] 567531 pool-3-thread-5:( rai.radio.due.vbeta.Application.login )
> JNDIException: Name java:comp is not bound in this Context
>
> .. and i really don't know what i'm doing wrong.
> Two other applications (one in java and the other in jsp) that i've build
> yesterday with similar configuration, are working greatly on the same
> server.
>
> I would appreciate any help given.
>
> ps: i'm always on Tomcat 6.0.10, jdk 1.6, red5 0.6 final
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org