-
1. Re: Exception in application deployment
adrian.brock Apr 29, 2003 7:53 AM (in response to muzair9192)
<servlet-name>ServeletTest</servlet-name>
<display-name>Simple Session Servlet</display-name>
<servlet-class>Beans.testServ</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>testServ</servlet-name>
<url-pattern>/servlet/Beans</url-pattern>
</servlet-mapping>
You called the servlet "ServeletTest" but then
tried to referred to it as "testServ"
Regards,
Adrian -
2. Re: Exception in application deployment
muzair9192 Apr 30, 2003 4:04 AM (in response to muzair9192)thaks . that fixed the problem .
Now just one last thing , i have changed the sqlserver-service.xml (wht ever the eact name ) file so use SQL Server as the default data source and it works alright . the SQL is used for CMP by jboss . then i tried to keep the default to hypersonic sql and specify the mssql as the data source in the jbosscmp-jdbc file in the meta-inf directory along with the ejb-jar file .
but jboss is still using hypersonic sql as the data source . why is tha t happenig . i have specified the datasource to use in the jbosscmp-jdbc file . -
3. Re: Exception in application deployment
muzair9192 Apr 30, 2003 4:50 AM (in response to muzair9192)there is an extra entity tag in the file , which i have now removed . i have discovered another thing
the jboss is simply using the datasource that i have mentioned in the standardjaws file in the conf directory . it ignorest the data sources mentioned in the .jar files . and simply uses the one set as default in the standard jaws file . even if the default source in standardjdbccmp-jdbc.xml file is hypersonic sql . which ever source u mention in the standard jaws file , is the one it uses .
i want to keep the default to hypersonic and use sqlserver for only some of the ejb's . with which i am giving the jbosscmp file . How can that be done .
the ones with which i dont mention any data souce should go to the hypersonic sql -
4. Re: Exception in application deployment
adrian.brock Apr 30, 2003 9:05 AM (in response to muzair9192)The structure should be
<jbosscmp-jdbc>
<enterprise-beans>
<ejb-name>CDBean</ejb-name>
MSSQLDS
<datasource-mapping>MS SQLSERVER</datasource-mapping>
</enterprise-beans>
</jbosscmp-jdbc>
Regards,
Adrian -
5. Re: Exception in application deployment
muzair9192 May 1, 2003 11:19 PM (in response to muzair9192)thanks but it did'nt work . it still goes for the datasource listed as default in the standardjaws file .
i am attaching the bean with the message though -
6. Re: Exception in application deployment
adrian.brock May 2, 2003 10:19 AM (in response to muzair9192)Have you specified the EJB2.0 dtd in
ejb-jar.xml
jbosscmp won't be used if you are using JAWS.
Regards,
Adrian -
7. Re: Exception in application deployment
muzair9192 May 4, 2003 10:41 PM (in response to muzair9192)can i ask u one thing ... it might sound dumb but , how do u tell jboss not to use jaws if thats the problem you are saying is ...
i have'nt made any particular changes to the jboss configuration ... i just want to be able to use the database i want for my EJB . some may be mapped to hypersonic sql , other may be to SQL Server .
and one more thing , is it necessary to specify the database name , as in employeeDB etc in the service file . what if we want to decide that in the deployment descriptors . can we do that ...