Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

aida haslinda

Ranch Hand
+ Follow
since Jun 10, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by aida haslinda

Thanks Jai,
i successful to access my website , mycompany.com via internal network.
But after the port forwarding (so that mycompany.com could be access by user on outside network) ..

12.34.56.78:port ...the page redirect to JBoss home.

what have i done was:

1. add this codes in server.xml



In C:\jboss-4.0.5.GA\server\default\deploy\company.war\WEB-INF

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE jboss-web
PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">

<jboss-web>

<context-root>/</context-root>
<virtual-host>test</virtual-host>
</jboss-web>


really appreciate for the help
Thanks in Advance



11 years ago
Dear Friends,
i had devloped an web application in J2EE. I want to launch it as a website.
how to configure the domain name in JBOSS. b'coz in jboss -
we can access website as follows: http://mycompany.com:2910/APPS web-refers war file, which is the web application developed in j2ee.
i want to access the site by entering the web address only.
i.e: http://mycompany.com.


what have i done was:
1.get a registered domain name, mycompany.com
2. change jboss port in server/default/deploy/jbossweb-tomcat50.sar/server.xml to port 80( default http port)
3. in apps dir web.xml, i change


but its not redirect to the war file.

Really appreciate fr the help
Thanks in Advance,
11 years ago
i don't realize it Jai,
sorry for the not-so clever codes..
so i'll configure it again..
let you know about the update

Thanks Jai

11 years ago
Jai,
i don't understand

contents in your jboss-web.xml are commented out



if its going to expose to vulnerability please delete it
11 years ago
i can only access by [ip]:8080/letbuy
localhost:8080/letbuy

can anyone help me
11 years ago
hi expert,

currently i want to hosting a website on jboss.
i have JBoss 4.0.5.ga, bind9 (dns server) and jdk1.6.0_20

web app run on deployment dir.
-shopping.war

registered domain names
--letbuy.com

I want to access the web apps by www.letbuy.com / let'sbuy.com and it could acccess from my machine, internal network and from outside network.

C:\jboss-4.0.5.GA\server\default\deploy\letbuy.war\WEB-INF



i have start the bin9 service and jboss...but still could not access the web application.
really appreciate if you guys could help me out.
maybe i'm not clear enough with this since i'm new to web apps

may God bless you
11 years ago
yeah..thank you so much Jaikiran
11 years ago
hi jaikiran

The error that you posted wasn't really because of that



i don't understand with the error. It is good if you could elaborate more.

thank you
11 years ago

hello everyone. The error appear because previously i didn't add the correct attributes.
In client.jsp, "name" must be the attribute in the mysql table Javatest.


<"name"> is the attribute in Javatest table inside the JAVATEST database.

thank you peter
11 years ago
sorry for that peter.ok i'm running jboss as 4.0.5.GA and want to use mysql 5.1 as jboss database.
i follow the steps in http://onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html for MySQL Database Configuration. Therefore
1. mysql-connector-java-5.1.13-bin.jar in server/default/lib.

Add the codes as belows in server/default/conf:
2.standardjaws.xml

3. standardjbosscmp-jdbc.xml

4.login-config.xml

5. mysql-ds.xml in server/default/deploy
<datasources>
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://192.168.5.55:3306/JAVATEST</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>javatest</user-name>
<password>javatest</password>

and i create client.jsp in server/default/deploy/jdbcclient.war.


11 years ago
when i type ip adddress/jdbcclient/client.jsp

the error as below appeared
11 years ago
thanks peter.
these are the error that i think cause the problem

i hope you can help me out..thank you so much
11 years ago
hello everyone,
currently i try to use mySQL as JBOSS AS 4.0.5.GA datasource. (not replacing the hqlds.xml)

what i've created was:
/usr/jboss/jboss-4.0.5.GA/server/default/deploy/jdbcclient.war/client.jsp
all configuration file in in server/default/conf which are login.xml, standardjaws.xml,standardjbosscmp-jdbc.xml
the connector is in server/default/lib/mysql-connector-java-5.1.13-bin.jar.

the output in the terminal is like this:


And when i start up the browser at ip.ip.ip.ip:8080/jdbcclient/client.jsp, these error appeared
Exception thrown org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.))

i really appreciate if you guys could help me with this.
Thank You very Much.
11 years ago
hi peter,

the problem solved by follow the instruction in http://onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html

did you want to just add a MySQL database for use by your app? I ask because replacing hsqldb with MySQL (for DefaultDS) involves a lot of steps.



i just want to add a database for my app but i was replacing the hsqldb.xml with mysql-ds.xml.It cause the error as on the title.

Thanks peter

11 years ago
hello everyone,

i'm running jboss 4.0.5.GA on ubuntu and try to connect with mySQL server 5.1.44

i have : /usr/jboss/jboss-4.0.5.GA/lib/mysql-connector-java-5.1.13.bin
(followed the configuration in documentation)


This is my datasource


This is client.jsp


but i got error in my output console which is


on my browser i got this message
Exception thrown javax.naming.NameNotFoundException: DefaultDS not bound

i really appreciate if anyone could advise me or tell me my mistake..
thank you so much
11 years ago