[JBoss AS 7 Development] - MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] modified the document:
"MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script"
To view the document, visit: https://community.jboss.org/docs/DOC-19001
--------------------------------------------------------------
*Note:* Consider using *http://docs.jboss.org/jbossas/7/plugins/maven/latest/plugin-info.html JBoss AS 7 Deployment plugin for Maven* - goals http://docs.jboss.org/jbossas/7/plugins/maven/latest/examples/complex-exa... deploy-driver, add-datasource, add-xa-datasource.
This is a bash script which will:
Ask you for AS 7 directory,
download MySQL JDBC driver,
create a module for it,
create myapp-ds.xml file using this module as a driver,
create persistence.xml file using that datasource.
What you need is to put the two files into your application's jar's META-INF/ and change the datasource's connection-url, user-name and password.
And then to add a driver to standalone.xml:
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
The script to save and then run:
if [ "$1" == "" ] ; then
echo " Usage: $0 <AS7 dir>"
exit 1
fi
AS_DIR=$1
mkdir -p $AS_DIR/modules/com/mysql/jdbc/main
cd $AS_DIR/modules/com/mysql/jdbc/main
wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.21.zip
unzip mysql-connector-java-5.1.21.zip
rm mysql-connector-java-5.1.21.zip
cp mysql-connector-java-5.1.21/mysql-connector-java-5.1.21-bin.jar .
rm -rf mysql-connector-java-5.1.21/
cat <<EOF > module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
EOF
cd -
cat <<EOF > myapp-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_1.xsd">
<!-- JNDI at this location. We reference this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/MyAppDS"
pool-name="myapp-ds-pool" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/myapp?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull</connection-url>
<driver>mysql</driver>
<security>
<user-name>myapp</user-name>
<password>myapp</password>
</security>
</datasource>
<!-- JBAS010411: <drivers/> in standalone -ds.xml deployments aren't supported.
==> Needs to go to standalone.xml.
<drivers>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
-->
</datasources>
EOF
cat <<EOF > persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MyAppPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/MyAppDS</jta-data-source> <!-- See <datasource jndi-name="..."> . -->
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.show_sql" value="false"></property>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_minimal_puts" value="true"/>
</properties>
</persistence-unit>
</persistence>
EOF
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19001]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
Re: [jboss-dev-forums] [PicketBox Development] - JBoss AS7: Configuring SSL on JBoss Web
by Virendra Patidar
Virendra Patidar [https://community.jboss.org/people/virendrapatidar] commented on the document
"JBoss AS7: Configuring SSL on JBoss Web"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17503#comment-10357
--------------------------------------------------
I am getting below exception.
15:51:56,956 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, WRITE: SSLv2 client hello message, length = 110
15:51:56,963 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, received EOFException: error
15:51:56,967 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
15:51:56,968 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, SEND TLSv1 ALERT: fatal, description = handshake_failure
15:51:56,969 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, WRITE: TLSv1 Alert, length = 2
15:51:56,970 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, called closeSocket()
15:51:56,970 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, called close()
15:51:56,971 INFO [stdout] (http--127.0.0.1-8443-1) http--127.0.0.1-8443-1, called closeInternal(true)
15:51:56,972 ERROR [stderr] (http--127.0.0.1-8443-1) javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
15:51:56,973 ERROR [stderr] (http--127.0.0.1-8443-1) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:849)
15:51:56,973 ERROR [stderr] (http--127.0.0.1-8443-1) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170)
15:51:56,974 ERROR [stderr] (http--127.0.0.1-8443-1) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197)
15:51:56,975 ERROR [stderr] (http--127.0.0.1-8443-1) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181)
--------------------------------------------------
12 years, 5 months
[JBoss Web Development] - Chunked encoded content by HTTPS problem
by Vadim Kasperovych
Vadim Kasperovych [https://community.jboss.org/people/vskasper] created the discussion
"Chunked encoded content by HTTPS problem"
To view the discussion, visit: https://community.jboss.org/message/752171#752171
--------------------------------------------------------------
Hi all!
I have the next issue.
I have a project deployed on Jboss 5.1 server. My server is communicates with clients by SOAP messages. Entry point is HttpServlet. Also there is two types of authantication: BASIC and DIGEST, also some clients can communicate without auth.
When server is working on 8443 port with HTTPS and BASIC or DIGEST authantication I have the next problem only with clients which sends content in chunked transfer-encoding:
1. Client sends first SOAP message to initiate new session
2. Server responds with 401 Unathorized status code because there absent WWW-Authenticate header
3. Client sends the next message with WWW-Authenticate header conaining credentials
4. Server sends response with 200 OK status code
5. Client doesn't sends anything, but must
If auth is switched off all is OK on p.5 server recieves right message from client. Also if communication is on port 8080 HTTP all is OK, message from client is present on p.5. Also if I work with "non-chunked" clients all is ok.
So problem is only in complex of the next items: https, chunked transfer encoding, BASIC or DIGEST auth
After hours of researching I had found the next:
1. if Jboss uses JSSE standart connector in jbossweb server.xml the problem is present,
2. but if I switched on the Tomcat APR connector the problem is desappears.
3. Also the problem is not present on Jboss 4.2.3 (on JSSE) - this is the most strange thing in this issue
4. I had decoded ssl packets in Wireshark tcp sniffer and saw strange thing: in Jboss 5 while recieving of p.3, server sends to client one packet, which marked in sniffer by Malformed packet. I Jboss 4.2.3 it is absent
On production I can not use APR connector (it is customers requirement).
Can anybody explain me:
1. What is the diffrence in HTTPS connector implementation between Jboss 4.2.3 and 5.1?
2. What is the diffrence in processing of chunked encoded packets between 4.2.3 and 5.1?
P.S.: also I had tried to update/downgrade jbossweb.jar and jbossweb-deployers.jar
Big thanks for any help, I have already spent on this two weeks :(
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752171#752171]
Start a new discussion in JBoss Web Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM Development] - Some issues with JBPM 5.3 console.
by Sachin Chandra
Sachin Chandra [https://community.jboss.org/people/chandrasachin16] created the discussion
"Some issues with JBPM 5.3 console."
To view the discussion, visit: https://community.jboss.org/message/752166#752166
--------------------------------------------------------------
Hi All,
I have downloaded JBPM 5.3 and installed it. It works fine on my system with file based users. I then tried integration with Microsoft Active directory and achieved it successfully .With that it also works fine.I am able to login with my domain users but problem occurs as I switch to Process tab.When I click on the process tab it shows an error screen which I have attached as an image file (JBPMConsoleError.jpg). I am also putting the server log as given below .
15:15:18,301 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-11) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder
at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:51) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) [classes:]
at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Can anybody please suggest me what's going wrong.
Regards
Sachin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752166#752166]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss AS 7 Development] - AS 7 Management versions
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] modified the document:
"AS 7 Management versions"
To view the document, visit: https://community.jboss.org/docs/DOC-19172
--------------------------------------------------------------
This shows the management versions of the various subsystems for released AS 7 versions. The tables are generated by starting the target AS 7 version using standalone.sh --server-config=standalone-full-ha.xml and running org.jboss.as.controller.util.GrabModelVersionsUtil (in controller/src/test)
h2. 7.1.2.Final
|| Subsystem || Management Version || Schemas (http://www.jboss.org/schema/jbossas/) ||
| *Standalone core* | 1.2.0 |
|
| *cmp* | 1.0.0 | urn:jboss:domain:cmp:1.0 |
| *configadmin* | 1.0.0 | urn:jboss:domain:configadmin:1.0 |
| *datasources* | 1.1.0 | urn:jboss:domain:datasources:1.0
urn:jboss:domain:datasources:1.1 |
| *deployment-scanner* | 1.0.0 | urn:jboss:domain:deployment-scanner:1.0
urn:jboss:domain:deployment-scanner:1.1 |
| *ee* | 1.0.0 | urn:jboss:domain:ee:1.0
urn:jboss:domain:ee:1.1 |
| *ejb3* | 1.1.0 | urn:jboss:domain:ejb3:1.0
urn:jboss:domain:ejb3:1.1
urn:jboss:domain:ejb3:1.2
urn:jboss:domain:ejb3:1.3 |
| *infinispan* | 1.3.0 | urn:jboss:domain:infinispan:1.0
urn:jboss:domain:infinispan:1.1
urn:jboss:domain:infinispan:1.2
urn:jboss:domain:infinispan:1.3 |
| *jacorb* | 1.1.0 | urn:jboss:domain:jacorb:1.0
urn:jboss:domain:jacorb:1.1
urn:jboss:domain:jacorb:1.2 |
| *jaxr* | 1.1.0 | urn:jboss:domain:jaxr:1.1
urn:jboss:domain:jaxr:1.0 |
| *jaxrs* | 1.0.0 | urn:jboss:domain:jaxrs:1.0 |
| *jca* | 1.1.0 | urn:jboss:domain:jca:1.0
urn:jboss:domain:jca:1.1 |
| *jdr* | 1.0.0 | urn:jboss:domain:jdr:1.0 |
| *jgroups* | 1.1.0 | urn:jboss:domain:jgroups:1.0
urn:jboss:domain:jgroups:1.1 |
| *jmx* | 1.0.0 | urn:jboss:domain:jmx:1.0
urn:jboss:domain:jmx:1.1 |
| *jpa* | 1.1.0 | urn:jboss:domain:jpa:1.0 |
| *jsr77* | 1.0.0 | urn:jboss:domain:jsr77:1.0 |
| *logging* | 1.1.0 | urn:jboss:domain:logging:1.0
urn:jboss:domain:logging:1.1 |
| *mail* | 1.1.0 | urn:jboss:domain:mail:1.0 |
| *messaging* | 1.1.0 | urn:jboss:domain:messaging:1.0
urn:jboss:domain:messaging:1.1
urn:jboss:domain:messaging:1.2 |
| *modcluster* | 1.2.0 | urn:jboss:domain:modcluster:1.0
urn:jboss:domain:modcluster:1.1 |
| *naming* | 1.1.0 | urn:jboss:domain:naming:1.0
urn:jboss:domain:naming:1.1
urn:jboss:domain:naming:1.2 |
| *osgi* | 1.0.0 | urn:jboss:domain:osgi:1.0
urn:jboss:domain:osgi:1.1
urn:jboss:domain:osgi:1.2 |
| *pojo* | 1.0.0 | urn:jboss:domain:pojo:1.0 |
| *remoting* | 1.1.0 | urn:jboss:domain:remoting:1.0
urn:jboss:domain:remoting:1.1 |
| *resource-adapters* | 1.1.0 | urn:jboss:domain:resource-adapters:1.0 |
| *sar* | 1.0.0 | urn:jboss:domain:sar:1.0 |
| *security* | 1.1.0 | urn:jboss:domain:security:1.0
urn:jboss:domain:security:1.1
urn:jboss:domain:security:1.2 |
| *threads* | 1.0.0 | urn:jboss:domain:threads:1.1
urn:jboss:domain:threads:1.0 |
| *transactions* | 1.1.0 | urn:jboss:domain:transactions:1.0
urn:jboss:domain:transactions:1.1
urn:jboss:domain:transactions:1.2 |
| *web* | 1.1.0 | urn:jboss:domain:web:1.1
urn:jboss:domain:web:1.0 |
| *webservices* | 1.1.0 | urn:jboss:domain:webservices:1.0
urn:jboss:domain:webservices:1.1 |
| *weld* | 1.0.0 | urn:jboss:domain:weld:1.0 |
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19172]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
[JBoss AS 7 Development] - Re: Unable to use com.sun.jndi.ldap.LdapCtxFactory
by Jayvijay Raj
Jayvijay Raj [https://community.jboss.org/people/jayvijayraj] created the discussion
"Re: Unable to use com.sun.jndi.ldap.LdapCtxFactory"
To view the discussion, visit: https://community.jboss.org/message/751915#751915
--------------------------------------------------------------
Hi I am facing the same issue with jboss-as-7.1 and I have tried above solution but doesnot work for me.
in standalone.xml i have
<subsystem xmlns="urn:jboss:domain:ee:1.0">
<global-modules>
<module name="sun.jdk" slot="main"/>
</global-modules>
</subsystem>
In the my subsystem module i have in module.xml
<dependencies>
<module name="sun.jdk"/>
</dependencies>
and at my manifest file
Dependencies: sun.jdk
but still I am getting below error.
2012-08-03 16:59:14,312 [ServerService Thread Pool -- 33] ERROR stderr - javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "org.jboss.as.controller:main" from local module loader @1f31c4e (roots: C:\eplatform\jboss-platform\jboss\jboss-as-7.1\modules)
2012-08-03 16:59:14,312 [ServerService Thread Pool -- 33] ERROR stderr - at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)
2012-08-03 16:59:14,312 [ServerService Thread Pool -- 33] ERROR stderr - at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
2012-08-03 16:59:14,312 [ServerService Thread Pool -- 33] ERROR stderr - at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
2012-08-03 16:59:14,312 [ServerService Thread Pool -- 33] ERROR stderr - at javax.naming.InitialContext.init(InitialContext.java:242)
2012-08-03 16:59:14,327 [ServerService Thread Pool -- 33] ERROR stderr - at javax.naming.InitialContext.<init>(InitialContext.java:216)
please help me what I am doing wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751915#751915]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months